
Models 707B and 708B Switching Matrix Reference Manual
Section 7: TSP command reference
707B-901-01 Rev. B / January 2015
7-129
memory.available()
This function reads and returns the amount of memory that is available in the instrument overall for storing user
scripts and channel patterns.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
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
(on page 7-130)