Archived: Programmatically Tracking Memory in LabVIEW Real-Time

Publish Date: Feb 19, 2019 | 1 Ratings | 1.00 out of 5 | Print | 1 Customer Review | Submit your review


This document has been archived and is no longer updated by National Instruments.

This utility queries the LabVIEW Real-Time operating system to programmatically retrieve the current memory information of the system. Use the VI independently or integrated as a subVI in your existing application.

This utility provides the following information:

Total: The maximum number of bytes of RAM available on the system. This value is constant.

Available: The current amount of available memory that the real-time system can use.

Largest Contiguous: The current size of the largest contiguous block of free memory in the system. This value is useful when you allocate memory for such things as large arrays that require contiguous blocks of memory.

The utility for version 8.0 and higher uses VI Server to query the target. For querying a remote machine from a host, the remote target must have TCP access enabled for VI Server. You can set and deploy access by right-clicking the target in the Project Explorer window and selecting Properties from the shortcut menu. This utility VI also can run directly on a target, with no TCP access required.

Note 1: You can access RT memory information from within the LabVIEW Real-Time 7.0 and higher development environments when targeted to an RT target by selecting Operate»RT Engine Info. With LabVIEW RT 7.1 and higher, you also can access memory information by using the Real-Time System Manager found in the Tools menu.

Note 2: The memory information from RT Engine Info does not directly match the information from this utility VI because the values are reported in different units. Multiply the RT Engine Info data by 1024 to get an accurate comparison.

Back to Top

Customer Reviews
1 Review | Submit your review

Querying remote target  - Jun 26, 2008

The description states the 8.0+ utility can be run from a host to query a remote target. The VI only seems designed to run locally, though, as there is no way to specify an IP address. How is this supposed to work?

Bookmark & Share











Rate this document

Answered Your Question?
Yes No