LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error case structure with exclusions

Hi all,
As is recommended coding practice, I use error case structures in my subvis to prevent code from running when an error in occurs. However, I would like the code to operate for specific errors, say errors between values 5001 and 5010. I tried entering the specific error values into the case header, as shown in the following snapshot image, but as suspected LV wasn't happy. Namely because I entered numbers into a string-based case structure.
What's the easiest way to include/exclude specific error values from the case structure? Do I have to strip the error cluster outside the case structure, check for the value range, and create a simple true/false case structure? I would love an easier way if anyone can advise?


Thanks!
Riggy
0 Kudos
Message 1 of 3
(2,699 Views)

Hi Riggy,

unbundle the error cluster and connect the "code" value to your case structure.

Mike

Message 2 of 3
(2,697 Views)
Hi Mike,
As soon as you suggested that, it seemed so obvious I can't believe I didn't think of it myself! Smiley Very Happy
Thanks!
Riggy
0 Kudos
Message 3 of 3
(2,694 Views)