FRED可以與MATLAB 、EXCEL建立接口,支持VB語言,且其腳本是以VB語言編寫的,編程非常順手
!{- 3:N7 以下是FRED手冊給出的
.6]cu{K( .
*+7xL 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.
-^%"w http://fred-kb.photonengr.com/2011/08/16/fred-automation-with-matlab/ PDiorW}]k 此網(wǎng)站是FRED原廠知識庫中如何與matlab接口
).6/ii9gt 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:
Y+PxV*"a s`#j8>`M
In MATLAB:
a*@Z^5f m<;" 1<k Start an instance of MATLAB
iw6M3g# Execute the command: enableservice(‘AutomationServer’,true)
J~ rC Execute the command: enableservice(‘AutomationServer’)
j7%%/%$o[ In FRED:
Tl{r D(D M%LwC/h:, Right mouse click in the script editor and choose: Edit > References
T{kwy3 Choose the Matlab Type Library
=<tEc+!T3 Dimension your Matlab object in the script as type MLApp.MLApp
Kct +QO( 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.
!,WRXE&j X=}0+W The example enbedded script in the sample file with this article demonstrates how to use some of the following Matlab application commands:
B}bNl 7
~ ]nGA1
古蔺县|
和静县|
平乐县|
铅山县|
绥芬河市|
永泰县|
东丽区|
永和县|
合阳县|
涡阳县|
嘉定区|
仲巴县|
武山县|
哈巴河县|
临西县|
永定县|
乳源|
常熟市|
新沂市|
娄烦县|
英超|
杭州市|
田东县|
洪泽县|
长乐市|
琼海市|
琼结县|
东乡县|
荥经县|
富蕴县|
华安县|
股票|
蓝山县|
日照市|
大石桥市|
铜鼓县|
新安县|
河东区|
璧山县|
石屏县|
白水县|