1、先安裝matlab2011b,然后安裝LabView2011說(shuō)明:a.必須先安裝Matlab2011b,然后安裝LabView2011b.安裝LavView2011必須選擇安裝Simulink Interface Toolkit,因?yàn)镸atlab和Labview是通過(guò)這個(gè)組件進(jìn)行鏈接的2.打開(kāi)Matlab,運(yùn)行edit matlabrc,在打開(kāi)的matlabrc文件末尾添加:addpath('C:SimulationInterfaceToolkit'); % 將SimilinkInterfaceToolkit添加到Path中NISIT_AddPaths;NISITServer; % 啟動(dòng)SIT Server說(shuō)明:正常的安裝后,如果不添加這兩句代碼是無(wú)法在Matlab啟動(dòng)時(shí)運(yùn)行SIT Server,導(dǎo)致Matlab與Labview的通信失敗。3.配置Labview SIT Server打開(kāi)labview的配置界面:Tools->Options->VI Server勾選TCP/IP,在Machine Access List中添加本機(jī)IP或localhost并保存
4、Simulink配置Solver: Type為Fixed-step Stop-time可根據(jù)實(shí)際情況定義,建議為inf5、配置SIT Connection Manager在Sinulation IP Address中的地址必須在Machine Access List中,否則通信失敗