
Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-130
707B-901-01 Rev. B / January 2015
memory.used()
This function reports the amount of memory used in the instrument overall and for user scripts, and storing
channel patterns.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
memoryUsed
= memory.used()
memoryUsed
A comma-delimited string with percentages for used memory; the format is
systemMemory
,
scriptMemory
,
patternMemory
, where:
•
systemMemory
: The percentage of memory used in the instrument
•
scriptMemory
: The percentage of memory used in the instrument to
store user scripts
•
patternMemory
: The percentage of memory used in the instrument to
store channel patterns
Details
Use this function to view the used memory in the overall instrument, as well as the memory used for
storing user scripts and channel patterns.
The response to this function is a single string that shows the overall instrument memory used, as
well as the script memory used and channel pattern memory used as comma-delimited percentages.
Example
MemUsed = memory.used()
print(MemUsed)
Reads the memory used in the instrument and
returns out the percentages.
Output:
69.14, 0.16, 12.74
Also see
(on page 7-129)