Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-293
Details
This function is useful for aliasing attributes to improve execution speed. Calling the
setter
function
will execute faster than accessing the attribute directly.
Creating a
setter
function is only useful if it is going to be called several times. If you are not calling
the
setter
function several times, it is more efficient to access the attribute directly.
Example
setrange = makesetter(dmm, "range")
setrange(5)
Use
setrange
with a value of 5 to set
dmm.range
for the currently selected function.
Also see
(on page 11-292)
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 and for user-defined DMM configurations.
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
,
configurationMemory
, 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
▪
configurationMemory
: The percentage of memory available to store
DMM configurations
Details
Use this function to view the available memory in the overall instrument as well as the memory
available for storing user scripts, channel patterns, and user DMM configurations.
The response to this function is a single string that returns the overall instrument memory available,
script memory available, channel pattern memory available, and DMM configuration 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, 100.00
You can also use:
print(memory.available())