LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enum in a Typedef Reverts to Default (LabVIEW 2009)

My rule while editing enum is to first add item to the end of the list. Then File menu of the type def -> Apply changes. Then reorder enum items if needed and close or apply changes. Unopened VIs update properly.

My guess LV confusion (when not following this rule) might come from converting between index and name of the enum items when VIs have unapplied changes. 

LV 2011, but rule appeared earlier and it seems I will follow it in LV 2016 and later.

0 Kudos
Message 21 of 22
(341 Views)

Thanks for the tip. If it is a bug, it need to be addressed by NI. I had a very difficult and frustrating moment as the application behaved in unexpected way after modifying enum in a typedef. Since it can lead to a major failure, at least there should be a formal guide line to avoid this issue until it get fixed.

In the mean time, I will follow what you suggested when modifying enum in Typedef.

Thanks.

Steve

0 Kudos
Message 22 of 22
(314 Views)