04-26-2011 04:43 PM
Using LabWindows/CVI 2010 I created a simple test program with a panel containing a couple of push buttons, three toggle switches and three LED controls. I can create control arrays containing the toggle switches and/or the LEDs in the .uir editor and access them in the program, but when I close the .uir editing window and reopen the .uir file, the control arrays are gone from the .uir file and of course when I rebuild the program I can't access them. This happens if I exit LW/CVI entirely or if I just close the .uir editor. If I explicitly save the .uir file after creating the arrays, all looks well, but then when I close the .uir window I see an asterisk briefly show up in the filename tab, as if it's modifying the file and then saving it again on purpose.
I can duplicate this by just creating one or two control arrays and closing the window. The array(s) disappear even if I explicitly save the .uir file after I create them. Is there something I can do to prevent this from happening?
Thanks,
Brian
Solved! Go to Solution.
04-26-2011 04:57 PM
Hey Brian -
It sounds like your UIR may have been saved for a previous version at some point. If you open the UIR and look in the bottom right corner, does it say "2010 UIR file"? If not, you'll need to click File»Save *.uir As and save the UIR as a 2010 UIR.
If you choose to save the UIR for a previous version, CVI remembers this decision, and always saves the UIR for that previous version. You will have to explicitly choose to save it for the current version.
Let me know if that does not resolve things for you -
NickB
National Instruments
04-27-2011 06:58 AM
Nick,
Thanks, that was exactly it! In the corner it said "7.1 UIR file". Once I saved it as a 2010 UIR file the problem went away.
Brian