Folks,
I am building a set of subvis for a customer who will provide their own interface and use that to call into one of my subvis.
There are many commands (a serial I/O application) to support. What I'm shooting for is an enumeration control for all commands so the customer can just add this to their front panel. As they choose a command this (among other inputs) is passed into my subvi.
The problem: in my subvi I can see each numeric value for a command (I have a driver to mimic the customer) as 0, 1, 2, 3
etc. In the case structure in my subvi I would like to be able to have each case refer to the name of each enum rather than raw numbers. So if the user on thier VI selects GetTemperature I want in my subvi case structure to use that same name,
GetTemperature, rather than 0 and so on.
This is all to simple a thing to do but I don't see the light (newbie gets bit again). I started out passing string to get the
ball rolling but I hate that.
I've been on the forums until my eyes glazed over.
The zip file has my project (of course it's broken because of a mix of integer/strings in a case statement). MiniMain.vi is
what I call the driver and Mila.vi is my subvi that eventually the customer will call into.
Any help would be greatly appreciated.
Dave