16-11-2012, 04:58 PM
LabVIEW Programming Examples
LabVIEW Programming Examples.pdf (Size: 1.36 MB / Downloads: 191)
Description: In text-based programming languages, you store and access data with functions through the use of variables. In the LabVIEW graphical programming language, wires implicitly handle all of the data storage and access that are associated with variables in text-based languages. Think of wires as a path for data to flow. Data comes into block diagram objects through a wire and can leave only through a wire. Local (or Global) Variables are used to pass data when a wire in some situations cannot be used.
LabVIEW Arrays Example
Description: Working and manipulating with Arrays is an important part in LabVIEW development. Arrays are very powerful to use in LabVIEW. In all your applications you would probably use both One-Dimensional Arrays and Two-Dimensional Arrays.
On the Front Panel using the Control palette we can create an array as follows (Array, Matrix & Cluster subpalette):
LabVIEW Cluster Example
Description: Clusters group data elements of mixed types, such as a bundle of wires, as in a telephone cable, where each wire in the cable represents a different element of the cluster. A cluster is similar to a record or a struct in text-based programming languages. Bundling several data elements into clusters eliminates wire clutter on the block diagram and reduces the number of connector pane terminals that subVIs need. Like an array, a cluster is either a control or an indicator. A cluster cannot
contain a mixture of controls and indicators.
LabVIEW Debugging Example
Description: LabVIEW offers different debugging techniques, such as Highlight Execution, Probes, Breakpoints and Single Stepping. In this example we will use these debugging techniques on an existing VI.
Requirements: LabVIEW 2009
Task:
Highlight Execution: View an animation of the execution of the block diagram by clicking the Highlight Execution button.