09-22-2008 07:58 PM
Hello.
I am looking for a possibility to manage errors in Event Structure based VIs. Now I use special Error boolean control to generate Error event (Example is in the attached file).
Does Event Structure has any other built in possibility for managing errors?
Thank you.
09-22-2008 08:20 PM - edited 09-22-2008 08:21 PM
Unfortunately, you don't say what you mean by "managing errors". 😄
Looking at your code, it seems that you want to clear the errors every time an error occurs in the event structure. Why can't you just do this directly, e.g. as follows?
09-23-2008
05:19 AM
- last edited on
04-30-2025
09:02 AM
by
Content Cleaner
A better way to generate an error event is to use User Events (http://zone.ni.com/reference/en-XX/help/371361D-01/lvconcepts/user_events/). You can pass more information than simply a boolean value. A pretty good example of user events ships with LabVIEW; it doesn't pass an error, but you can get an idea of how it would work.
jm
09-23-2008 05:36 AM
Alex67 wrote:
Does Event Structure has any other built in possibility for managing errors?
Event Structure is basically meant for managing Events, NOT Errors.
Management of Errors should be carried out in a Shift Register that runs thro' all the events of the Event Structure that lies inside the While loop.
09-23-2008 05:56 AM
An error happening somewhere in your program could be an event that you want to handle in your main controller. Passing errors through a Shift Register is good for catching the errors generated inside the Event Structure, but Alex67 seems to be trying to handle errors generated somewhere else.