Page: 46/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
Tab. 11. I/O errors
Return
value
Error message
Description
0
No error
The data transfer was completed suc-
cessfully.
1
Port has not
been opened yet
You attempted to use the communica-
tion channel before having opened it.
2 Cannot
open
the port
The specified port could not be
opened. Either the port does not exist
or it is currently being used by another
program.
3 Cannot
obtain
communication
error
The system could not get the last
communication error of the port.
4
Cannot get the
state of the port
The system could not get the state of
the port.
5
Cannot set the
state of the port
The system could not set the state of
the port.
6 Break
timing
error
The system could not issue a break
with the proper timing.
7
Cannot place the
transmission line
in a break state
The system could not issue a break.
Check the data sheet of the used
communication port.
8
Cannot place the
transmission line
in a nonbreak
state
The system could not clear the break
state. Check the data sheet of the used
communication port.
9
Cannot set the
timeouts
for the port
The system could not set the timeouts
for the port.
10 Cannot
clear
the port
The system could not clear the port
buffers.
11 Error
reading
data
from the port
The system could not read data from
the port. Most probably, no data is
available because the device is either
disconnected or does not respond.
12
Error writing data
to the port
The system could not write data to the
port.
CGC Instruments
Tel.: +49 (371) 355 098–55
Hübschmannstr. 18 | D–09112 Chemnitz
Fax: +49 (371) 355 098–60
internet: www.cgc-instruments.com
e–mail: [email protected]