Example Code

Using Queues to Process All Data Elements After Clicking Stop Button

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
Producer consumer architecture example with extra functionality

Description:
This example is a modification to the LabVIEW Core 2 course exercise 4-1. This illustrates how to add functionality to process all the data remaining in the queue after a user clicks the stop button on the UI.

Instructions:
To implement this example:

  1. Run VI
  2. Click the queue event to queue print job.


To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

2017-11-02_20-52-21.jpgbd.png

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

William A
National Instruments UK

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

Comments
G-Money
NI Employee (retired)
on

Thanks for posting this up!

cnoble36
Member
Member
on

Helpful example of using queues