10-20-2009 11:00 PM
10-21-2009 01:37 AM - edited 10-21-2009 01:42 AM
Hi Joshuatree,
"the other gets the current numeric value."
Your first example is kinda RubeGoldbergish: To get the (numeric) value of an enum you simply wire the terminal (or it's local variable, when it is an indicator)... No need to use a property node to read the text (as string) from the digital display and convert that to a number ![]()
Hint: enum wires are blue like any other integer datatype...
10-21-2009 09:08 AM
Thanks all.
I think a previous discussion about using type def enums to define queues answered solved the problem I was trying to deal with. By type def and converting to constant the enum, you can use that to define and access states listed in the enum definition...AND ... the state names are updated in all the constants if you use copies of the type definition to configure them.
You guys are leading me through the very darkest part of the forest here...thanks.
Hummer1...learning new stuff every day.
10-21-2009 10:20 AM
Hummer1 wrote:Thanks all.
I think a previous discussion about using type def enums to define queues answered solved the problem I was trying to deal with. By type def and converting to constant the enum, you can use that to define and access states listed in the enum definition...AND ... the state names are updated in all the constants if you use copies of the type definition to configure them.
You guys are leading me through the very darkest part of the forest here...thanks.
Hummer1...learning new stuff every day.
that should read "... the dorkest part of the forest..." ![]()
Ben
10-26-2009 02:23 PM
Ben,
Dorkest...Right!
Here is a little demo ap that I have been working on to figure all this out...it is an event/state/error recovery pattern with error trapping queue. I tried to explain the "wonders" of what this did for me to the wife the other night...and got that ("does this mean you want to buy another ham radio?") look?
Thanks for all the help.
Hummer1
10-26-2009 02:28 PM
10-26-2009 02:29 PM
10-26-2009 02:50 PM
Sorry, here is the zip of the whole thing...
Hum(ble)