O'Reilly logo

LabVIEW Graphical Programming Cookbook by Yik Yang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating an error queue

This recipe demonstrates how to use an error queue in a parallel process for error handling. This allows for handling errors across multiple VIs.

How to do it...

For this error handling method, the error handling VI runs in the background of the main program to handle errors.

  1. Build the state machine as shown in the following screenshot. The enum has the values of Initialize, Case 1, Case 2, Case 3, and End. The Initialize state builds a path for BackError.vi, assuming that the VI is in the same folder as the main VI and opens the VI reference with the Open VI Reference node. The reference is wired to an Invoke Node and the Run VI method is selected, which will call the VI dynamically in the background. Outside the case structure, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required