Executing a Model DLL on a Windows Computer (Simulation Interface Toolkit)
- Updated2023-02-21
- 2 minute(s) read
You typically create a model DLL to control a simulation in real time. However, you also can execute a model DLL on a Windows computer, typically the host computer. You also can use hardware I/O devices, such as a National Instruments DAQ device, if you installed those devices in the Windows computer.
![]() |
Note Although you use the following procedure to execute a model DLL on a Windows computer, you must install the LabVIEW Real-Time Module as if you were executing the model DLL on an real-time (RT) target. Additionally, National Instruments does not guarantee deterministic applications when running on a Windows computer. Therefore, you might need to increase the sampling period of the model to ensure the model DLL executes on the Windows computer. |
Complete the following steps to execute a model DLL on a Windows computer:
- Specify the model DLL and execution host. In this situation, select the Driver VI on Localhost option.
- Click the Hardware I/O tab.
- (Optional) If you have any DAQ or CAN devices or FPGA targets installed on the Windows PC, create mappings between the host VI and those devices.
- Click the Build Model Files button to generate the driver VI. The LabVIEW Simulation Interface Toolkit places the driver VI, <ModelName>_driver.vi, in the same directory as the model DLL you specified.
- Click the OK button in the SIT Connection Manager dialog box. If you have not saved the host VI already, LabVIEW prompts you for a location to save the host VI.
- Close the simulation environment or manually stop the SIT Server. Also, ensure that no other driver VIs are running on the Windows computer. If you do not stop the SIT Server before continuing, LabVIEW returns an error when you try to run the VIs.
- Enter a name and location for the host VI and click the OK button to save the host VI. The Simulation Interface Toolkit generates the block diagram code of the host VI.
- Open and run the driver VI.
- Open and run the host VI.
