Table 11-2
RS-232 interface commands
Command
Description
serial.baud = baud
serial.databits = bits
serial.flowcontrol = flow
serial.parity = parity
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)
Series 2600 System SourceMeters Reference Manual
Communications Interfaces 11-11
Return to
2600S-901-01 Rev. A / May 2006
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.
Summary of Contents for SourceMeter 2600 Series
Page 575: ...AppendixF DisplayCharacterCodes Appendix F topics Introduction page F 2...
Page 592: ......
Page 593: ......