LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

memory problem with producer consumer based architecture

 I have Prepared a data acquasation on producer consumer based archtitecture.In producer loop  I am acquiring all data and in consumer loop writing all data directly on  to the disk.But after some time my memory increse so fast while running.I am using 4 GB ram(pentium 4) on my pC and have to perform long time measurement.Even if I am not writing my data, my memory increase very fast.Please give me good suggestion for this problem.I have attached my LLB file.

0 Kudos
Message 1 of 11
(3,503 Views)

down convert the VI to 2011

AB
Kudos are Accepted
0 Kudos
Message 2 of 11
(3,467 Views)

Hi,

I have conver it to 2011.If you have any suggestion for measurement over long period than please give me.

.After some time my vi ger slower and ram rapidly increase afterward.My pc(Pentium 4) with ram 4GB

0 Kudos
Message 3 of 11
(3,456 Views)

In the attachment there are so many files,which is the vi causing problem

and how who running the code

AB
Kudos are Accepted
0 Kudos
Message 4 of 11
(3,407 Views)

I am sorry for such inconvenience and late reply.My main vi is in  folder prufstand =>Test stand (second)=>prufstand 2.I am directly writing in my disc but still my ram increase rapidly.

0 Kudos
Message 5 of 11
(3,394 Views)

hi

Here the attachment

0 Kudos
Message 6 of 11
(3,393 Views)

block diagram of main vi

0 Kudos
Message 7 of 11
(3,386 Views)

I think you have not updated the queue timeout ,so its better to define the timeout, may this may solve your issue,the default is -1,

and with this their should not be any waits in the code 

AB
Kudos are Accepted
0 Kudos
Message 8 of 11
(3,306 Views)

If the result file isn't found you'll never dequeue which'll fill the memory fast, is that what's happening?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 9 of 11
(3,282 Views)

Thanks Bhramaji,

 

Should I use time out for both in producer and consumer loop?Actually I want to acquire  all time but saving file should bedone at defined interval.Is **bleep** possible with Queues?

0 Kudos
Message 10 of 11
(3,264 Views)