Series 2600 System SourceMeters Reference Manual TSP Programming Fundamentals 2-39
Return to
2600S-901-01 Rev. A / May 2006
Sending commands and statements
Using your own program or the Test Script Builder, non-scripted chunks can be
executed one line at a time. Responses (e.g., readings) are then transmitted back
to the PC.
Source-measure voltage and current
The primary function of an SMU is to source voltage or current, and measure
current, voltage, resistance and/or power.
The following code fragments program
smua
to source-measure voltage. The
measured current and voltage readings are then sent back to the PC.
Source V, and Measure I and V:
reset()
-- Returns SourceMeter to default
settings.
smua.source.levelv = 1
-- Sets SMU A V-source level to 1V.
smua.source.output = smua.OUTPUT_ON
-- Turns output on.
reading = smua.measure.iv()
-- Performs I and V measurements.
print(reading)
-- PC displays I-measure reading.
smua.source.output = smua.OUTPUT_OFF
-- Turns output off.
Read and write to Digital I/O port
The Digital I/O port of the SourceMeter 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). The pinout for the
Digital I/O port is shown in
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.
digio.writebit(4,0)
-- Writes a “0” to I/O bit 4.
data=digio.readbit(4)
-- Reads I/O bit 4.
print(data)
-- PC displays state of I/O bit 4.
Display user-defined messages
The operator can define and display messages on the front panel display of the
SourceMeter. The following code fragment displays the “Test in Process”
message on the SourceMeter display:
display.clear
-- Clears display of messages.
display.settext("Test in Process")
-- Displays message.
Summary of Contents for SourceMeter 2600 Series
Page 575: ...AppendixF DisplayCharacterCodes Appendix F topics Introduction page F 2...
Page 592: ......
Page 593: ......