LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory leak when using System Hardware property node.


I see a memory leak (Free Physical Memory) on a RT Controller (LabVIEW 2012) when calling system hardware property node, specifically TempReadings. TempReadings returns temperature(s) of a PXI chassis. By my calculations it results in 58.4 MB of lost memory in a year if property node is called once a minute.

 

Also, calling this property node takes a really long time to execute and I struggle to understand why.

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

@drakkar wrote:


I see a memory leak (Free Physical Memory) on a RT Controller (LabVIEW 2012) when calling system hardware property node, specifically TempReadings. TempReadings returns temperature(s) of a PXI chassis. By my calculations it results in 58.4 MB of lost memory in a year if property node is called once a minute.

 

Also, calling this property node takes a really long time to execute and I struggle to understand why.


We will also struggle to understand why unless you post your actual VI file.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 4
(2,845 Views)

Code responsible for the memory leak.

0 Kudos
Message 3 of 4
(2,822 Views)

Memory leak went away when I ran it on a different PXI controller and chassis with LabVIEW 2017 and NI System Configuration 17.5.

 

Call time improved for chassis temp from 860ms to 50ms. Call time for fan speed remains the same, 45ms.

0 Kudos
Message 4 of 4
(2,791 Views)