12-15-2016 01:22 PM
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.
12-16-2016 12:03 AM
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