
2600AS-901-01 Rev. B / September 2008
Return to
15-9
Series 2600A System SourceMeter® Instruments Reference Manual
Section 15: Communications Interfaces
RS-232 programming example
Send the following commands to set the baud rate to 9600 with no flow control:
serial.baud = 9600
serial.flowcontrol = serial.FLOW_NONE
Sending and receiving data
The RS-232 interface transfers data using 7 or 8 data bits, 1 stop bit, and no, even, or odd parity.
Make sure the device you connect to the Series 2600A also uses the same settings.
Terminator
When receiving data over the RS-232 interface the command interface terminates on line feeds. A
line feed is appended to all output messages when the RS-232 interface is being used as a
command interface.
Sending data using the
function does not append a terminator. Be sure to append
the appropriate terminator to the message before sending it.
Baud rate
The baud rate is the rate at which the Series 2600A and the programming terminal communicate.
Choose one of the following available rates:
•
115200
•
57600
•
38400
•
19200
•
9600
•
4800
•
2400
•
1200
•
600
•
300
The factory-selected baud rate is 9600.
Both the Series 2600A and the other device must be configured for the same baud rate. Make sure
the device connected to the Series 2600A RS-232 port can support the selected baud rate.
Data bits and parity
The RS-232 interface can be configured to send/receive data that is 7 or 8 bits long using even,
odd, or no parity.
Flow control (signal handshaking)
Signal handshaking between the controller and the instrument allows the two devices to
communicate to each other regarding being ready or not ready to receive data.
The RS-232 interface provides two control lines (RTS and CTS) for this purpose (see
and
). When the Series 2600A is ready to send (RTS) data, it will transmit when it
receives the clear to send (CTS) signal from the computer.