老司机午夜精品_国产精品高清免费在线_99热点高清无码中文字幕_在线观看国产成人AV天堂_中文字幕国产91

切換到寬版
  • 廣告投放
  • 稿件投遞
  • 繁體中文
    • 2551閱讀
    • 2回復

    [求助]FRED軟件能否用其他軟件調用,比如VisualC++,.net等 [復制鏈接]

    上一主題 下一主題
    離線blackdoll
     
    發(fā)帖
    6
    光幣
    7
    光券
    0
    只看樓主 倒序閱讀 樓主  發(fā)表于: 2013-09-18
    如題, 在demo軟件中,沒看到類似問題的幫助文檔,哪位大俠用過,FRED有沒有提供接口供其它軟件調用,有的話順便給個文檔介紹或是指條路啊 ,]d}pJ}PX`  
    & mWq'h  
     
    分享到
    離線崔粵鵬
    發(fā)帖
    349
    光幣
    2957
    光券
    0
    只看該作者 1樓 發(fā)表于: 2014-08-21
    FRED可以與MATLAB 、EXCEL建立接口,支持VB語言,且其腳本是以VB語言編寫的,編程非常順手 M *}$$Fe|  
    以下是FRED手冊給出的 l}wBthwCc  
    [9L(4F20  
    FRED can act as an OLE automation server, which means that FRED can be run remotely from other applications such as Microsoft Visual Basic, Microsoft Excel, Matlab, or any other application that can act as an OLE/Automation client.  In  this configuration, FRED is the automation server and the application which is controlling FRED is the automation client.  The following information describes the fundamentals of how to run FRED as an automation server. ^R\blJQ<^  
    http://fred-kb.photonengr.com/2011/08/16/fred-automation-with-matlab/ WULj@ds\~  
    此網站是FRED原廠知識庫中如何與matlab接口 (=X16}n:>  
    Using FRED’s COM interface it is possible to exchange data with external programs such as MATLAB and Excel.  This article presents an example where FRED and MATLAB are used respectively as the automation client and server in order to exchange data and create plots.  There are a few steps that should be taken both in FRED and MATLAB before executing your script: sq^,l6es>  
    Bj2rA.M  
    In MATLAB: yT>T Vq/e  
    Dn@ n:m  
    Start an instance of MATLAB A +p}oY '  
    Execute the command: enableservice(‘AutomationServer’,true) JdAjKN  
    Execute the command: enableservice(‘AutomationServer’) N@VD-}E  
    In FRED: ug{F?LW[  
    81g&WQ'  
    Right mouse click in the script editor and choose: Edit > References %9Ue`8  
    Choose the Matlab Type Library T>z@;5C  
    Dimension your Matlab object in the script as type MLApp.MLApp xXbW6aI"  
    The above steps will ensure that 1) FRED uses the current instance of MATLAB as the server instead of the command console, and 2) FRED loads the Matlab type library and can recognize and execute the server’s application commands.  In general, it is not necessary to load the Matlab type library in FRED since the Matlab server can be generically defined as an Object. QXrK-&fju  
    wHCsEp(  
    The example enbedded script in the sample file with this article demonstrates how to use some of the following Matlab application commands: YK-