Skip to content Skip to navigation

Connexions

You are here: Home » Content » Queues in LabVIEW

Navigation

Recently Viewed

This feature requires Javascript to be enabled.
Download
x

Download module as:

  • PDF
  • EPUB (what's this?)

    What is an EPUB file?

    EPUB is an electronic book format that can be read on a variety of mobile devices.

    Downloading to a reading device

    For detailed instructions on how to download this content's EPUB to your specific device, click the "(what's this?)" link.

  • More downloads ...
Reuse / Edit
x

Module:

Add to a lens
x

Add module to:

Add to Favorites
x

Add module to:

 

Queues in LabVIEW

Module by: Felix Annan. E-mail the author

Summary: This describes the function of Queues in transferring data between virtual instruments in National Instruments LabVIEW

Queues, as the name suggests, queue data. This data is stored in a buffer in memory until it is read from the queue. There are generally two forms of queues available, there is the First In First Out (FIFO) queue and there is also the Last In First Out (LIFO) queue. Most of the time when you stand in a queue to receive a service or purchase something, that is a FIFO queue, the first person to get there is the first person served. LIFO queues generally do not occur often in social queue settings. When you stack tennis balls in a tube, the last ball in is the first ball you can get out, or when you stack books in a box or equipment in a van, generally the last bit to go in is the first bit that can be removed. Items can be previewed(read) from the queue without being removed from the queue or "Dequeued". However, once dequeued the data item will no more be available on the queue. Adding items to a queue is called ‘Enqueuing’. The end to which data items are enqueued determines whether the queue is a LIFO queue or a FIFO queue

The Advantage:

  1. They buffer and store all information written to them until it is read so nothing is lost.
  2. They can be created dynamically by changing the queue name

The Disadvantage:

  1. Queues must be polled continually to determine when data has arrived except when combined with a notifier

Generally a queue is very well suited for data streams like that of a waveform, especially data for which loss of information would be very undesirable.

Implementation:

A typical setup for reading from and writing to a queue is indicated in the Figure 1.

Figure 1: The VI on the left writes to a queue and the VI on the right reads from the queue
Queues
Queues (queue.jpg)

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Reuse / Edit:

Reuse or edit module (?)

Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.