
Series 3700 System Switch/Multimeter Reference Manual
Section 2
:
TSP Programming Fundamentals
Document Number: 3700S-901-01 Rev. A / August 2007
2-13
Command
Description
data=digio.readbit(4)
Reads
print(data)
PC
Display user-defined messages
The operator can define and display messages on the front panel display of the Series 3700.
The following code fragment displays the ―Test in Process‖ message on the Series 3700 display:
Command
Description
display.clear
Clears
display.settext("Test in Process")
Displays
Displayed messages and input prompts are used in scripts to prompt the operator to enter
parameter values from the front panel. See ―Interactive script‖ (later in this section) for more
information.
User scripts
User scripts can be written using your own program or the Test Script Builder. User scripts are
loaded into the Series 3700 and can be saved in nonvolatile memory. Scripts not saved in
nonvolatile memory will be lost when the Series 3700 is turned off.
Script examples
Script using commands and statements only
The following script closes Channels 1-10 on Slot 3 and measures voltage on each channel. the
five voltage readings are returned to the host computer.
Close and measure examples script follow:
Test script builder example
voltage = { }
reset()
for j = 3001,3010 do
channel.exclusiveclose('3911' ..j)
voltage[j] = dmm.measure()
print(voltage[j])
end