2013-10-14 44 views

回答

1

你可以做的是,生成代碼,爲它編寫包裝器,並在IDE中創建一個DLL。例如,如果您想在Visual Studio中創建一個dll,您將生成代碼,然後在代碼生成報告中導入所有文件。

a。

b. Source Files 
     ModelName.c/cpp 
     ModelName_data.c/cpp 
     ert_main.c/cpp 
     ModelName.h 
     ModelName_private.h 
     ModelName_types.h 
     rtwtypes.h 
    c. Include director paths 
     $(MATLAB_ROOT)\simulink\include 
     $(MATLAB_ROOT)\extern\include 
     $(MATLAB_ROOT)\rtw\c\src 
     $(MATLAB_ROOT)\rtw\c\src\ext_mode\common 

很好的教程創建的dll MSDN

:使用ert.tlc「創建實時車間嵌入式編碼器的Visual C/C++解決方案文件」

設置項目路徑如下生成代碼http://msdn.microsoft.com/en-us/library/ms235636.aspx

我正在運行MatLab 2010和visual studio 2010.

相關問題