Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Model Interface VIs (Simulation Interface Toolkit)

LabVIEW Simulation Interface Toolkit 4.0 Help
August 2007

NI Part Number:
371504C-01

»View Product Info

Owning Palette: Simulation Interface VIs

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 StartConfigures timing information and launches task loops for multirate simulations. This VI also configures data logging and file playback resources for the simulation. LabVIEW reads the data logging and file playback configurations from a configuration file.
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 Log ContinuouslyRun this VI as a background task. If logging is enabled, this VI logs simulation data. This VI can log either all samples continuously, or only the last N time steps worth of data.
SIT Probe SignalsProbes the available signals in the model DLL and sends the signal data to the SIT Server.
SIT Replay From FileRun this VI as a background task. This VI reads the selected channel data from file and updates the Replay FIFO with the data.
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, then 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, then 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 and initializes any datalogging you configure.
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.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit