Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Can I Monitor a VIs Memory Usage?

Primary Software: LabVIEW Development Systems>>LabVIEW Base Package
Primary Software Version: 8.6
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I need to monitor how much memory my VIs are using? Can I do this Programmatically?

Solution:
There are a several tools for calculating how much memory your VIs are using. Here are three commonly used methods:

  • Profile Performance and Memory: This can be found under the Tools » Profile » Performance and Memory menu. You can read more about using this tool here.

  • VI.Metric properties: These can be accessed programmatically by taking a reference to the VI in question and creating a property node for that reference. Then select Metric from the properties list in the property node. Here is an example of calling those properties:
    You can find more information about these properties in the LabVIEW Help


  • MEMMON.llb: A library that is shipped with LabVIEW that contains VIs for collecting memory information about any VI in memory. The library can be found at LabVIEW\examples\memmon.llb.


Related Links:
LabVIEW 8.6 Help: VI Memory Usage
LabVIEW 8.6 Help: VI Properties
KnowledgeBase 2ZHD73IP: How Do I Use the VI Profile Window?

Attachments:





Report Date: 11/04/2008
Last Updated: 11/07/2008
Document ID: 4R39P6QL

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit