06-22-2020 11:13 AM - edited 06-22-2020 11:18 AM
I suppose, you are looking for the now deprecated
"..National Instruments\LabVIEW 2019\vi.lib\Utility\GetTyp.llb"
this .llb can be used like shown in the following example from this source
"GetTypeInfo.vi"and "GetNumericInfo.vi" can be replaced by the counterpart of the Data Type Parsing VIs
Something like this, parsing the variant data type, is probably the solution. But I don't know how to use data types to create an array of enums. I can create an array of variants of enums, but that is as close as I can get.
I added a VI to this discussion thread to illustrate my issue more clearly.
Thanks
06-23-2020 10:07 AM
The solution was to use flatten to string and flattened string to variant as below.
The case structure just sets the possible enum representations: U8, U16, U32, and U64.
An example of the solution is in the attached VI. It uses OpenG Toolkit and is written in LV2018.
06-23-2020 01:34 PM
@BrittonB wrote:
The solution was to use flatten to string and flattened string to variant as below.
The case structure just sets the possible enum representations: U8, U16, U32, and U64.
An example of the solution is in the attached VI. It uses OpenG Toolkit and is written in LV2018.
Glad you solved your problem! I was headed towards a solution involving flattening and unflattening, but I couldn't get home to work on it. Nice job!