LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reduce vi file size

I have a very small DAQ system.  The file size of the VI shold be below or around 100KB.  The actual file size is 100MB, I mean 100Mega Byte.  Does any one have this problem before?  Is the mis-use of huge arrays may cause this problem?  Thanks.
------- LabVIEW 2009, So Easy, Even a Therapist Can Do It -------
0 Kudos
Message 1 of 5
(4,828 Views)

Did you read data and then save the vi? If so, the data in the arrays is stored as well. Empty the arrays and the vi size should decrease.

Is the mis-use of huge arrays may cause this problem?  Thanks.

A "mis-use" of arrays could cause memory problems. Always take care when using arrays, that they don't get to big.

Thomas


Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 5
(4,809 Views)
I had this problem once.
And yes, LV stored all front panel data (String Indikator, Tabel, etc). Clear indikator before You save the vi is recomended.
0 Kudos
Message 3 of 5
(4,806 Views)
Thanks.  It goes back to 140kB after I clear the graphs.  Here is what I did:
1. Data Operations->Clear Graph.
2. Data Operations->Make Current Value Default.
------- LabVIEW 2009, So Easy, Even a Therapist Can Do It -------
0 Kudos
Message 4 of 5
(4,780 Views)
Yes, "Make current values Default" can be very powerful.  And like all powerful things, it can be used for good or evil.  You are seeing an artifact of using this facility.  I used to do this a lot when I was debugging VI's.  I would load data in and in the menu bar select "make current Values Default" which takes the current values for the whole VI default.  It's great for storing data to come back to, but costs you disk space.  You can make selected elements default by right clicking on the element itself. 

I've got a 512 Mb thumbdrive with my labview code on it, and I saved like 33% of the nearly full drive by gong into my old code and clearing out stored data I no longer needed. 

Sheldon
Technical geek, engineer, research scientist, biodegradable...
0 Kudos
Message 5 of 5
(4,768 Views)