NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

FIFO Color Coded Message Queue

VERSION 2

Created on: Feb 18, 2009 2:05 PM by Nate.H - Last Modified:  Feb 18, 2009 2:15 PM by Nate.H

This VI implements a color coded FIFO (First In First Out) Message Queue using array functions. The queue is actually an array of clusters. Each cluster contains a color box indicator and a string containing user defined information.

FIFO Color Coded Message Queue FP.jpg

 

The queue is populated until it reaches a user specified maximum queue size, and then acts as a FIFO after that (an element is added at the beginning of the array, and deleted from the end).

 

FIFO Color Coded Message Queue BD.jpg

 

 

This example could be used to return specific messages to the user over the course of a test based on specific input conditions.Integration of an event structure to add a message to the queue only upon specific event occurances would also increase the usefulness of this code in certain situations.

 

Downloads:
Average User Rating
(0 ratings)




Todd Sierer Todd Sierer  says:

Please rename your attachment to include the LabVIEW version ("_lvXX.vi" would be fine).

More Like This

  • Retrieving data ...