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?
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.
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.
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.