LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re: LabVIEW freezing while VI is running

Hi Sam, is there anyway you could post the VI after changes?

 

I am running into the same issue. I am executing a loop every 2 seconds and storing some load cell sensor and temperature data in a file. The datalog should have an entry every 2 seconds but the time keeps on increasing and I can see that on my front panel as well. The data on the front panel should update every 2 seconds which slows down to ~16 in about 3-4 hours. I need to run this VI for a year without interruption so I need to get rid of any performance or memory issue that will accumulate over time and slow down my VI.

 

Any help is appreciated.

 

Here's a screenshot the support VI's I'm using in the main VI.

animesh19_0-1606180220107.pnganimesh19_1-1606180271518.pnganimesh19_2-1606180292988.pnganimesh19_3-1606180329700.png

Thanks,

Animesh

0 Kudos
Message 1 of 4
(1,498 Views)

You're probably better off starting a separate post since this one is marked as solved.

0 Kudos
Message 2 of 4
(1,452 Views)

Hi animesh,

 


@animesh19 wrote:

The datalog should have an entry every 2 seconds but the time keeps on increasing and I can see that on my front panel as well. The data on the front panel should update every 2 seconds which slows down to ~16 in about 3-4 hours. I need to run this VI for a year without interruption so I need to get rid of any performance or memory issue that will accumulate over time and slow down my VI.

Any help is appreciated.


According to the images you are constantly creating new DAQmx tasks, but you never close them: this will end in memory leaks...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 4
(1,438 Views)

Thanks GerdW. I did figure out the problem and created the tasks outside of the while loop. Now I'm just creating the task once after execution and just reading or writing data into the NI module.

 

-Animesh

0 Kudos
Message 4 of 4
(1,365 Views)