Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Image acquisition (imaq write) - memory leak?

Hi,

 

I would like some clarification please.

I try to find a crash/freeze from my CVS 1458RT controller.

I discovered that the physical memory drop to 0 with time. Since I add a protection to reboot the controller if memory is below 500MB, I don't have this crash anymore.

 

I figured out that this is only when I'm saving the images on the USB drive using the 'IMAQ Write Image fonction'. The physical memory of the controller goes down wherever I save the images. If I delete the files on the USB drive, memory get back ...

 

I'm a little confused, could anyone help me on this one?

 

I did a small example attached.

 

Thank you

Patrick

0 Kudos
Message 1 of 2
(1,583 Views)

After reading that post :

 

https://forums.ni.com/t5/NI-Linux-Real-Time-Discussions/Memory-Leak-in-File-Writes/td-p/3397451?prof...

 

Look like it's not a memory leak from that imaq function. Memory stabilize at 1% and don't crash. The reboot help me but that's not the root problem.

 

While trying to find the memory leak, I found that reading a property node ( String[] ) of an enum of only 2 state took 100 ms ... and was slowing down my process. I change it for a case structure and my code is now fast. (weird labview behavior)

 

I'll see if it help my crash.

 

thank you.

Patrick

 

0 Kudos
Message 2 of 2
(1,559 Views)