LabVIEW DATA TYPES

LabVIEW DATA TYPES
• • • • Numeric- This data type contains either an integer or floating point numbers. numbers Boolean - This data type contains logical combinations of TRUE/FALSE, AND, OR, NOT, Etc. String - Contains alpha-numeric characters only Dynamic - Data associated with a signal and the attributes that provide information about the signal, such as the name of the signal or the date and time the data was acquired. Cluster - Encloses several data types. Cluster data types appear brown if all elements in the cluster are numeric or pink if all elements of the cluster are of different types. l t f diff tt

These data types can be in either Scalar, 1D Array or 2D Array form.

LabVIEW DATA TYPES • Broken connections result when invalid types connected together t dt th Broken Connection .

LabVIEW DATA TYPES .

Numeric DATA TYPE • The numeric data type represents numbers of various types. • A table depicting the categories of the numeric data type: bl d i i h i f h i d .

Numeric DATA TYPE Integer Numbers .

.Numeric DATA TYPE Floating-Point Numbers.

.Numeric DATA TYPE Complex Numbers.

Numeric DATA TYPE Numeric Conversion • When different representation types are wired to the inputs of af function. LabVIEW chooses the representation that uses more bits. bits • The functions force the smaller representations to larger representations before execution and LabVIEW places a force dot on the terminal where the conversion takes place . the function returns an output in the larger or wider i h f i i h l id format.

Boolean DATA TYPE .

•B l Boolean values also have a mechanical action associated with them.Boolean DATA TYPE • LabVIEW stores Boolean data as 8-bit values. • Any nonzero value represents TRUE. l l h h i l ti i t d ith th • The two major actions are latch and switch. the Boolean value is FALSE. Latch action is similar to a doorbell. or until released. • If the 8-bit value is zero. • You can also define when the switch or latch occurs: when pressed. when released. pressed released released . whereas switch action is similar to a light switch.

Boolean DATA TYPE Download VI .

Boolean DATA TYPE .

strings are represented with the color pink.String DATA TYPE g • A string is a sequence of displayable or non displayable ASCII characters •On the block diagram. • String display types: g p y yp .

Cluster DATA TYPE .

• Use the Convert from Dynamic Data Express VI to convert dynamic data to numeric. and array data types for use with other VIs and functions. . • Data associated with a signal and the attributes that provide information about the signal. waveform.Dynamic DATA TYPES y • Signals generated or acquired by an Express VI VI. waveform. or Boolean data. such as the name of the signal or the date and time the data was acquired g q • You can wire the dynamic data type to any indicator or input that accepts numeric.

The following table lists indicators that accept the dynamic data type and the type of data the dynamic data type can contain. . and describes how indicators handle the data.

DATA TYPES .

DATA TYPES .

DATA TYPES Changing Representations • using the conversion icons or • Block Diagram > Representations > Choose the desired representation .

DATA TYPES Conversion .

DATA TYPES Conversion .

DATA TYPES Conversion .