Assert Structural Type Match function
Object information | |
---|---|
Owning palette(s) | Assert Type palette |
Type | Function |
Requires | Basic Development Environment |
Icon |
The Assert Structural Type Match function 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.
Usage
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.
History
Version | Change(s) |
---|---|
This function was added in LabVIEW 2018. |
See Also
External Links
Add links to external resources that would also help. |