Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scripting_function


Panel
titleDescription

Write a List[Byte] to a serial port.

Client permissions restrictions


Panel
titleSyntax

system.serial.writeBytes(port, toWrite)

  • Parameters

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

Panel
titleCode Examples
There are no code examples for this function.
Code Block
languagepy
titleCode 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)
Panel
titleKeywords

system serial writeBytes, serial.writeBytes