Skip to main content
Version: 7.9

system.serial.closeSerialPort

This function is used in Python Scripting.

Description

Closes a previously opened serial port. Returns without doing anything if the named serial port is not currently open. Will throw an exception if the port is open and cannot be closed.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.serial.closeSerialPort(port)

Parameters

TypeParameterDescription
StringportThe name of the serial port, e.g., "COM1" or "dev/ttyS0".

Returns

Nothing

Scope

All