Skip to main content
Version: 7.9

system.serial.write

This function is used in Python Scripting.

Description

Write a String to a serial port using the platforms default character encoding.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.serial.write(port, toWrite)

Parameters

TypeParameterDescription
StringportThe previously configured serial port to use.
StringtoWriteThe String to write.

Returns

Nothing

Scope

All

Code Examples

Example #1
system.serial.write("COM1", "my string")