Keithley SourceMeter 2600 Series Reference Manual page 271

Table of Contents

Advertisement

Series 2600 System SourceMeters Reference Manual
Table 11-2
RS-232 interface commands
serial.baud = baud
serial.databits = bits
serial.flowcontrol = flow
serial.parity = parity
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 SourceMeter also
uses the same settings.
Terminator
When receiving data over the RS-232 interface using the serial.read() command,
the Series 2600 will terminate on any line feed character. When sending data
using the serial.write() command, it will not append a terminator. Be sure to
append the appropriate terminator to the message before sending it.
Command
Set baud rate (300, 600, 1200, 2400, 4800, 9600,
19200, 38400, 57600, or 115200)
Set number of bits (7 or 8)
Set flow control:
serial.FLOW_NONE(no flow control)
serial.FLOW_HARDWARE (hardware flow control)
Set parity:
serial.PARITY_NONE (no parity)
serial.PARITY_EVEN (even parity)
serial.PARITY_ODD (odd parity)
Return to
Communications Interfaces
Description
Section 11 topics
2600S-901-01 Rev. A / May 2006
11-11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents