LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Errors managing in Event Structure

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.

0 Kudos
Message 1 of 5
(2,846 Views)

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?

 

Message Edited by altenbach on 09-22-2008 06:21 PM
Message 2 of 5
(2,842 Views)

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 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 5
(2,812 Views)

Alex67 wrote:

 

Does Event Structure has any other built in possibility for managing errors?


Event Structure is basically meant for managing Events, NOT Errors. Smiley Happy

 

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.

- Partha ( CLD until Oct 2027 🙂 )
Message 4 of 5
(2,809 Views)

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.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 5 of 5
(2,803 Views)