m a listbox, and then change the value on the block diagram, but what I want is that on the subvi node itself he can enter the actual values, say 1, 10, 200. Does anyone know how to do this, creatively, since currently a control like this is not available.> I need a control which allows a user to choose from specific values
> (which I specify), NOT 0, 1, 2 etc. [I KNOW I can let him enter 0, 1,2
> from a listbox, and then change the value on the block diagram, but
> what I want is that on the subvi node itself he can enter the actual
> values, say 1, 10, 200. Does anyone know how to do this, creatively,
> since currently a control like this is not available.
>
One way of doing this is to use either a ring or enum where the strings
presented to the user are "1", "10", or whatever you like. On the
diagram, the values will be 0, 1, 2, in a compact counting sequence.
Then do an array index into a constant. If this is done more than one
place, make the control a typedef so you can keep them consistent an
d
make the index be done in a subVI. Then whenever you need this, you
drop the control and the subVI, out comes the integer, float, or
whatever it is you want to index.
Greg McKaskle