Presentations Version 8_presentation 2-8

download Presentations Version 8_presentation 2-8

of 23

Transcript of Presentations Version 8_presentation 2-8

  • 8/3/2019 Presentations Version 8_presentation 2-8

    1/23

    LabVIEW DATA TYPES

  • 8/3/2019 Presentations Version 8_presentation 2-8

    2/23

    LabVIEW DATA TYPES

    Numeric- This data type contains either an integer or floating point.

    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 provideinformation about the signal, such as the name of the signal or the dateand 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 thec us er are o eren ypes.

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

  • 8/3/2019 Presentations Version 8_presentation 2-8

    3/23

    LabVIEW DATA TYPES

    Broken connections result when invalid typesconnecte toget er

    BrokenConnection

  • 8/3/2019 Presentations Version 8_presentation 2-8

    4/23

    LabVIEW DATA TYPES

  • 8/3/2019 Presentations Version 8_presentation 2-8

    5/23

    Numeric DATA TYPE

    The numeric data type represents numbers of various types.

    A ta le epicting t e categories of t e numeric ata type:

  • 8/3/2019 Presentations Version 8_presentation 2-8

    6/23

    Numeric DATA TYPEInteger Numbers

  • 8/3/2019 Presentations Version 8_presentation 2-8

    7/23

    Numeric DATA TYPE

    Floating-Point Numbers.

  • 8/3/2019 Presentations Version 8_presentation 2-8

    8/23

    Numeric DATA TYPE

    Complex Numbers.

  • 8/3/2019 Presentations Version 8_presentation 2-8

    9/23

    Numeric DATA TYPE

    Numeric Conversion

    When different representation types are wired to the inputs ofa function, the function returns an output in the larger or wider

    format. LabVIEW chooses the representation that uses more

    .

    The functions force the smaller representations to larger

    dot on the terminal where the conversion takes place

  • 8/3/2019 Presentations Version 8_presentation 2-8

    10/23

    Boolean DATA TYPE

  • 8/3/2019 Presentations Version 8_presentation 2-8

    11/23

    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.

    oo ean va ues a so ave a mec an ca act on assoc ate w t t em.

    The two ma or actions are latch and switch.

    Latch action is similar to a doorbell, whereas

    switch action is similar to a light switch.

    You can also define when the switch or latch occurs:

    w en presse , w en re ease , or un re ease .

  • 8/3/2019 Presentations Version 8_presentation 2-8

    12/23

    Boolean DATA TYPE

    Download VI

  • 8/3/2019 Presentations Version 8_presentation 2-8

    13/23

    Boolean DATA TYPE

  • 8/3/2019 Presentations Version 8_presentation 2-8

    14/23

    Strin 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:

  • 8/3/2019 Presentations Version 8_presentation 2-8

    15/23

    Cluster DATA TYPE

  • 8/3/2019 Presentations Version 8_presentation 2-8

    16/23

    D namic DATA TYPES

    gna s genera e or acqu re y an xpress .

    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.

  • 8/3/2019 Presentations Version 8_presentation 2-8

    17/23

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

  • 8/3/2019 Presentations Version 8_presentation 2-8

    18/23

    DATA TYPES

  • 8/3/2019 Presentations Version 8_presentation 2-8

    19/23

    DATA TYPES

  • 8/3/2019 Presentations Version 8_presentation 2-8

    20/23

    DATA TYPESChanging Representations

    Block Diagram > Representations > Choose the desired representation

  • 8/3/2019 Presentations Version 8_presentation 2-8

    21/23

    DATA TYPES Conversion

  • 8/3/2019 Presentations Version 8_presentation 2-8

    22/23

    DATA TYPES Conversion

  • 8/3/2019 Presentations Version 8_presentation 2-8

    23/23

    DATA TYPES Conversion