‎10-06-2009 09:38 AM
‎10-06-2009 09:49 AM
Did you make your enum a type def?
Felix
‎10-06-2009 10:31 AM
‎10-06-2009 10:51 AM
Well, that is the difference of them actually. Rings are not strict with their values, so you can set them during run-time (so good for UI design). Enums on the other hand are fixed string-number associations. So you also have the string representation available in the IDE, such as wiring an enum to a case selector.
Felix
‎10-07-2009 04:56 PM
I guess I'll be a bit more specific with my issue:
I want to be able to create constants off this input with the drop down selector that appears with an enum. However, I'm having issues reconciling places where it doesn't appear an enum is used, but I need to use one to replicate the functionality. For instance, in IMAQ: If I wire an image to the property node to get the image type, and then create a constant off of that, it'll give me an enumerate list of possibilities. However, if I turn this constant into a control and try to use it in the ctl of my class, the output from the property node won't interface with the input to my private copy of image type without saying that the types don't match up. This might be totally irrelavent and it might work, but I'd rather get the types working corrently.
Am I doing something wrong in this case? If I just make my private copy of image type a ring control, it will work properly with the output from the property node, but then it doesn't create the default list of things when I go to make constants or UI elements with the class copy, instead using a regular numeric input.
In C, this would be a piece of cake. Just get the type definition, and we can play together harmoniously. But while I clearly have access to the type definition (since I can create a constant off of the property node), it's like I'm not allowed to use that definition later on. I dunno, I'm bothered by it even if it makes no difference.