User manual

Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-219
memory functions
memory.available()
Function
Indicates the memory available in the system.
Usage
mem_avail = memory_available()
mem_avail: Comma-delimited string with percentages for available memory.
The string format of mem_avail is "sys_mem, script_mem, pat_mem, config_mem",
where:
sys_mem: Percentage of overall memory in the system
script_mem: Percentage of memory available in the system to store user scripts
pat_mem: Percentage of memory available in the system to store channel patterns
config_mem: Percentage of memory available in the system to store user DMM
configurations
Remarks
Use this function to view the available memory in the system overall as well as the
memory available for storing user scripts, for storing channel patterns, and for storing
user DMM configurations. The response to this function is a single string that provides
the overall system memory available as well as the script memory available, channel
pattern memory available, and DMM configuration memory available as comma-
delimited percentages.
Also see
memory.used() (on page 13-219)
Example
To read the memory available in the system:
MemAvail = memory.available()
To print out the memory in the system:
print(MemAvail)
or
print(memory.available())
Output: 51.56, 92.84, 100.00, 100.00 00
After recalling a setup that was saved internally:
setup.recall(1)
print(memory.available()) -> 11.13, 92.84, 0.16, 97.03
memory.used()
Function
Indicates the memory available in the system.