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

Report Simulation Error (Simulation Module)

LabVIEW 8.2 Simulation Module Help
September 2006

NI Part Number:
371894A-01

»View Product Info

Reports an error to the top-level 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 report simulation error VI in the labview\examples\simulation\Getting Started\Utilities directory for an example of using the Report Simulation Error VI.

 


Resources


 

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