system.serial.writeBytes
This function is used in Python Scripting.
Descriptionβ
Write a List[Byte] to a serial port.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.serial.writeBytes(port, toWrite)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | port | The previously configured serial port to use. |
| List[Byte] | toWrite | The List[Byte] to write. |
Returnsβ
Nothing
Scopeβ
Gateway, Vision Client, Perspective Session
Code Examplesβ
Code Snippet
# This example will write a list of bytes to a port called "COM1"
port = "COM1"
toWrite = [1,1,0,0,1]
system.serial.writeBytes(port,toWrite)