Keithley SourceMeter 2600 Series Reference Manual page 331

Table of Contents

Advertisement

Series 2600 System SourceMeters Reference Manual
serial.parity
Attribute
Parity for the RS-232 port.
Usage
parity = serial.parity
serial.parity = parity
Set
parity
"none"
"even"
"odd"
• A new parity setting takes effect when the command to change it is processed.
Remarks
• The user should allow ample time for the command to be processed before
attempting to communicate with the instrument again. It is recommended that the
parity be set from the GPIB interface or from the front panel.
• The parity setting is stored in non-volatile memory. The
on parity.
Details
See
"RS-232 interface
Also see
serial.baud, serial.databits,
Sets parity to none:
Example
serial.parity = serial.PARITY_NONE
serial.read
Function
Reads data from the serial port.
Usage
data = serial.read(maxchars)
maxchars
data
• This function will read available characters from the serial port. It will not wait for new
Remarks
characters to arrive. As long as
several hundred characters), all characters received by the serial port prior to the
call will be returned.
received in between calls to this function, the RS-232 buffers will overflow and some
characters may be lost.
• This function can be called as many times as necessary to receive the required
number of characters. For optimal performance, it is suggested that a small delay be
used between repeat calls to this function.
• The data returned is the raw data stream read from the port. Control characters,
terminator characters, etc. will not be processed nor will the data stream be altered
in any way.
• This function cannot be used if the serial port is enabled as a command interface. A
settings conflict error will be generated if the serial port is enabled as a command
interface when this function is called.
to one of the following values:
or
serial.PARITY_NONE
or
serial.PARITY_EVEN
or
serial.PARITY_ODD
operation" in
serial.flowcontrol
Sets the maximum number of characters to read.
Returns a string consisting of all data read from the serial port.
This might be less than
Return to
Instrument Control Library 12-57
-- Reads parity.
-- Writes parity.
Selects no parity.
Selects even parity.
Selects odd parity.
Section
11.
is a relatively small number (less than
maxchars
maxchars
Section 12 topics
2600S-901-01 Rev. A / May 2006
function has no effect
reset
. If too many characters are

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents