7: TSP command reference Series 2600B System SourceMeter® Instrument
7-190 2600BS-901-01 Rev. C / August 2016
Usage
parity = serial.parity
serial.parity = parity
Set parity to one of the following values:
• Select no parity ("none" or serial.PARITY_NONE)
• Select even parity ("even" or serial.PARITY_EVEN)
• Select odd parity (
or
Details
A new parity setting takes effect when the command to change it is processed.
Allow ample time for the command to be processed before attempting to communicate with the
instrument again. If possible, set parity from one of the other command interfaces or from the front
panel.
The reset function has no effect on parity.
Example
serial.parity = serial.PARITY_NONE
Also see
RS-232 interface operation (on page 2-108)
serial.baud (on page 7-187)
serial.databits (on page 7-188)
serial.flowcontrol (on page 7-189)
serial.read()
This function reads available characters (data) from the serial port.
Type TSP-Link accessible Affected by Where saved Default value
Function Yes
Usage
data = serial.read(maxchars)
A string that consists of all data read from the serial port
An integer that specifies the maximum number of characters to read