LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reassociate enum with case structure

I am using functional globals to store a lot of machine parameters for a system I am working on.  There are many parameters in each FG, and I use an Enum to select which parameter I want to read or write. 

 

Here is my question:  I want to delete some of the parameters which turn out to be no longer neccessary.  When I do that, I lose the association between the enum and the case structure.  The cases, which were labeled with the text from the enum, now are just labeled 0,1,2,3....    Much less useful.   Is there a trick to restore the association?   

 

Thanks,

-Geoff 

0 Kudos
Message 1 of 4
(3,576 Views)

The behavior you're describing should not be happening with an enum. It almost sounds like you're dealing with a ring constant, but you said the cases were labeled from the enum. Is your enum a type def or a regular control? Can you post your FG with the enum? I'd like to see this behavior.

 

Also, what version of LabVIEW are you running?

0 Kudos
Message 2 of 4
(3,570 Views)

Do you lose the labels on all cases or only on the cases which correspond to deleted items from the enum?  If the latter, then this is a useful thing since those cases need to be deleted anyway.

 

Lynn 

0 Kudos
Message 3 of 4
(3,559 Views)

OK.  I think this is a "never mind".  I made up a little example using a type def for the control, and I can add and delete just fine.  I was unable to reproduce this "problem" I had in the past.  Which makes me think there was a problem, just not with LabVIEW....

 

Sorry to waste all y'alls time.

-GN 

0 Kudos
Message 4 of 4
(3,527 Views)