manthey@dim.om (Benjamin J. Manthey) wrote:
>How do you make a indicator or control that will accept any data type ie:
string, uint16 etc...>>Thanks in advance,>>-Ben>manthey@dim.com>http://www.dimensional.com/~manthey
Ben,
It really depends on what you need it for.
For user interface, a string control will let you enter strings, numbers
(any style), booleans, or paths. You can then parse it in the diagram.
A string indicator can also show a string, number, boolean, or path. This
is fine if you have at least some idea of what to expect. This doesn't work
directly for RefNums.
If you are interested in passing from one VI to a subVI, you may want to
flatten to string and unflatten from string on the other side.
Otherwise, no there is no control/indicator presen
tly in LabVIEW (as far
as I know) that is polymorphic.
I hope that this helps,
Bob Young