FRED可与Matlab Excel接口,并可支持VB脚本语言编程。 Wie0r@5E
:U'n0\
FRED can act as an OLE automation server, which means that FRED canbe run remotely from other applications such as Microsoft Visual Basic,Microsoft Excel, Matlab, or any other application that can act as anOLE/Automation client. In this configuration, FRED is the automation serverand the application which is controlling FRED is the automation client. Thefollowing information describes the fundamentals of how to run FRED as anautomation server. 9<P%?Q
下面是FRED原厂photon engineering与Matlab并行使用的接口连接,有兴趣的可以看下 /Hm/%os
P$AHw;n[R
FRED Automation with Matlab )G]J@36
g3%x"SlIU
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: 8<Yv:8%B6
In MATLAB: 0lYP!\J3]%
Start an instance of MATLAB RASk=B
Execute the command: enableservice(‘AutomationServer’,true) "?
V;C
Execute the command: enableservice(‘AutomationServer’) ev/)#i#s{
In FRED: "av/a
Right mouse click in the script editor and choose: Edit > References ,5t_}d|3C=
Choose the Matlab Type Library *?Wr^T
Dimension your Matlab object in the script as type MLApp.MLApp -H_#et3&i