MyPort.close()

Description

Closes an ArCOM serial port

  • Closes the port and releases it to the OS

  • The port is automatically closed and released if you clear the serial port object

Syntax

Data = MyPort.close()

Parameters

  • None

Returns

None

Example

% 1. Both lines close and clear an ArCOM serial port named MyPort.

MyPort.close() % Option 1

clear MyPort % Option 2