LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 7.0 memory full error

I have been running my labView 7.0 application for 200hrs on a WIN XP machine with 256MB of memory.
The application receives data from another device using ActiveX commands. This data contains information that must be graphed relative to the current time. Each data point received via activeX is sent to the 'XY chart buffer' vi (attached to this email) along with a time stamp value. This can then be graphed on an XY chart. The buffer has a limited size as far as I can see, so cannot grow beyond the limits of hardware memory etc. Could someone please confirm this so that I can rule it out.

Another possible problem might be how the application saves the data to the hard drive. At present the data received using ActiveX is appended to
a file. The file is written by preparing the data into a spreadsheet array that is then written to the file. This file is opened and closed every 3 seconds (this was initialised as an interrim measure and I know is very inefficient). After 200hrs the file size is 49MB. My other question here would be: Does LabView read the file into memory in order for it to append new data?
Hope someone can help

Thanks
0 Kudos
Message 1 of 3
(2,602 Views)
Jim:

The buffer size of the chart buffer should have little relationship to your computer memory, as the chart buffer is continually recirculated. If you go to Task Manager, then select Performance (in Windows) you will see your memory usage is fairly constant, unless, of course, you have an actual problem with a buggy application somewhere. The file size limitation is determined only by the size of your hard drive.
You CAN change the length of your chart buffer...right click on the actual chart and look at Data Operations...the default is probably 1024 kb. However, I doubt this has anything to do with the problem you're experiencing.



Eric
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 2 of 3
(2,602 Views)
Hi,

Most likelly you are leaving AX references open. This probably causes the
memory leak.

Reagrds,

Wiebe.


"jim71077" wrote in message
news:50650000000800000002ED0000-1079395200000@exchange.ni.com...
> I have been running my labView 7.0 application for 200hrs on a WIN XP
> machine with 256MB of memory.
> The application receives data from another device using ActiveX
> commands. This data contains information that must be graphed relative
> to the current time. Each data point received via activeX is sent to
> the 'XY chart buffer' vi (attached to this email) along with a time
> stamp value. This can then be graphed on an XY chart. The buffer has a
> limited size as far as I can see, so cannot grow beyond the limits of
> hardware memory etc. Co
uld someone please confirm this so that I can
> rule it out.
>
> Another possible problem might be how the application saves the data
> to the hard drive. At present the data received using ActiveX is
> appended to a file. The file is written by preparing the data into a
> spreadsheet array that is then written to the file. This file is
> opened and closed every 3 seconds (this was initialised as an interrim
> measure and I know is very inefficient). After 200hrs the file size is
> 49MB. My other question here would be: Does LabView read the file into
> memory in order for it to append new data?
> Hope someone can help
>
> Thanks
0 Kudos
Message 3 of 3
(2,602 Views)