04-11-2018 02:47 PM
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.
04-11-2018 03:02 PM
@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.
04-11-2018 05:17 PM
Code responsible for the memory leak.
04-12-2018 12:26 PM
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.