LabVIEW Control Design and Simulation Module

Report Simulation Error Function

  • Updated2023-03-14
  • 1 minute(s) read

Owning Palette: Utilities Functions

Requires: Control Design and Simulation Module

Reports an error to the top-level Control & Simulation Loop. This function does not have a configuration dialog box.

Details  Example

Block Diagram Inputs

Block Diagram Inputs

ParameterDescription
error inDescribes the error condition to report to the owning simulation diagram. The default is no error.
  • status—Displays TRUE (X) if an error occurred and is reported to the owning simulation diagram. If status is FALSE (checkmark), no error is reported to the owning simulation diagram. The default is FALSE.
  • code—Specifies the error or warning code. The default is 0.
  • source—Specifies the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.

Report Simulation Error Details

If the simulation receives an error condition, the simulation halts after the current time step. However, because this function reports the error immediately and because most functions do not run if an error has been reported, the simulation does not run as expected between the time the function reports the error and the end of the current time step.

Example

Refer to the SimEx report simulation error VI in the labview\examples\Control and Simulation\Simulation\Utilities directory for an example of using the Report Simulation Error function.

Log in to get a better experience