04-08-2014 10:24 AM
Hey all,
I want to lock an enum to a specific value and make it essentially a constant. Basically I want the enum to keep a value I select upon saving whenopening/closing the VI. Maybe I've just been looking at the code for too long, but is there a simple way to set a default value for the enum that is not the first or last value in the list?
thanks a bunch!
Solved! Go to Solution.
04-08-2014 10:40 AM - edited 04-08-2014 10:42 AM
You can make any value the default, but it requires a "save" operation to keep the new setting. Simply right-click the enum and "data operation...make current value default".
It it should not be operated at run time, make it disabled.
If you only need it on the diagram, change it to a diagram constant instead.
Sometimes it is easier to save values in a configuration file, this way the value can be defined externally to the VI.
04-08-2014 10:47 AM
I figured the solution would be that simple.
Thanks for putting me out of my misery on this one! ^_^