FRED可以與MATLAB 、EXCEL建立接口,支持VB語言,且其腳本是以VB語言編寫的,編程非常順手
'Bul_D4B 以下是FRED手冊給出的
0Bbno9Yp 5~ho1Ud 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.
J~dk4D\ http://fred-kb.photonengr.com/2011/08/16/fred-automation-with-matlab/ i4"BN,NZ{ 此網(wǎng)站是FRED原廠知識庫中如何與matlab接口
7Uy49cs, 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:
yc ize2>q Z*,Nt6;e In MATLAB:
<<a1a @&H Tt Start an instance of MATLAB
sJA` A Execute the command: enableservice(‘AutomationServer’,true)
.7lDJ2 Execute the command: enableservice(‘AutomationServer’)
}@VdtH In FRED:
jN.'%5Q?H yMz%s=rh Right mouse click in the script editor and choose: Edit > References
0A$x'pU) Choose the Matlab Type Library
A}K2"lQ#>, Dimension your Matlab object in the script as type MLApp.MLApp
-44{b<:D 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.
ZcT%H*Ib]9 ?"23X
文山县|
扶沟县|
那曲县|
朔州市|
报价|
仲巴县|
介休市|
宁武县|
天台县|
巴青县|
高雄县|
白水县|
邵阳市|
衢州市|
博乐市|
黄大仙区|
淮北市|
江都市|
社旗县|
内江市|
什邡市|
巴南区|
大姚县|
宜兰县|
河西区|
杨浦区|
马山县|
铜鼓县|
东港市|
三原县|
繁昌县|
玉溪市|
冕宁县|
惠水县|
九台市|
诸城市|
芦溪县|
得荣县|
太和县|
丰城市|
义马市|