system.serial.sendBreak
This function is used in Python Scripting.
Descriptionβ
Sends a break signal for approximately millis milliseconds.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.serial.sendBreak(port, millis)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | port | The name of the serial port, e.g., "COM1" or "dev/ttyS0". |
| Integer | millis | Approximate length of break signal, in milliseconds. |
Returnsβ
Nothing
Scopeβ
Gateway, Vision Client, Perspective Session
Code Examplesβ
Code Snippet
# This example will send a break signal to a port called "COM1" for 10000 milliseconds.
port = "COM1"
millis = 10000
system.serial.sendBreak(port,millis)