This widget could not be displayed.
This widget could not be displayed.

LabVIEW

This widget could not be displayed.
cancel
Showing results for 
Search instead for 
Did you mean: 

Labview State machines Edit Items

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

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 1 of 13
(4,561 Views)

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?

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 2 of 13
(4,559 Views)

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


"Should be" isn't "Is" -Jay
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 3 of 13
(4,558 Views)

How do I change this enum to Typedyf

 

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 4 of 13
(4,540 Views)
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 5 of 13
(4,535 Views)

Another Link

 

Step by Step

 

https://www.ni.com/docs/en-US/bundle/labview/page/creating-type-definitions-and-strict-type-definiti...

 

Little Advanced

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019KnUSAU&l=en-US 

 

Smiley Happy

-------------------------------------------------------------------------------------------------------------------------------
Thanks & Regards,
Kunal Raithatha.
CTD - CLAD (I wish I can take off that A, and maybe use it later to replace D 🙂

Easy Tip :- "To copy an image to a VI icon, drag the image file and place it on the icon
located in the upper right corner of the front panel or block diagram" ...If you know any
more reply back.
-------------------------------------------------------------------------------------------------------------------------------
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 6 of 13
(4,522 Views)

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.

 

 

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 7 of 13
(4,516 Views)

R USmiley Surprised Sure 

 

I can do it 

 

 

-------------------------------------------------------------------------------------------------------------------------------
Thanks & Regards,
Kunal Raithatha.
CTD - CLAD (I wish I can take off that A, and maybe use it later to replace D 🙂

Easy Tip :- "To copy an image to a VI icon, drag the image file and place it on the icon
located in the upper right corner of the front panel or block diagram" ...If you know any
more reply back.
-------------------------------------------------------------------------------------------------------------------------------
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
Message 8 of 13
(4,510 Views)

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.

- Meadow -
LabVIEW 7.0 - 2011, Vision, RT, FPGA
TestStand 3.0 - 4.5
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 9 of 13
(4,495 Views)

@VirtualWorld wrote:

R USmiley Surprised 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.


"Should be" isn't "Is" -Jay
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
Message 10 of 13
(4,471 Views)