The driver VI contains the code that communicates between the host VI and the target on which you run a simulation. This VI consists of a top-level driver VI, modelname_driver.vi, and a support library, modelname_IO.llb. modelname is the name of the model DLL. These VIs and LLBs exist in the same directory you specified for the model DLL in the SIT Connection Manager dialog box.
![]() |
Note Refer to the labview\examples\Simulation Interface\Sine Wave\ directory for an example of this structure. |
After you click the Build Model Files button on the Hardware I/O page of the SIT Connection Manager dialog box, the LabVIEW Simulation Interface Toolkit creates a driver VI unique to that simulation. The driver VI contains values you specified for the model, such as timing information, and the mappings you created between the model and any I/O hardware on the RT target.
![]() |
Note You can use the SIT Connection Manager dialog box to generate a driver VI only for certain hardware device configurations. To run a simulation that uses an unsupported hardware configuration, you can create a custom driver VI. |
The Simulation Interface Toolkit uses a template, located in the labview\vi.lib\addons\Simulation Interface\_ConnectionManager\scriptdriver\templates directory, to create this driver VI. This template creates a top-level driver VI that executes the following steps:
The front panel of the driver VI contains the following controls that affect the simulation.
![]() |
Note To save the current value of a control as a default value, right-click the control and select Data Operations»Make Current Value Default. Setting default values ensures you do not have to edit the driver VI each time you run the same simulation. You can configure the following options by using the Driver VI Buffer Settings dialog box. |
The block diagram of the driver VI includes the IO Base Rate Loop VI, which is circled in the following figure.

Like the driver VI, the Simulation Interface Toolkit creates the IO Base Rate Loop VI from a template in the labview\vi.lib\addons\Simulation Interface\_ConnectionManager\scriptdriver\templates directory. The IO Base Rate template is sit Base Rate Loop.vi. This template creates a VI named modelname_IO IO Base Rate Loop.vi.
The IO Base Rate Loop VI contains the following four custom VIs:
![]() |
Note The templates for these VIs also are located in the labview\vi.lib\addons\Simulation Interface\_ConnectionManager\scriptdriver\templates directory |
If you previously created a driver VI, the Simulation Interface Toolkit generates these VIs when you click the Build Model Files button. The block diagram code in these VIs depends on the mappings you create between the model DLL and any hardware devices. If you did not previously create a driver VI, the Simulation Interface Toolkit uses a template for the VIs.
The following figure shows these VIs, circled from left to right, on the block diagram of the IO Base Rate Loop VI.

The IO Base Rate Loop VI uses these four VIs to execute the following steps:
Single-rate simulations use only the IO Base Rate Loop, located on the block diagram, to control the timing of the simulation. However, multirate simulations use additional Timed Loops. Because each model task might have a different time step, the Scheduler Loop runs at the base rate of the simulation, which is the greatest common divisor of all the discrete time steps in the simulation. For example, if a multirate simulation contains two discrete tasks, one with a time step of 100 microseconds and one with a time step of 500 microseconds, the base rate is 100 microseconds. The Scheduler Loop then uses 100 microseconds as the time step of the simulation.
The Simulation Interface Toolkit uses rate-monotonic scheduling to prioritize different model tasks in the same model. Rate-monotonic scheduling gives higher priority to model tasks that have shorter time steps. A higher-priority task can interrupt a lower-priority task.
To view detailed information about each task in a multirate simulation, run the host VI and click the Simulation Details front panel button to launch the Simulation Details dialog box.