Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Model Interface VIs

LabVIEW 2010 Simulation Interface Toolkit Help

Edition Date: June 2010

Part Number: 371504F-01

»View Product Info
Download Help (Windows Only)

Owning Palette: Simulation Interface VIs

Requires: Simulation Interface Toolkit. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Model Interface VIs to create a driver VI. You also can use the SIT Connection Manager dialog box to generate a driver VI.

Note  You must install the LabVIEW Real-Time Module in order to place these VIs on the block diagram.

The VIs on this palette can return general LabVIEW error codes or specific Simulation Interface Toolkit error codes.

Palette ObjectDescription
SIT Configure TimingConfigures timing information for the simulation. If the simulation does not use a hardware timing source, this VI determines whether the simulation uses 1 kHz timing or 1 MHz timing.
SIT Control SimulationReads a real-time (RT) FIFO for commands from the host VI.
SIT Finalize Driver and ModelFinalizes the driver VI by finishing the logging, closing references and checking for errors. This VI also finalizes and unloads the model DLL.
SIT Finalize ModelUnloads the model DLL and notifies the SIT Server that the model DLL finished executing. You must use this VI after all model steps are complete.
SIT Initialize Driver and Wait for StartInitializes the driver VI and starts running the simulation. This VI configures timing information and launches task loops for multirate simulations.
SIT Initialize ModelLoads the model DLL, initializes the model, registers the model with the SIT Server, and sets the final time. This VI returns the model time step and the number of input ports and output ports needed. You must call this VI before taking any model steps.
SIT Probe SignalsProbes the available signals in the model DLL and sends the signal data to the SIT Server.
SIT Resolve Model DLL PathThis VI resolves the path for the Model DLL you specify using Model DLL Path In. If the model is running on RT or you provide an absolute path to the Model DLL, this VI does not modify the path. If the model is running on a Windows system and you provide a relative path to the Model DLL, this VI qualifies that path using the directory of the Driver VI.
SIT SchedulerInserts the data from the model inputs array into the model DLL inputs, takes a single step of the model DLL, and sends the data from the model DLL outputs to the model outputs array. Use the SIT Initialize Model VI before executing any steps in the model DLL. Use the SIT Finalize Model VI when you finish executing all the steps in the model.
SIT Set Model ParametersSets a new parameter value in the model. The elements of non-scalars such as arrays can be set individually. The parameter you want to set is specified by its param index and subindex.
SIT Start SimulationStarts the simulation.
SIT Take Model Time StepCalls the model to advance it one time step. The model DLL calculates the new Model Outputs based on the Model Inputs and current state of the model.
SITs Server LoopManages the communication between the model and the Host VI. This VI handles requests from the Host VI to start and stop the model as well as to set parameters and probe signals.

Data Logging VIsUse the Data Logging VIs to configure data logging from the driver VI.
File Playback VIsUse the File Playback VIs to configure playback from the driver VI.


Not Helpful