Assert Type VIs and Function

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2015 Help
LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help

Owning Palette: Comparison Functions

Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Assert Type VIs and function in conjunction with the Type Specialization structure to customize sections of code in a malleable VI (.vim) for specific data types or to force a malleable VI to accept only data types that meet certain requirements.

Palette ObjectDescription
Assert Array Dimension CountBreaks the calling VI unless the input data is an array with the same number of dimensions as the input comparison array and each dimension has the same type, such as fixed, bounded, or variable-sized, as the corresponding dimension in the input comparison array. To check if each dimension has the same size, use the Assert Array Dimension Sizes VI.
Assert Array Dimension SizesBreaks the calling VI unless the input data is an array with the same number of dimensions as the input comparison array and each dimension has the same size and type, such as fixed, bounded, or variable-sized, as the corresponding dimension in the input comparison array. If you do not need to compare the size of each dimension, use the Assert Array Dimension Count VI.
Assert Complex Numeric TypeBreaks the calling VI unless the input data is a complex numeric type.
Assert Error Cluster TypeBreaks the calling VI unless the input data is an error cluster.
Assert Fixed-Point Numeric TypeBreaks the calling VI unless the input data is a fixed-point numeric type.
Assert Floating-Point Numeric TypeBreaks the calling VI unless the input data is a floating-point or complex floating-point numeric type.
Assert Fractional Numeric TypeBreaks the calling VI unless the input data is a floating-point, complex floating-point, or fixed-point numeric type.
Assert Integer TypeBreaks the calling VI unless the input data is an integer numeric type.
Assert Real Floating-Point Numeric TypeBreaks the calling VI unless the input data is a non-complex floating-point numeric type.
Assert Real Numeric or Waveform TypeBreaks the calling VI unless the input data is a non-complex numeric or analog waveform type.
Assert Real Numeric TypeBreaks the calling VI unless the input data is a non-complex numeric type.
Assert Same or Descendant TypeBreaks the calling VI unless the input data is the same as or a descendant class of the input class.
Assert Scalar Numeric or Waveform TypeBreaks the calling VI unless the input data is a scalar numeric or analog waveform type.
Assert Scalar Numeric TypeBreaks the calling VI unless the input data is a scalar numeric type.
Assert Signed Integer TypeBreaks the calling VI unless the input data is a signed integer numeric type.
Assert Structural Type MatchBreaks the calling VI unless the two input data types are identical, ignoring type definitions and type names.
Assert Unsigned Integer TypeBreaks the calling VI unless the input data is an unsigned integer numeric type.
Type Specialization StructureHas one or more subdiagrams, exactly one of which LabVIEW compiles and executes, depending on the order and the compilation result of the subdiagram. LabVIEW declines subdiagrams in order if they have syntax errors. LabVIEW accepts the first subdiagram that does not have syntax errors and ignores the remaining subdiagrams. If all subdiagrams have syntax errors, this structure accepts the last subdiagram.

Use this structure to customize sections of code in a malleable VI (.vim) for specific data types. You also can use this structure in conjunction with the Assert Type VIs and function to force a malleable VI to accept only a subset of the acceptable data types.

WAS THIS ARTICLE HELPFUL?

Not Helpful