LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error

Solved!
Go to solution

Hello,

I have built on the image below a Labview Program, which returns after a false comparison when you press ok and true when you not press ok.
it's a matter of comparing the value of the input and output.
values are differente when you press ok.
the problem is the following:
  how to get a system error when the comparison returns a false

0 Kudos
Message 1 of 3
(2,336 Views)

Do you actually mean to set a LabVIEW error? That's simple. Use the Bundle by Name with an Error Constant as the input cluster.

 

0 Kudos
Message 2 of 3
(2,308 Views)
Solution
Accepted by topic author sonnyanderson

On the Dialog and User Interface Palette, there is the "Error Cluster from Error Code" function.  If you wire a number other than 0 (= No Error) in to the (required) Error Code terminal, you will generate an Error with that number.  Note that many numbers already have LabVIEW errors associated with them.  Errors in the range 5000-9999 (and a few other ranges) are "User-defined Error Codes", meaning they are whatever you say they are.

 

BS

0 Kudos
Message 3 of 3
(2,219 Views)