10-18-2011 03:51 PM
Iam using a state machines, Iam having a problem with updating new items in the state machines..
What happens when I right click on the enum attached to the shift register and try to add new item to it..
the cases change to numbers istead of actual choices..
what can I do to fix this.
Thanks
10-18-2011 03:56 PM
I don't quite understand what you mean, but for a state machine you should not be editing the enum instances. Your enum should be a type def and you edit the type def. This way you edit only one instance of the enum. If you do not know what a type def is, then check the LabVIEW Help.
Are you sure you actually have an enum, and not, for instance, a ring control?
10-18-2011 03:56 PM
Change your enum constant to a constant of an enum Type Def (Replace every constrant on the BD with constants created from the type def too to clear the coersion dots) Voila now when you edit the items the type def changes propigate through all the constants and the case structure selection update too! Painless
10-18-2011 04:41 PM
How do I change this enum to Typedyf
10-18-2011 05:10 PM - edited 10-18-2011 05:13 PM
Did you read the LabVIEW Help? It tells you.
A search will also tell you: http://search.ni.com/nisearch/app/main/p/bot/no/ap/global/lang/en/pg/1/q/labview%20typedef/
Check the first result: https://decibel.ni.com/content/groups/labview-instruction-videos/blog/2010/08/26/video-of-the-month-...
10-18-2011 05:51 PM
Another Link
Step by Step
http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/creating_type_defs/
Little Advanced
http://digital.ni.com/public.nsf/websearch/1B04FD6A11E6F17286256C6300588BFA?OpenDocument
10-18-2011 06:09 PM
well when I right click the enum constant, I see that the advanced is deactivated and so I cant change it to the typedef unless I change this enum to control.
10-18-2011 06:24 PM
R U Sure
I can do it
10-18-2011 10:32 PM
Hi,
You see that the advanced is deactivated because you have enum constant in block diagram. You must change that to "Control" first and then right click the enum control in front panel to access the Advanced>>Customize.
Hope this helps.
10-19-2011 08:24 AM
@VirtualWorld wrote:
R U Sure
I can do it
VW must be using LabVIEW 2011. Creating a type def from BD Constant was one of the new features in 2011 and was a product of the Idea Exchange.