Complete the following steps to convert a model into a model DLL. You can convert models that use only a fixed step-size ordinary differential equation (ODE) solver. Additionally, you must turn off data logging in the Simulink® application software and instead log simulation data using the Data Logging page of the SIT Connection Manager dialog box. Refer to the Simulink documentation for information about using the Simulink application software to change the ODE solver of a model and turn off data logging.
![]() |
Note If you do not have a compiler set up to compile the C code, or if you have set up an unsupported compiler, you must run mex -setup in the MATLAB® application software before converting a model into a model DLL. |
After Real-Time Workshop builds a model DLL, the LabVIEW Simulation Interface Toolkit places the model DLL in a directory named <ModelName>_nidll_rtw, which is located in the current working directory. The Simulation Interface Toolkit also generates a text file, <ModelName>_portsReadme.txt, which specifies the lengths and positions of all model input and model output array data.
If the model you are converting specifies any .c or .h files, you must specify the locations of these files so the Simulation Interface Toolkit includes the code in the model DLL. Both of these changes require editing the makefile nidll_vc.tmf, which is located in the C:\SimulationInterfaceToolkit\ModelInterface\tmw\ directory.
Complete the following steps to specify a directory containing .h files a model uses.
Complete the following steps to specify any .c files a model uses.
Refer to the Real-Time Workshop documentation for more information about makefiles and how Real-Time Workshop generates C code.
| Previous: Building the Model | Next: Specifying the Model DLL and Execution Host |