LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Handling Question

Solved!
Go to solution

How does everyone handle errors when a error comes across as OK(error number)? I notice that my error case structure does not handle what I think are "soft errors", for a lack of the correct term, but I want to take some kind of action on those kind of errors.

 

What is the trick that I am missing? Is it as simple as taking a Unbundle by Name and wiring the error number to the case structure and eliminate wiring the error cluster directly to the case structure?

0 Kudos
Message 1 of 6
(2,297 Views)

Hi Eric,

 

what I think are "soft errors", for a lack of the correct term,

I think you are talking about "warnings"…

 

How does everyone handle errors when a error comes across as OK(error number)?

You can use an Unbundle function to get the 3 components of the error cluster…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,295 Views)

Just so I do not look like a fool...like this?

0 Kudos
Message 3 of 6
(2,288 Views)

Hi Eric,

 

can you attach a downconverted version of your VI? I'm stuck at LV2017 right now…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,279 Views)
0 Kudos
Message 5 of 6
(2,274 Views)
Solution
Accepted by topic author Eric1977

No.  Errors have a True boolean value.  Warnings and non-errors have a false boolean state.

So you should have a NOT on that top boolean wire going to the AND.

0 Kudos
Message 6 of 6
(2,273 Views)