LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

UIR file significantly increases in size

I am using LabWindows/CVI 7.0, and I have three user interface files in my project.  One of these UIR files has started to increase significantly in size with each minor change.  It has gone from around 30KB in size to 35MB, with very minor changes in the panel itself, and in the last change it doubled in size to about 70MB.   The changes  I am doing are very trivial such as adding a single control such as a toggle button, or even just increasing the width of the panel by a few pixel units.  The other UIR files in the same project are not increasing in size by anything more than a few bytes each time anything is added.  Does anybody have any idea why this is happening with just this one particular UIR file?  It renders the project almost unusable due to the huge size of the panel file.
 
Thanks,
Darren
0 Kudos
Message 1 of 6
(3,878 Views)
Darren,

Just from your description, I can't fathom why a .UIR file would go from 30Kb to 70Mb. That does sound bizarre. It's possible that something is interfering with the compression of whichever picture or canvas controls you might have in the file, but from where I stand it's hard to imagine what.

If you were able to post in the forum a zip file with both the small and the very large versions of your .UIR, I might be able to figure out what is going on.

Luis
NI
Message 2 of 6
(3,868 Views)
For the 70meg UIR, it would be easier to upload it to the ftp site at ftp://ftp.ni.com/incoming

Bilal Durrani
NI
Message 3 of 6
(3,842 Views)
Hi  Luis & Bilal,
 
I have uploaded "Small_to_big_UIR_files.zip" on the ftp site as requested.  This zip contains two consecutive versions of the UIR file "af3030_chan.uir" which suddenly jump in size from 39KB to 1057KB.  I have renamed them as "af3030_chan15.uir" and "af3030_chan16.uir".  I will be very interested to know what might be causing this huge jump in size.
 
Many thanks,
Darren
 
0 Kudos
Message 4 of 6
(3,811 Views)
Darren,

I don't know the root cause of the problem yet, but I do know that it has something to do with the FlexGrid ActiveX control that you have in your .uir. Each time I load and then save the .UIR, the persistence of that control (by "persistence" I mean the blob of memory that the control uses to save its state) is growing twofold, approximately. This is happening with both the small and the large versions of the .uir.

The odd thing is that if I start with a new .uir and I put in it that same control (at least the version of that control that I have installed in my own computer), no matter how often I save and reload the .uir, the file size stays the same. It might have something to do with some setting that you changed in your copy of the control (do you remember all the edits you made?). In other words, if you were to replace the control with a new one, in its default state, would you still be seeing the problem? And if the answer is no, can you then start repeating the edits you made before, all the while re-saving the file and checking to see which change, if any, triggers this behavior?

Luis

Message 5 of 6
(3,778 Views)

Thanks very much for your help Luis.  I did wonder about the FlexGrid control, as I have a range of UIRs in my project, and it's only the "af3030_chan.uir" that exhibits this particular problem.  The key difference between this UIR and the others, apart from different CVI user controls and coordinates, is that it's the only one that uses the FlexGrid control.  I will try your suggestions out and let you know the outcome.

Regards,

Darren

Message Edited by Darren Draper on 03-24-2006 01:59 AM

0 Kudos
Message 6 of 6
(3,763 Views)