close_serial ( : : SerialHandle : )

Close a serial device.

close_serial closes a serial device that was opened with open_serial.


Parameters

SerialHandle (input_control)
serial_id -> integer
Serial interface handle.


Result

If the parameters are correct and the device could be closed, the operator close_serial returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.


Parallelization Information

close_serial is reentrant and processed without parallelization.


Possible Predecessors

open_serial


See also

open_serial, close_file


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH