Page: 63/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
Function COM_HVPSU2D_SetPSUOutputCurrent
int COM_HVPSU2D_SetPSUOutputCurrent
(WORD PortNumber, unsigned PSU,
double Current);
Command: I
nIIIIII
©
Response: I
nIIIIII
©
Sets the output current of the PSU module with the number
PSU
to the
value in the variable
Current
and returns an error code according to
For more details, see function
COM_HVPSU2D_GetPSUOutputCurrent
.
The direct command (
I
nIIIIII
©
) contains one decimal
character (
n
) for the variable
PSU
followed by 6 hexadecimal
digits for the variable
Current
(
IIIIII
). The current value
is in µA, for the parameter unit conversion, see function
COM_HVPSU2D_GetPSUOutputCurrent
. If the command is exe-
cuted successfully, the device responds by repeating the command
characters.
Function COM_HVPSU2D_GetPSUSetOutputCurrent
int COM_HVPSU2D_GetPSUSetOutputCurrent
(WORD PortNumber, unsigned PSU,
double & CurrentSet,
double & CurrentLimit);
Command: i
n
©
Response: i
nSSSSSLLLLL
©
Saves the set output current and the current limit of the PSU module
with the number
PSU
in the variables
CurrentSet
and
Cur-
rentLimit
, and returns an error code according to Tab. 10.
The variable
PSU
is the number of the PSU module. It can be 0 (con-
stant
COM_HVPSU2D_PSU_POS
in the declaration file
COM-
HVPSU2D.h
) or 1 (constant
COM_HVPSU2D_PSU_NEG
).
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]