LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid using four PDA Error handler VI in one block diagram?

Right now I have four PDA Error handler VI in one block diagram, each corresponds to a DAQmxBase Stop Task.vi. How can I wire them so that I only have to use one?
 
If not possible, how should I bundle the error out so that the program will stop once an error occurs? Right now I used "Bundle" and "Unbundle by name", which I wired to an "Or" boolean (along with a Stop Boolean), and then wire it to the icon that stops the while loop. Will that work?
0 Kudos
Message 1 of 4
(3,340 Views)
In LabVIEW you can combine error clusters using the "merge errors" VI located on the functions pallette under "dialog & user interface", "merge errors." I'm not certain if you can access this from the PDA pallette, but it's worth a try.
 
Assuming that this VI is accessable in LabVIEW PDA, you can then use the "unbundle by name" to get the status of the merged error cluster and use that to stop the VI.
 
I hope this helps.
 
Casey Weltzin
National Instruments
Message 2 of 4
(3,321 Views)
In one of Darren's Weekly Nuggets, he discusses a quick and dirty method for merging errors.  Note: this will not pass warnings, only errors.  They are not well documented, but there are several places where error clusters can be used in the place of a strict boolean.




Message Edited by jasonhill on 06-22-2006 03:51 PM

0 Kudos
Message 3 of 4
(3,319 Views)
Crap.  I was so focused on merging the errors, that I messed up incorporating the stop control.  Fixed below.  You could use the undbundle by name instead.


Message Edited by jasonhill on 06-22-2006 04:01 PM

Message 4 of 4
(3,313 Views)