08-06-2012 03:38 PM
I use several QSM (one main and some subs) and for the states I use enum (nice because the case structure is very intuitive with the text).
The queue messages are basically a cluster containing an enum (the message ID) and a variant (for whatever data is needed for that message).
Let say I have two enums with different items: ENUM1 = {CAT, DOG} & ENUM2 = {CAR, TRUCK}
I need to make a standard VI that will take either of those enum controls as its input and output the list of its strings.
My guess is that I need to do something with references and the String[] property node, but I'm just not getting it right.
If somebody could just point me in the right direction, I'd appreciate it.
Thanks,
Matt
08-06-2012 04:39 PM
The VI you need already exists. Look in vi.lib\Utility\VariantDataType\GetNumericInfo.vi.
08-06-2012 05:11 PM
Thanks, that VI does what I need, but I'm more interested in the underlying code to accomplish it.
Any ideas on what's beneath the hood in that VI?
Thanks much.
Matt
08-06-2012 05:34 PM
Probably several calls to internal LabVIEW functions using Call Library Function Node with the library name set to LabVIEW.