11-23-2020 07:12 PM
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.
Thanks,
Animesh
11-24-2020 11:55 AM
You're probably better off starting a separate post since this one is marked as solved.
11-24-2020 12:26 PM
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...
12-01-2020 07:55 PM
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