LabVIEW Simulation Interface Toolkit API Reference

SIT Get Simulation State VI

  • Updated2023-02-21
  • 3 minute(s) read

SIT Get Simulation State VI

Owning Palette: User Interface VIs

Requires: Simulation Interface Toolkit

Returns the current status of the simulation.

Example

SIT Reference in specifies information about the current simulation.
TCP Connection specifies the TCP reference for the current connection to the SIT Server.
Model Name specifies the name of the current model.
Server Type specifies the type of execution host on which the SIT Server is running.

0Simulation Environment (default)—Specifies that the SIT Server is running on an execution host that is running The MathWorks, Inc. MATLAB® application software.
1MATRIXx—Specifies that the SIT Server is running on an execution host that is running Xmath. The LabVIEW Simulation Interface Toolkit does not currently support this option.
2RT—Specifies that the SIT Server is running on a real-time (RT) target.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
SIT Reference out returns information about the current simulation.
TCP Connection returns the TCP reference for the current connection to the SIT Server.
Model Name returns the name of the current model.
Server Type returns the type of execution host on which the SIT Server is running.

0Simulation Environment (default)—Specifies that the SIT Server is running on an execution host that is running The MathWorks, Inc. MATLAB® application software.
1MATRIXx—Specifies that the SIT Server is running on an execution host that is running Xmath. The LabVIEW Simulation Interface Toolkit does not currently support this option.
2RT—Specifies that the SIT Server is running on a real-time (RT) target.
State returns the current status of the simulation.

0Default (default)—Specifies that this VI could not determine the state of the simulation.
1Idle—Specifies that the simulation loaded but is not running.
2Running—Specifies that the simulation is running.
3Paused—Specifies that the simulation is paused.
4Stopped—Specifies that the simulation is stopped.
5Error—Specifies that an error occurred during the simulation.
error out contains error information. This output provides standard error out functionality.

Example

Refer to the updatingindicators VI in the labview\examples\Simulation Interface\Updating Indicators directory for an example of using the SIT Get Simulation State VI.