Contents
LabVIEW Study Notes: LabVIEW Study Notes (I): Basic Introduction LabVIEW Study Notes (II): Filter Experiment LabVIEW Study Notes (III): Basic Controls LabVIEW Study Notes (IV): Dynamic Data Types LabVIEW Study Notes (V): Comprehensive Data Type Experiment LabVIEW Study Notes (VI): While Loops and For Loops LabVIEW Study Notes (VII): Variables and Shift Registers LabVIEW Study Notes (VIII): Property Nodes LabVIEW Study Notes (IX): Arrays and Clusters LabVIEW Study Notes (X): Case Structures Other Experiment Records
Variables
- Purpose of variables: transfer data between parallel loops
- Variable types
| Type | Purpose |
|---|---|
| Local variable | Stores data in front panel controls and indicators |
| Global variable | Stores data in a special database accessible by multiple VIs |
| Functional global variable | Stores data in a While Loop shift register |
| Shared variable | Transfers data between distributed tasks connected over a network |
- Local variables for Boolean controls
- Boolean controls with associated local variables must use switch mechanical actions
- Boolean latch actions are incompatible with local variables
Shift Registers
- Application: Shift registers can transfer data generated by the previous iteration to the next iteration
- How to add one: Right-click the loop border to add a shift register
- The shift register on the right stores the data at the end of each iteration, while the shift register on the left provides the stored data to the next iteration
- Shift register initialization
| Initialization | Program execution result |
|---|---|
| Initialized shift register | The result is the same no matter how many times the program runs |
| Uninitialized shift register | The input is the result of the previous program run, so the output changes with each run |

Comments