Here is a document that my local NI rep sent.
Author: Gerardo Garcia x32773
Last updated: 10/10/05
Note: this document is a work in progress. You can find a link to the latest version of this document here.
General Questions
1. What is a LabVIEW Shared Variable?The LabVIEW shared variable is a new feature in LabVIEW 8 for sharing data between VIs and networked computers. The API is similar to a local or global variable; however it has many additional features such as network buffering.
2. When should I recommend using shared variables to customers?
NI recommends using shared variables for most applications that need to share and monitor data across the network. As a general rule of thumb, we will recommend shared variables for most applications. Shared variables are not recommended in medium to fast streaming applications, such as vibration monitoring, etc. In these cases, low-level TCP or UDP functions will provide faster communication. See the performance section of the FAQ for more information.
3. How does the shared variable work?
The shared variable uses different methods to communicate depending on the shared variable configuration settings. When a shared variable node is placed on the block diagram, LabVIEW scripts the corresponding communication code in the background.
4. Can users see the code behind the shared variable?
No.5. What are the different types of shared variables?
There are three types of shared variables:
1. Single-process
2. Network-published
3. Time-triggered
The type of variable is designated through a setting in variable properties dialog.
6. What is a single-process shared variable and how does it work?Single-process shared variables behave much like global variables and will have similar performance. They are used to transfer data between VIs or loops on a single computing device. There are two advantages that single-process shared variables have over global variables: