LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to get amount of memory available?

What is the best option currently to get the amount of memory available (programatically)??  I'm using LV 2011 & 2014.

Back in 2013, I got a VI from "jtagg" here, and that's what I've been using since then, but I'm not sure it's reporting what I need. I guess I don't understand exactly WHAT it's reporting. It's attached.

 

Jtagg, are you out there?

 

0 Kudos
Message 1 of 7
(3,656 Views)

Jova, 

 

What type of memory are you interested in monitoring? 

 

The following links might be helpful.

 

Profiling VI Execution Time and Memory Usage: http://zone.ni.com/reference/en-XX/help/371361L-01/lvhowto/profiling_vis/

 

Memory Usage Page (VI Properties Dialog Box): http://zone.ni.com/reference/en-XX/help/371361L-01/lvdialog/memory_usage_properties/

 

How Do I Use LabVIEW to Find Out My Computer's System

Information: http://digital.ni.com/public.nsf/allkb/B2DA61D0AE0A548686256D0C00666A9B

 

This forum post might also be a good reference depending on what you need to monitor: 

 

Programmatically Monitoring Windows memory

https://forums.ni.com/t5/LabVIEW/programmatically-monitoring-Windows-memory/td-p/1394970

 

 

Will M.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(3,609 Views)

Will, thanks for your suggestions.

I need to programmatically monitor total memory used by our LV application (or conversely, app memory still available), over long periods of use (it runs 24/7 at our customers), as a way to watch for memory leaks.

Your first two links are not for programmatic monitoring, and the second two are quite old, from Win XP days. I'm wondering what's recommended for Windows 7 32- or 64-bit and LV 2014.

 

0 Kudos
Message 3 of 7
(3,587 Views)

If you are monitoring application usage long term I recommend using Performance Monitor:

 

http://www.7tutorials.com/basics-about-working-performance-monitor

 

It obviously doesn't break it down by VI memory usage but does log lots of data on various processes and other PC statistics.

0 Kudos
Message 4 of 7
(3,578 Views)

Thanks,

 

I found that in my search for an answer.  It doesn't work.

0 Kudos
Message 5 of 7
(2,654 Views)

Hi Jim,

 

you should explain the words "it" and "doesn't work" more precisely...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(2,641 Views)

If you have access to the System Configuration (found it under Real Time, but I don't think you need RT to use it), then you can get the memory figures directly.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 7 of 7
(2,622 Views)