Page: 44/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
Error Codes
Tab. 10. Return values of the interface functions
Return
value
Error message
Description
0
No error
The data transfer was completed
successfully.
-1
PortNumber out of
range
The parameter PortNumber speci-
fied when calling the function is out
of range.
-2
Error opening the
port
The port could not be opened. For
possible reasons, see Tab. 11.
-3
Error closing the
port
The port could not be closed. For
possible reasons, see Tab. 11.
-4 Error
purging
the
port
The port buffers could not be
cleared.
-5
Error setting the port
control lines
The port control lines could not be
set.
-6 Error
reading
the
port status lines
The port status lines could not be
read.
-7 Error
sending
command
-8
Error sending data
-9 Error
sending
termination
character
The data transfer to the device
failed. For possible reasons, see
Tab. 11.
-10 Error
receiving
command
-11
Error receiving data
-12 Error
receiving
termination
character
The data transfer from the device
failed. For possible reasons, see
Tab. 11.
-13 Wrong
command
received
-14 Wrong
argument
received
The device sent an unexpected re-
sponse.
-15 Wrong
argument
passed to the
function
One of the arguments passed to
the function was out of the allow-
able range.
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]