
Section 2
:
TSP Programming Fundamentals
Series 3700 System Switch/Multimeter Reference Manual
2-16
Document Number: 3700S-901-01 Rev. A / August 2007
......range_value = 100
...end
-- Prompt operator to set (input) measurements speed
...speed = display.prompt(„0.00‟, „ NPLC‟, „ Enter measure speed‟, 1, 0.01, 3)
-- Wait for operator to set the measurement speed
...dmm.reset(„all)
...dmm.func = myfunc
...dmm.range = range_value
...dmm.nplc = speed
...print(dmm.measure())
Creating a user script
To create a script and load it, the test program (chunk) must be framed by the following shell
commands: loadscript or loadandrunscript, and endscript.
Load only
The following scripts will load only into the run-time environment of the Series 3700. The script
on the left is unnamed, while the one on the right is named (where name is the user-defined
name):
loadscript
loadscript name
(chunk)
(chunk)
endscript
endscript
Load and run
The following scripts will load into the run-time environment and then run. Keep in mind that
when a script is run, only the chunk is executed. The script on the left is unnamed, while the one
on the right is named (where name is the user-defined name):
loadandrunscript
loadandrunscript name
(chunk)
(chunk)
endscript
endscript
Details on loadscript and loadandrunscript are provided as follows:
loadscript
loadscript name
Where:
name
is the user-assigned name for the script.