05-07-2016 09:03 PM
Solved! Go to Solution.
05-07-2016 09:12 PM
Seeing as we know so much about your VI, let us give you a detailed response 😛
Try posting the VI so we have SOME chance to figure out what may have changed?
05-07-2016 11:52 PM
This typically happens if you set a contol value to have a default value that contains a lot of data. If you have an array control and you set it to have a default value that was a very large array, for example, LabVIEW has to store all that data inside the VI.
Another possibility is including images on the front panel or block diagram.
05-08-2016 01:53 AM
05-08-2016 02:08 AM
So you made changes to the subVI, but the size of the main VI increases? That makes very little sense.
What is your LabVIEW version?
Is the subVI inlined?
Do you seperate compiled code? (VI properties...general)
What are the various values in "VI properties...Memory Usage"?
Are large controls and indicators empty by default (arrays, graphs, variants, etc.).
Does the diagram contain express VIs?
Does the front panel or diagram contain any bitmaps/pictures?
What does the VI do? Does it load and work correctly?
Did you scan the HD for errors?
Do you have a backup of the small VI for comparison?
It would be easiest if you could attach your code.
05-08-2016 08:35 AM
06-14-2024 07:05 AM
Hello,
Thank you for this nice chain. This prompted a question: I know that it's good to clear large arrays/graphs before saving to save memory. What about the subVIs? is it necessary for me to clear arrays or graphs inside the subVIs? so that the main VI doesn't blow?
Thanks
06-14-2024 07:17 AM
Hi rpicazof,
@rpicazof wrote:
What about the subVIs?
is it necessary for me to clear arrays or graphs inside the subVIs? so that the main VI doesn't blow?
How is the filesize of your subVIs related to the filesize of your MainVI?
06-18-2024 07:10 AM
I am not sure - that was my doubt, if I have a 1 MB main VI and I put 100 MB subVI inside, is the main VI 1 or 101 MB?
06-18-2024 08:12 AM
Hi rpicazof,
@rpicazof wrote:
I am not sure - that was my doubt, if I have a 1 MB main VI and I put 100 MB subVI inside, is the main VI 1 or 101 MB?
Just try it on your own and check the resulting filesizes!