Assert Structural Type Match Function

LabVIEW 2018 Help


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

DOWNLOAD (Windows Only)


LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Owning Palette: Assert Type VIs and Function

Requires: Base Development System

Breaks the calling VI unless the two input data types are identical, ignoring type definitions and type names.

This function does nothing at run time. Use this 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.

Details  

x specifies the first input data type.

To set the data type of this input, wire a constant or control of the desired data type to x. LabVIEW ignores any data in the constant or control wired to x.
y specifies the second input data type.

To set the data type of this input, wire a constant or control of the desired data type to y. LabVIEW ignores any data in the constant or control wired to y.

Assert Structural Type Match Details

For data types with subtypes, such as arrays, clusters, and some refnums, this function also checks array dimensions and subtypes, but not the subtype names. For example, this function causes the calling VI to break if one input data type is 1D array of variant and the other is 2D array of variant or 1D array of scalars. If one input data type is a cluster of a string named class and an unsigned 8-bit integer named number of students, while the other input data type is a cluster of a string named Class 1 and an unsigned 8-bit integer named Size, the calling VI does not break because the subtypes of the two clusters are the same even though the subtype names are different.

WAS THIS ARTICLE HELPFUL?

Not Helpful