Owning Palette: Assert Type VIs and Functions
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.
Add to the block diagram | Find on the palette |
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 lecture and an unsigned 8-bit integer named number of students, while the other input data type is a cluster of a string named lecture 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.