Type Descriptors in LabVIEW 7.x and Earlier

FlexRIO Help

Edition Date: November 2015

Part Number: 372614J-01

»View Product Info

»Download the Help in ZIP Format

LabVIEW associates each wire and terminal on the block diagram with a data type. LabVIEW keeps track of this type with a structure in memory called a type descriptor. This type descriptor is a sequence of 16-bit integers that can describe any data type in LabVIEW. Numeric values are written in hexadecimal format, unless otherwise noted.

Note  The format in which LabVIEW stores type descriptors changed in LabVIEW 8.0. LabVIEW 7.x and earlier stores type descriptors in 16-bit flat representation. This information applies if you use the Convert 7.x Data mode of the Flatten To String function. The following information reflects how LabVIEW stores type descriptors in LabVIEW 7.x and earlier.

The generic format of a type descriptor in LabVIEW 7.x and earlier is

<length> <type code>

Some type descriptors have additional information following the type code. Arrays and clusters are structured or aggregate data types because they include other types. For example, the cluster type contains additional information about the type of each of its elements.

The first word (16 bits) in any type descriptor is the length, in bytes, of that type descriptor, including the length word. The second word (16 bits) is the type code. LabVIEW reserves the high-order byte of the type code (the xx in the following tables) for internal use. When comparing two type descriptors for equality, you should ignore this byte. Two type descriptors are equal even if the high-order bytes of the type codes are not.

The type code encodes the actual type information, such as single-precision or extended-precision, floating-point number, as listed in the following table. These type code values might change in future versions of LabVIEW.

Data Types

The following tables list numeric and non-numeric data types, type codes, and type descriptors.

Data Type Type Code (numbers in hexadecimal) Type Descriptor (numbers in hexadecimal)

8-bit Integer


0005 xx01

16-bit Integer


0005 xx02

32-bit Integer


0005 xx03

64-bit Integer


0005 xx04

Unsigned 8-bit Integer


0005 xx05

Unsigned 16-bit Integer


0005 xx06

Unsigned 32-bit Integer


0005 xx07

Unsigned 64-bit Integer


0005 xx08

Single-Precision Floating-Point Number


0005 xx09

Double-Precision Floating-Point Number


0005 xx0A

Extended-Precision Floating-Point Number


0005 xx0B

Single-Precision Complex Floating-Point Number


0005 xx0C

Double-Precision Complex Floating-Point Number


0005 xx0D

Extended-Precision Complex Floating-Point Number


0005 xx0E

Enumerated 8-bit Integer


<nn> xx15 <k> <k pstrs>

Enumerated 16-bit Integer


<nn> xx16 <k> <k pstrs>

Enumerated 32-bit Integer


<nn> xx17 <k> <k pstrs>

Single-Precision Physical Quantity


<nn> xx19 <k> <k base-exp>

Double-Precision Physical Quantity


<nn> xx1A <k> <k base-exp>

Extended-Precision Physical Quantity


<nn> xx1B <k> <k base-exp>

Single-Precision Complex Physical Quantity


<nn> xx1C <k> <k base-exp>

Double-Precision Complex Physical Quantity


<nn> xx1D <k> <k base-exp>

Extended-Precision Complex Physical Quantity


<nn> xx1E <k> <k base-exp>

n=length; x=reserved; k=number; k pstrs=number of Pascal strings; k base-exp=number of base-exponent pairs.

Data Type Type Code (numbers in hexadecimal) Type Descriptor (numbers in hexadecimal)



0004 xx21



0008 xx30 <dim>



0008 xx32 <dim>



0008 xx33 <dim>



<nn> xx40 <k> <k dims> <element type descriptor>



<nn> xx50 <k> <k element type descriptors>



<nn> xx54 <waveform type> <element type descriptors>



<nn> <refnum type code><specific type code information>



<nn> xx53

n=length; x=reserved; k=number; k pstrs=number of Pascal strings; k base-exp=number of base-exponent pairs. A dim is a 32-bit integer. The following sections provide examples of data and type descriptors.

The minimum value in the size field of a type descriptor is 4, as shown in the previous table. However, any type descriptor can have a name (a Pascal string) appended, in which case the size field is larger by the length of the name rounded up to a multiple of two.

Enumerated 8-Bit Integer

In the following example of an enumerated 8-bit integer for the items am, fm, and fm stereo, each group of characters represents a 16-bit word. The space enclosed in quotation marks (" ") represents an ASCII space.

0016 0015 0003 02a m02 fm 09f m" " st er eo

0016 indicates 22 bytes total. 0015 indicates an enumerated 8-bit integer. 0003 indicates there are three items.

Physical Quantity

In the following example of a double-precision physical quantity with units m/s, each group represents a 16-bit word.

000E 001A 0002 0002 FFFF 0003 0001

000E indicates 14 bytes total. 001A indicates this is a double-precision physical quantity. 0002 indicates two base-exponent pairs. 0002 denotes the seconds base index. FFFF (–1) is the exponent of seconds. 0003 denotes the meters base index. 0001 is the exponent of meters.

