Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Dec 7, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Programmatically Tracking Memory in LabVIEW Real-Time

0 ratings | 0.00 out of 5
Print

Downloads

Filename: memoryexample7_0.llb
Requirements: View

Filename: rtgetmemorysummary.vi
Requirements: View

Filename: rt_memory_info_71.llb
Requirements: View

Filename: memoryexample6_1.llb
Requirements: View

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.

Requirements


Filename: memoryexample7_0.llb

Software Requirements


Application Software: LabVIEW Full Development System 7.0
Toolkits and Add-Ons: LabVIEW Real-Time Module 7.0
Language(s): LabVIEW

 
Filename: rtgetmemorysummary.vi

Software Requirements


Application Software: LabVIEW Full Development System 8.0
Toolkits and Add-Ons: LabVIEW Real-Time Module 8.0
Language(s): LabVIEW

 
Filename: rt_memory_info_71.llb

Software Requirements


Application Software: LabVIEW Full Development System 7.1
Toolkits and Add-Ons: LabVIEW Real-Time Module 7.1
Language(s): LabVIEW

 
Filename: memoryexample6_1.llb

Software Requirements


Application Software: LabVIEW Full Development System 6.1
Toolkits and Add-Ons: LabVIEW Real-Time Module 6.1
Language(s): LabVIEW

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

Querying remote target
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?
- Jun 26, 2008

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).