serial
¶
The serial commands module.
These commands are used in the following models: SMU2601B, SMU2602B, SMU2604B, SMU2611B, SMU2612B, SMU2614B, SMU2634B, SMU2635B, SMU2636B, SMU2651A, SMU2657A
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.
Please report an issue if one is found.
Attributes and Functions
- serial.baud
- serial.databits
- serial.flowcontrol
- serial.parity
- serial.read()
- serial.write()
Serial
¶
Bases: BaseTSPCmd
The serial command tree.
Constants
.FLOW_HARDWARE: Hardware flow control..FLOW_NONE: No flow control..PARITY_EVEN: Select even parity..PARITY_NONE: Select no parity..PARITY_ODD: Select odd parity.
Properties and methods
.baud: Theserial.baudattribute..databits: Theserial.databitsattribute..flowcontrol: Theserial.flowcontrolattribute..parity: Theserial.parityattribute..read(): Theserial.read()function..write(): Theserial.write()function.
baud
property
writable
¶
baud: str
Access the serial.baud attribute.
Description
- This attribute configures the baud rate for the RS-232 port.
Usage
- Accessing this property will send the
print(serial.baud)query. - Setting this property to a value will send the
serial.baud = valuecommand.
TSP Syntax
- serial.baud = value
- print(serial.baud)
| Raises: |
|
|---|
databits
property
writable
¶
databits: str
Access the serial.databits attribute.
Description
- This attribute configures character width (data bits) for the RS-232 port.
Usage
- Accessing this property will send the
print(serial.databits)query. - Setting this property to a value will send the
serial.databits = valuecommand.
TSP Syntax
- serial.databits = value
- print(serial.databits)
Info
bits, the an integer representing the character width (7 or 8).
| Raises: |
|
|---|
flowcontrol
property
writable
¶
flowcontrol: str
Access the serial.flowcontrol attribute.
Description
- This attribute configures flow control for the RS-232 port.
Usage
- Accessing this property will send the
print(serial.flowcontrol)query. - Setting this property to a value will send the
serial.flowcontrol = valuecommand.
TSP Syntax
- serial.flowcontrol = value
- print(serial.flowcontrol)
| Raises: |
|
|---|
parity
property
writable
¶
parity: str
Access the serial.parity attribute.
Description
- This attribute configures parity for the RS-232 port.
Usage
- Accessing this property will send the
print(serial.parity)query. - Setting this property to a value will send the
serial.parity = valuecommand.
TSP Syntax
- serial.parity = value
- print(serial.parity)
| Raises: |
|
|---|
read
¶
Run the serial.read() function.
Description
- This function reads available characters (data) from the serial port.
TSP Syntax
- serial.read()
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
write
¶
write(data: str) -> None
Run the serial.write() function.
Description
- This function writes data to the serial port.
TSP Syntax
- serial.write()
| Parameters: |
|
|---|
| Raises: |
|
|---|