![background image](http://html1.mh-extra.com/html/keithley/sourcemeter-2600-series/sourcemeter-2600-series_reference-manual_4098633091.webp)
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.
Содержание SourceMeter 2600 Series
Страница 507: ...AppendixA Specifications Appendix A topics Model 2600S Specifications page A 2 2600S 901 01 Rev A May 2006...
Страница 575: ...AppendixF DisplayCharacterCodes Appendix F topics Introduction page F 2...
Страница 592: ......
Страница 593: ......