LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI too large due to memory??

Hello all,

I have written an extremly simple vi to open a large data set (>123MB).  The vi works fine but the size of the vi is ~93MB and really slows down my computer.  I believe the vi is keeping the whole data file in memory so how do I reset the memory so the vi si only ~100kB like it should be. 

Thanks,

Azazal

ps(i would post the vi but it is way too big due to the memory issue)
Azazel

Pentium 4, 3.6GHz, 2 GB Ram, Labview 8.5, Windows XP, PXI-5122, PCI-6259, PCI-6115
0 Kudos
Message 1 of 5
(2,809 Views)
When you open your VI, do any of your controls or indicators already have data?

It could be that you saved your VI with a large amount of data in a control or indicator which was (maybe by accident) set to default.

Also have a look at the VI properties and see how much is code, and how much is simply "data".

Hope this helps

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 2 of 5
(2,807 Views)
There is data already present in the indicators....the vi code is 6.7k while the data is 280M.  Is there any auto reset I can program?

THanks for the quick reply

Azazal
Azazel

Pentium 4, 3.6GHz, 2 GB Ram, Labview 8.5, Windows XP, PXI-5122, PCI-6259, PCI-6115
0 Kudos
Message 3 of 5
(2,804 Views)
to get arond the problem for now i made a fake data file with only 1point and loaded it into the vi and then made "current values defaults"  which solved the problem but is there a way so that the data is not saved with the vi.

Azazel
Azazel

Pentium 4, 3.6GHz, 2 GB Ram, Labview 8.5, Windows XP, PXI-5122, PCI-6259, PCI-6115
0 Kudos
Message 4 of 5
(2,800 Views)
If you set a control value to default with 280MB of data in it, the data will be saved with the VI.  It's as simple as that.

I think if you right-click something on the block diagram and create a control or indicator this way when data is already present, the default might be set to this current data.  I'm totally not sure about this, but maybe that's what happened.

Emptying the indicator or control and choosing to set to default is the best way to ensure this doesn't happen.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 5 of 5
(2,795 Views)