01-27-2015 01:08 PM
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?
01-28-2015 09:22 AM
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
01-28-2015 12:53 PM
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.
01-28-2015 01:07 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
03-27-2020 02:21 PM
Thanks,
I found that in my search for an answer. It doesn't work.
03-27-2020 04:41 PM - edited 03-27-2020 04:43 PM
03-28-2020 08:15 AM - edited 03-28-2020 08:15 AM
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.