LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error But Want Exit Code To Still Run

Highlighted

I have code that will uses the error in and error out cluster method of handling errors.  If there is an error I want my exit code to still run but it does not because the error cluster is wired to the exit code.  What is the best way to handle an error in the error cluster but still run the exit code?  Thanks!

0 Kudos
Message 1 of 3
(1,288 Views)
Highlighted

Hi testdesign,

 

just run your "exit" code independently from the "error in" state:

check.png

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 2 of 3
(1,286 Views)
Highlighted

Hi,

 

You could use the Clear Errors VI prior to calling the exit code:

 

Clean Errors Example.png

 

I hope this helps,

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 3 of 3
(1,063 Views)