labview data types & conversions between these types
TRANSCRIPT
![Page 1: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/1.jpg)
LabVIEW DATA TYPES
![Page 2: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/2.jpg)
LabVIEW DATA TYPES• Numeric- This data type contains either an integer or floating point
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.
These data types can be in either Scalar, 1D Array or 2D Array form.
![Page 3: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/3.jpg)
LabVIEW DATA TYPES• Broken connections result when invalid types
connected together
BrokenConnection
![Page 4: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/4.jpg)
LabVIEW DATA TYPES
![Page 5: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/5.jpg)
Numeric DATA TYPE• The numeric data type represents numbers of various types. • A table depicting the categories of the numeric data type:
![Page 6: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/6.jpg)
Numeric DATA TYPEInteger Numbers
![Page 7: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/7.jpg)
Numeric DATA TYPEFloating-Point Numbers.
![Page 8: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/8.jpg)
Numeric DATA TYPEComplex Numbers.
![Page 9: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/9.jpg)
Numeric DATA TYPENumeric Conversion
• When different representation types are wired to the inputs of a function, the function returns an output in the larger or wider format. LabVIEW chooses the representation that uses more 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
![Page 10: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/10.jpg)
Boolean DATA TYPE
![Page 11: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/11.jpg)
Boolean DATA TYPE• LabVIEW stores Boolean data as 8-bit values.
• If the 8-bit value is zero, the Boolean value is FALSE.
• Any nonzero value represents TRUE.
• Boolean values also have a mechanical action associated with them.
• The two major actions are latch and switch. Latch action is similar to a doorbell, whereasswitch action is similar to a light switch.
• You can also define when the switch or latch occurs: when pressed, when released, or until released.
![Page 12: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/12.jpg)
Boolean DATA TYPE
Download VI
![Page 13: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/13.jpg)
Boolean DATA TYPE
![Page 14: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/14.jpg)
String DATA TYPE• A string is a sequence of displayable or non displayable ASCII characters•On the block diagram, strings are represented with the color pink.
• String display types:
![Page 15: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/15.jpg)
Cluster DATA TYPE
![Page 16: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/16.jpg)
Dynamic DATA TYPES
• Signals generated or acquired by an Express VI.
• 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
• You can wire the dynamic data type to any indicator or input that accepts numeric,waveform, or Boolean data.
• Use the Convert from Dynamic Data Express VI to convert dynamic data to numeric, waveform, and array data types for use with other VIs and functions.
![Page 17: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/17.jpg)
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.
![Page 18: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/18.jpg)
DATA TYPES
![Page 19: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/19.jpg)
DATA TYPES
![Page 20: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/20.jpg)
Changing Representations
• using the conversion icons or
• Block Diagram > Representations > Choose the desired representation
DATA TYPES
![Page 21: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/21.jpg)
DATA TYPES Conversion
![Page 22: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/22.jpg)
DATA TYPES Conversion
![Page 23: LabVIEW Data Types & Conversions Between These Types](https://reader036.vdocuments.site/reader036/viewer/2022081800/5527f67c55034670588b45db/html5/thumbnails/23.jpg)
DATA TYPES Conversion