小弟想要將simulink建好的模型匯到labview中執行
版本是simulink 2010,matlab 2010a
已知道需使用Simulation Interface Toolkit
也成功將simulink 的 mdl 匯到 labview中執行
但還是希望能將simulink mdl轉成NI的dll檔以加快執行速度
參考過許多網路上的資料但始終轉檔失敗
方法是習知的在tool--->real-time workshpe--->options中
將system target file 設定成 nidll.tlc 然後build
也確定有安裝 VC++ 6.0
但還是有以下錯誤訊息
Invalid setting for environment variable MSDevDir or DevEnvDir.
The setting is: ''
You can verify the setting by checking for the existence of:
%DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 9.0)
%MSDevDir%\..\..\vc98\bin\vcvars32.bat (for Visual C/C++ 6.0)
%DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 8.0)
You must define MSDevDir or DevEnvDir to be:
set %DevEnvDir%=<VisualRoot>\common7\ide (for Visual C/C++ 9.0)
set %MSDevDir%=<VisualRoot>\common\msdev98 (for Visual C/C++ 6.0)
set %DevEnvDir%=<VisualRoot>\common7\ide (for Visual C/C++ 8.0)
This error may be due to an invalid preference file:
C:\Documents and Settings\Fyme\Application Data\MathWorks\MATLAB\R2010a\mexopts.bat
Please run "mex -setup" at the MATLAB prompt to correct
不曉得有沒有哪位大大可以解答