切换到宽版
  • 广告投放
  • 稿件投递
  • 繁體中文
    • 2367阅读
    • 2回复

    [求助]FRED软件能否用其他软件调用,比如VisualC++,.net等 [复制链接]

    上一主题 下一主题
    离线blackdoll
     
    发帖
    6
    光币
    7
    光券
    0
    只看楼主 倒序阅读 楼主  发表于: 2013-09-18
    如题, 在demo软件中,没看到类似问题的帮助文档,哪位大侠用过,FRED有没有提供接口供其它软件调用,有的话顺便给个文档介绍或是指条路啊 a*P v^Np-v  
    cNWmaCLN$  
     
    分享到
    离线崔粤鹏
    发帖
    349
    光币
    2956
    光券
    0
    只看该作者 1楼 发表于: 2014-08-21
    FRED可以与MATLAB 、EXCEL建立接口,支持VB语言,且其脚本是以VB语言编写的,编程非常顺手 H7uh"/A  
    以下是FRED手册给出的 Ifp8oL?S;  
    [Vbd su9  
    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. U9BhtmY  
    http://fred-kb.photonengr.com/2011/08/16/fred-automation-with-matlab/ -[*y{K@dh  
    此网站是FRED原厂知识库中如何与matlab接口 h8WM4 PK  
    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: mBL?2~M  
    8}BM`@MG  
    In MATLAB: 1TEKq#t;y  
    |zRrGQY m  
    Start an instance of MATLAB .8'c c8  
    Execute the command: enableservice(‘AutomationServer’,true) /QB;0PrE  
    Execute the command: enableservice(‘AutomationServer’) bRggt6$z  
    In FRED: _*z ^PkH  
    $J4)z&%dr  
    Right mouse click in the script editor and choose: Edit > References &CQ28WG X  
    Choose the Matlab Type Library %4R1rUrgt|  
    Dimension your Matlab object in the script as type MLApp.MLApp IT#Li  
    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. jc3Q3Th/zn  
    g'!"klS93  
    The example enbedded script in the sample file with this article demonstrates how to use some of the following Matlab application commands: O,7S1  
    leF!Uog  
    PutWorkspaceData: send real-valued data to Matlab s3sD7 @  
    PutFullMatrix: send complex-valued data to Matlab k{{ Y2B?C  
    GetWorkspaceData: retrieve data from Matlab Xn~\Vb  
    Execute: issue Matlab commands to the server for execution
    描述:接口
    附件: fredToMatlab.zip (6 K) 下载次数:4
    离线fruitrabbit
    发帖
    28
    光币
    7
    光券
    0
    只看该作者 2楼 发表于: 2015-10-29
    正好需要,抱走啦,多谢多谢