LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

monitor memory consumption of Teststand and Labview

We use Teststand2.0.1 and Labview 6.1 on our test equipment (Win2000/Nt).
Sometimes these teststations run out of virtual memory.
Is it possible to programatical get a snapshot of the memory consumption of Labview and Teststand. (Similar to the Windows Task Manager or the VI-Profiler-Tool).
Then I could insert trace-steps into the stationmodel and log informations like time, location and memory consumption to a file.

Maybe, this is possible by using a window function, but I don't know how.
0 Kudos
Message 1 of 3
(2,582 Views)
There are two VI's you may want to experiment with.

they are;

...\vi.lib\platform\system.llb\memstats.vi

and

...\vi.lib\utility\sysinfo.llb\Get Memory statistics.vi

These may or may not help. One of them maybe for RT only.

Please let me know if these helped.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,582 Views)
I cannot interpret the values memstats.vi
returns and they doesn't correspond with the values from the Task-Manager.

Get Memory statistics.vi just returns the VI-Metrics. These seems to be static values (like filesize?).

To give an example for my problems:
In some cases I had forgotten to properly close Teststand-ActiveX-Refnums and this leads to an increasing need for virtual memory.
0 Kudos
Message 3 of 3
(2,582 Views)