FRED可以與MATLAB 、EXCEL建立接口,支持VB語言,且其腳本是以VB語言編寫的,編程非常順手
b<rJ@1qtJ 以下是FRED手冊給出的
W%7m3/d '||),>~ 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.
A|U_$!cLZ http://fred-kb.photonengr.com/2011/08/16/fred-automation-with-matlab/ 4mzWNr>fb 此網(wǎng)站是FRED原廠知識庫中如何與matlab接口
V0WFh=CM@ 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:
x-{awP >;@hA*< In MATLAB:
(PCv4:`g w,FOq?j^k Start an instance of MATLAB
@oL<Ioh Execute the command: enableservice(‘AutomationServer’,true)
X[c8P7 Execute the command: enableservice(‘AutomationServer’)
bMw)>4 In FRED:
PUViTb `5Qo*qx Right mouse click in the script editor and choose: Edit > References
pb5'5X+ Choose the Matlab Type Library
sj