Running a Simulation (Simulation Interface Toolkit)
- Updated2023-02-21
- 3 minute(s) read
Complete the following steps to run a simulation.
![]() |
Note If you are not running the simulation on a real-time (RT) target, you must launch The MathWorks, Inc. MATLAB® application software on the host computer. The command window displays the following message: Starting the SIT Server on Port 6011 SIT Server started This message indicates that the SIT Server is running. |
- Launch LabVIEW and open the host VI.
- Select Tools»SIT Connection Manager to launch the SIT Connection Manager dialog box.
- Enter the IP address and port of the SIT Server in the Simulation Environment text box. If the host computer is the same as the execution host, use the default value of localhost to specify that the SIT Server is running on the host computer.
- Click the OK button.
- Display the front panel of the host VI.
- Click the Run button in LabVIEW to run the host VI.
(Real-Time Target) When you run the host VI, the LabVIEW Simulation Interface Toolkit downloads the model DLL and driver VI to the real-time (RT) target. - Click the Run Simulation front panel button of the host VI to start the simulation.
- Adjust the values of the LabVIEW controls and observe the changes on the LabVIEW indicators. Because you created mappings between these controls to the model parameters, when you adjust the values of the controls, the parameter values of the model change. Using LabVIEW, you can change the parameters of the model and immediately view the results. You also can change the value of multiple parameters at once. If you try to change the value of a parameter whose value cannot change at run time, you receive an error.
- Click the Pause Simulation front panel button to pause the simulation. To resume the simulation, click the Pause Simulation button again. You cannot pause a simulation that is running on an RT target.
-
Click the Stop Simulation front panel button to stop the simulation.

Note If you are running the simulation on an RT target, or if you are running a model DLL on a Windows PC, clicking the Stop Simulation button also stops the host VI. In these situations, you do not need to click the Stop Host VI button also. -
If you are running the simulation in a simulation environment, click the Stop Host VI front panel button to stop the host VI.

Note If the simulation is running when you click the Stop Host VI button, the simulation continues to run. To stop the simulation, you must run the host VI again and click the Stop Simulation button.