Search code examples
typestype-conversionlabviewvarianttypecast-operator

LabView SubVI terminal with variable data type


I would like to create a SubVI that has an output terminal with a variable data type. Outside the SubVI the terminal will be connected to a Type Cast. I do not want to use the Variant as data type.

Block diagram

VI block diagram

Is this possible and if yes how can it be done?


Solution

  • No, it is not possible. There is only one data type that is capable of carrying all data types. That is Variant. I don't know why you don't want to use it, but that's your only option. Type Cast is only for castable types (i.e. numerics and a few other limited cases like casting a string to an array of bytes).