Section 3: Instrument description
2470 High Voltage SourceMeter Instrument Reference Manual
3-54
2470-901-01 Rev. A /
May
2019
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.