LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

managing errors

I made this question in this thread (spanish community):

http://forums.ni.com/ni/board/message?board.id=6170&message.id=3270

but I needed another opinion.

"My VI have 5 while loops, that runs independents. Four of them have a process with a possible error.
On the other hand, 3 subVI of configuration (with possibles errors) running when start the VI.

My question: exists some method to stop de VI when it happens some error occurs without using local variables?
(I need 7 local variables in each loop to be able to stop them)".


vicen

LV 7.1 / WinXP
0 Kudos
Message 1 of 4
(2,553 Views)
Do you need to know which one caused the error?  I see you have 4 booleans.  What about the timing of each loop?  Are there any critical loops?  I would make an error handling subVI, but how it is constructed is based on the questions above.
The mechanism I use typically involves using queues to handle the error clusters.  If any error is queued, then it stops everything.  But there are other ways to construct this subVI.

Paul
Message 2 of 4
(2,543 Views)

Here's one example. It could be made smarter, but it would work as it is too (and across VIs).

It resets the flag to F when it starts and sets it to T whenever one of the loops tells it to stop.


___________________
Try to take over the world!
Message 3 of 4
(2,534 Views)
Thank you, Stradis & tst,

The queues seem very interesting. And the STOP are OK.

Thank you both.

0 Kudos
Message 4 of 4
(2,528 Views)