
Section 3: Functions and features
Model 2461 Interactive SourceMeter® Instrument Reference Manual
3-30
2461-901-01 A/November 2015
Running a macro script
You can run a macro script from the front panel or from a remote interface.
To run a macro script from the front panel:
1. Press the
MENU
key.
2. Under Scripts, select
Run
.
3. Select the macro script to run.
4. Select
Run Selected
.
Using SCPI commands:
SCRipt:RUN "
scriptName
"
Where
scriptName
is the name of the macro script to run.
Using TSP commands:
scriptVar
.run()
Where
scriptVar
is the name of the macro script to run.
Front-panel macro recording limitations
When you are recording a macro script from the front panel, the settings you make are recorded at
the speed at which you make them. However, when the macro you created is run, it runs at remote
command processing speed. This can be a problem when working with trigger models and other
features that require time to finish processing before remaining commands can process.
For example, if you record a macro that includes a trigger model that you initiate followed by other
settings changes or additional trigger initiate actions, an error message is generated. This is because
the trigger model takes time to complete, but the macro recording from the front panel does not add
waitcomplete()
commands or other delay settings to the script that allow the trigger model to
finish before processing the other commands.
Configuration lists
Instrument configuration
An instrument configuration is a collection of settings that can be applied to the instrument.
Active setting
At any given time, the instrument is operating using its active settings. For example, if you set the
measure NPLC to 1.0, the active NPLC setting is 1.0.
Active state
At any given time, the complete set of active settings of the instrument is the active state. These
active settings can be subdivided into the following groups:
•
Measure and digitize settings
•
Source settings
•
General settings