Report Simulation Error Function

Simulation VI and Function

Report Simulation Error Function

Owning Palette: Utilities Functions

Installed With: Control Design and Simulation Module

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

Details  Example

Block Diagram Inputs
 Place on the block diagram  Find on the Functions palette

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 report simulation error VI in the labview\examples\Control and Simulation\Simulation\Utilities directory for an example of using the Report Simulation Error VI.

 Open example  Browse related examples