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 UsageLabVIEW 8.6 Help: VI PropertiesKnowledgeBase 2ZHD73IP: How Do I Use the VI Profile Window?
Attachments:
Report Date: 11/04/2008
Last Updated: 11/07/2008
Document ID: 4R39P6QL