Professional Documents
Culture Documents
Instructor: Wei
Arrays in LabVIEW
An array has elements and
Dimensions.
Elements are the data that
make up the array.
A dimension is the length of an
array.
An array can have one or
more dimensions and as many
as 231 1 elements per
dimension, memory permitting.
Instructor: Wei
Limitations of Arrays
Cannot create an array of arrays.
Cannot create an array of charts.
Cannot create an array of multiplot XY graphs.
Instructor: Wei
Instructor: Wei
Instructor: Wei
Instructor: Wei
Instructor: Wei
Instructor: Wei
Instructor: Wei
Clusters
Data structure that groups data together
Data may be of different types
Analogous to struct in C
Elements must be either all controls or all
indicators
Thought of as wires bundled into a cable
Instructor: Wei
Creating a Cluster
1.
Instructor: Wei
Cluster Functions
In the Cluster subpalette of the Functions>>All
functions palette
Can also be accessed by right-clicking on the cluster
terminal
(Terminal labels
reflect data type)
Bundle
Bundle By Name
BME313 Virtual Bioinstrumentation
Instructor: Wei
Cluster Functions
Unbundle
Unbundle By Name
Unbundled cluster
in the diagram
Instructor: Wei
Error Clusters
Error cluster contains the following information:
Boolean to report whether error occurred
Integer to report a specific error code
String to give information about the error
Instructor: Wei
error clusters
Instructor: Wei
Charts
Waveform chart special
numeric indicator that can
display a history of values
Controls >> Graph Indicators
>> Waveform Chart
Instructor: Wei
Multiplot Charts
Instructor: Wei
Graphs
Instructor: Wei
Simple VI Architecture
Functional VI that produces results when run
No start or stop options
Suitable for lab tests, calculations
Example: Convert C to F.vi
Instructor: Wei
General VI Architecture
Three Main Steps
Startup
Main Application
Shutdown
Instructor: Wei
Disadvantages
Instructor: Wei