11-04-2008 12:48 PM
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
11-04-2008 01:06 PM
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?
11-04-2008 01:23 PM
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
11-05-2008 04:56 PM
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