I have a VI that generates various stimuli, defined in an enum control called "Stimulus". I have a "stimulus" variable which holds the particular value of the control. Generating code is very nice, because wiring the "stimulus" to the Case Statement selector shows me the "user-friendly" name of each stimulus (Sinusoid, Trapezoid, Random Walk, etc.) instead of the enum values (0, 1, 2 ...).
I am writing a Config file that describes my test, and want to output the stimulus value. If I simply wire the variable "stimulus" to the Write Config data terminal, it gives me the numeric enum value (e.g. 0). I'd like to get the "User-Friendly" value, defined in the Enum control (e.g. Sinusoid). Short of hand-coding the strings in myself, is there a way to get the (string) values directly from the TypeDef control?
Bob Schor