10-19-2007 07:28 AM
10-19-2007 07:35 AM
quite simply, one is a ring control, the other one is an enum control.
the two are quite similar, but an enum can only correlate a string to a Unsigned integer, while a ring can assign any string or picture to any value (eg dbl).
10-19-2007 07:45 AM
10-19-2007 07:47 AM
HI Gabi1,
THere is another important point that that is important.
These are illustrated by turn on the help window and using the wiring tool while floating over the wires of an enum vs a ring.
The enum actually has the strings as part of its data types. The ring does not. This disticntion makes it possible to wire a enum ot a "format into string" since the strings are "in the wire!"
Done splitting wires.
Ben
10-19-2007 07:50 AM
yes, that why i always prefere to connect the ring to an enum type def via a reference subvi (eg when i need a picture ring on the FP), and then only use enums to wire case structures.
thanks Ben and Dennis for pointing it out.
10-19-2007 08:25 AM
10-19-2007 08:29 AM
10-19-2007 08:32 AM
10-19-2007 08:36 AM
"... I want to convert because the ring is from DAQ and I cannot change it..."
See the example that Jarod posted in this thread.
Use Dennis' tip to create the enum and you should be good to go.
Ben
10-19-2007 08:36 AM - edited 10-19-2007 08:36 AM
Typecast it.
Never mind. Look at the example Ben mentions.
Message Edited by Dennis Knutson on 10-19-2007 07:38 AM