Wow! I appreciate all the help! Let me establish a few things first,
and then I'll continue. I am somewhat of a seasoned LabVIEW programmer
(been using it for 6 years). Therefore, I'm pretty proficient, and I
know most of the pitfalls that you can run into.
Besides that, to answer some questions, I am just displaying the data to
a graph. Therefore, there is no history data, and the graph is cleared
after every loop and only shows the new 120 milliseconds of data.
Next, I started with the AI config and AI clear out of the loop,
configuring the buffer once and reusing it every loop, and then clearing
it when the loop terminates, but I had the same memory problem. I
tried putting the AI config and AI clear in the loop to see if that
would help, but it didn't.
I am opening a TCP/IP connection if a request is made, but I took that
part of the code out and I'm still having the problem.
I am opening VI references to other front panels that configure
parameters and such, but these VI references are not called on every
loop. They are called when a button is pressed, and the VI which is
opened is set to close (close if originally closed) when the VI
completes. A Close VI Reference is NOT called, however. I have not
checked to see if the VI does not hog memory if I don't press a button
which opens a VI reference.
I will check to see if VI info gives me a clue to which VI is using all
the memory. I'll keep you posted. I'd really like to solve this memory
situation, and maybe help somebody else out in the meantime.
Mark
In article ,
E. Fudd wrote:
> Mark,
> Your problem is with the repeated calls to the AI vi's. Repeatedly
> creating and clearing the Ai buffer tends to consume memory for some
> reason. If you're acquiring the same number of scans for each of your
AI
> operations, you can re-use the buffer by moving the AI config and AI
> clear vi's out of your loop.
>
> Hope this helps..
> -Todd
>
> In article <8nh5m0$7hc$1@nnrp1.deja.com>, markwysong@my-deja.com
says...
> > I have a VI which consists of a loop that basically sets up a
buffer,
> > sets up an analog trigger, then scans in 120 ms of data when the
trigger
> > occurs. I read the data out of memory and display it on a graph,
use
> > AI Clear to clear the acquisition, then perform the loop all over
again.
> > After a few days, Windows NT starts showing memory errors, and when
I
> > check what is hogging the memory, it's LabVIEW. If I shut down
LabVIEW
> > and start over, it starts up at about 17 MB of memory, then steadily
> > increases over a couple of days to 110 MB until I get warnings about
low
> > virtual memory, etc.
> >
> > Any ideas what could be causing the problem? (The
> > "Edit->Preferences->Performance and Disk->Deallocate memory as soon
as
> > possible" is checked, and I am running with multiple threads)
> >
> > Thanks,
> >
> > Mark
> >
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
> >
>
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----== Over 80,000 Newsgroups - 16 Different Servers! =-----
>
Sent via Deja.com http://www.deja.com/
Before you buy.