ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error handling?

Hi
 
I`m rewriting 2 big VIs that are used to test a device. Such a VI handles several tests, selected by a state machine. I like to start a discussion  about whats the best way to handle errors in a big state machine VI
 
for example:
when a communication fails, you have the option to retry, or stop the test sequence (maybe even retry)
 
is there some documentation on how to handle errors in big applications?
 
cheers,
B
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 1 of 2
(2,922 Views)
One possible way is to use a FGV (functional global variable) to handle errors. You can implement 4 states within the while loop for instance: Initialize, Set, Get (Report) and Clear Error. If an error occurs, a user event is generated which displays an unobtrusive message/sign on display. Furthermore, you can group logical errors and handle several procedures for every group.
 
One source how to handle errors is the Intermediate I course and another source could be the LabVIEW bookshelf.
 
Regards,
ThSa
0 Kudos
Message 2 of 2
(2,911 Views)