Section 7: Command reference
Models 707B and 708B Switching Matrix Reference Manual
7-136
707B-901-01 Rev. A / August 2010
Usage
memoryAvailable = memory.available()
memoryAvailable
Comma-delimited string with percentages for available memory; the format is
systemMemory
,
scriptMemory
,
patternMemory
, where:
•
systemMemory
: The percentage of memory available in the instrument
•
scriptMemory
: The percentage of memory available in the instrument
to store user scripts
•
patternMemory
: The percentage of memory available in the
instrument to store channel patterns
Details
Use this function to view the available memory in the overall instrument as well as the memory available for
storing user scripts and channel patterns.
The response to this function is a single string that returns the overall instrument memory available, script
memory available, and channel pattern memory available as comma-delimited percentages.
Example: Available memory
memoryAvailable = memory.available()
print(memoryAvailable)
Reads and returns the amount of memory available
in the instrument.
Output:
51.56, 92.84, 100.00
You can also use:
print(memory.available())
Example: Used and available memory
print("Memory used:", memory.used())
print("Memory available: ",
memory.available())
Reads and returns the amount memory used and
memory available percentages.
Output:
Memory used: 69.14, 0.16, 12.74
Memory available: 30.86, 99.84, 87.26
Also see