LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to relabel enum-designated cases in state machine

Solved!
Go to solution

Hello,

 

I have a state machine application in which enum typedefs are used to designate the case names.  Is there a quicker way to relabel one or more cases to match the edited enum typedef instead of having to rebuild all of them (the case structure loses all the enum names if I try to modify them in any way)?

 

Thank you in advance,

Oliver Barrett

www.linkedin.com

0 Kudos
Message 1 of 4
(2,927 Views)

create a custom control and edit it from there. Then anywhere you want that enum in your block diagram insert the customized control. You do this by right clicking the enum on teh front panel, choosing the advanced>then customize control I believe. There are tons of threads for it on here if i remember right. This should get you started.

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=221807&query.id=303050#M221807

 

heres a good link where its covered.

Message Edited by for(imstuck) on 06-21-2009 06:40 PM
0 Kudos
Message 2 of 4
(2,924 Views)
Solution
Accepted by topic author orbarrett
One thing to add, once your custom control/constant is in your block diagram, if you decide to add a new case to it, after the case is added you can just go file>apply changes in the customize control window and they will all update in your block diagram.
Message Edited by for(imstuck) on 06-21-2009 06:51 PM
Message 3 of 4
(2,919 Views)

imstuck,

 

Should have thought of that, thanks for your help!

 

Oliver

0 Kudos
Message 4 of 4
(2,904 Views)