LabVIEW stores all physical quantities internally in terms of base units, regardless of the units used to display them.

The following table shows the nine bases that are represented by indexes 0 through 8 for radians through candela.

Quantity Name Unit Abbreviation Base Value

plane angle

radian rad 0

solid angle

steradian sr 1


second s 2


meter m 3


kilogram kg 4

electric current

ampere A 5

thermodynamic temperature

kelvin K 6

amount of substance

mole mol 7

luminous intensity

candela cd 8

String, Path, and Picture Data Types

The string, path, and picture data types have a 32-bit length, similar to the array dimension size. However, the only value currently encoded is FFFFFFFF (–1), which indicates variable sized. Currently, all strings, paths, and pictures are variable sized. The actual length is stored with the data.

Array and Cluster Data Types

The array and cluster data types each have their own type code. They also contain additional information about the data types of their elements and the dimensionality for arrays or number of elements for clusters.


The type code for an array is 40. A word that contains the number of dimensions of the array immediately follows the type code. Then, for each dimension, a 32-bit integer contains the size in elements of that dimension. Finally, after all of the dimension sizes, the type descriptor for the element appears. The element type can be any type except an array. Currently all sizes are FFFFFFFF (–1), which means the array dimension size is variable. LabVIEW stores the actual dimension size, which is always greater than or equal to zero, with the data. The following example is a type descriptor for a 1D array of double-precision floating-point numbers:

000E 0040 0001 FFFF FFFF 0004 000A

000E is the length of the entire type descriptor, including the element type descriptor. The array is variable sized, so the dimension size is FFFFFFFF. The element type descriptor (0004 000A) appears exactly as it does for a scalar of the same type.

The following example is a type descriptor for a 2D array of Boolean values:

0012 0040 0002 FFFF FFFF FFFF FFFF 0004 0021


The type code for a cluster is 50. A word that contains the number of items in the cluster immediately follows the type code. The type descriptor for each element in cluster order follows this word. For example, consider a cluster of two integers, a 16-bit signed integer and a 32-bit unsigned integer:

000E 0050 0002 0004 0002 0004 0007

000E is the length of the type descriptor including the element type descriptors.

Because array and cluster type descriptors contain other type descriptors, they might become deeply nested. For example, the following is a type descriptor for a multi-plot graph. The numeric types can vary.

0028 0040 0001 FFFF FFFF...1D array of

001E 0050 0001...1 component cluster of

0018 0040 0001 FFFF FFFF...1D array of

000E 0050 0002...2 component cluster of

0004 000A...double-precision floating-point number

0004 0003...32-bit integer


The type code for a waveform is 54. A word that contains the type of waveform immediately follows the type code. The type descriptor of the cluster of the waveforms elements follows this word. There are five categories of waveforms:

  • Analog
  • Digital
  • Digital Data
  • Time Stamp
  • Dynamic

The following table lists the types of analog waveforms.

Type Subtype Code

8-bit signed


16-bit signed


32-bit signed


64-bit signed








8-bit unsigned


16-bit unsigned


32-bit unsigned


64-bit unsigned


Complex Single-Precision


Complex Double-Precision


Complex Extended-Precision


For example, consider a double-precision waveform:

0086 0054 0003...size of waveform, followed by type and subtype code

0080 0050 0005...size of cluster, cluster code, and number of elements

<type descriptor of time stamp>

<type descriptor of dt>

<type descriptor of array of element type>

<type descriptor of unused error cluster>

<type descriptor of attributes>

The type descriptor of the other types of analog waveforms is similar to the double-precision waveform. The difference is a different type for the array element and a different subtype.

Digital Waveform and Digital Data

The digital waveform is the only type of waveform that has a subtype code 8.

For example,

00B6 0054 0008...size of digital waveform, type code and subtype code

00B0 0050 0005...size of cluster, cluster code and number of elements

<type descriptor of time stamp>

<type descriptor of dt>

<type descriptor of digital data>

<type descriptor of unused error cluster>

<type descriptor of attributes>

Digital data is the only data type with a waveform type code and a subtype code of 7.

For example,

003E 0054 0007...size of digital data, type code and subtype code

0038 0050 0002...size of cluster, cluster code and number of elements.

<type descriptor of transitions>

<type descriptor of data>

Time Stamp

The time stamp has a subtype code of 6. The time stamp is a 128-bit fixed-point number. LabVIEW stores a time stamp as a cluster of four integers where the first two integers (64 bits) represent the number of whole seconds after 12:00 a.m., Friday, January 1, 1904, Universal Time [01-01-1904 00:00:00]. The next two integers (64 bits) represent the fractions of seconds.

001C 0054 0006 0016 0050 0004 0004 0003, 0004 0003, 0004 0003, 0004 0003

09...size of dynamic waveform, type code subtype

0096 0050 0001...cluster of one element

0090 0040 0001 FFFF FFFF...array of one element

<type descriptor of an analog waveform>


Not Helpful