User manual
Section 2: TSP Programming Fundamentals Series 3700 System Switch/Multimeter Reference Manual
2-16 3700S-901-01 Rev. C / July 2008
Read and write to the digital I/O port
The digital I/O port of the Series 3700 is used to control external circuitry (such
as a component handler for binning operations). The I/O port has 14 input/output
bits (lines) that can be at TTL logic state 1 (high) or 0 (low). See the pinout in the
graphic in Rear panel summary (on page 2-10) for the Digital I/O port for
additional information.
There are ICL commands to read and/or write to each individual bit, and
commands to read and write to the entire port. Use the following code fragment
to write to one bit of the Digital I/O port. The I/O bit is then read and the state is
returned to the PC, where it is displayed.
Command
Description
digio.writebit(4,0)
Writes a 0 to bit 4
data=digio.readbit(4)
Reads value at bit 4
print(data)
Displays data on 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 the display
display.settext('Test in
Process')
Displays user message
Displayed messages and input prompts are used in scripts to prompt the
operator to enter parameter values from the front panel. See Interactive script
(on page 2-19) 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.