Example Code

master/slave template with event based error handling

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This code is  an event driven master / slave structure where the event-structure is also used for error handling with a dynamically created even


Description
Clean error handling in a Producer/Comsumer, Master/Slave and other highly parallel architectures can be a pain.

Here is a simple example for an event driven master / slave structure where the event-structure is also used for error handling with a dynamically created event. The initialization of the error-handler is done inside the timeout-case of the Event handler 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run VI

 

Additional Information or References
VI Block Diagram

 Block Diagram.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

--
Marco Tedaldi, University of Zurich, CLAD

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.