Page: 62/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
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
).
The return values in the variables
VoltageSet
and
VoltageLimit
are voltages in V. The latter is the limit of the output voltage, the value
VoltageSet
is the voltage that was previously set by the function
COM_HVPSU2D_SetPSUOutputVoltage
. However, it is adjusted to
be lower than or equal to the voltage limit
VoltageLimit
.
The direct command (
o
n
©
) contains one decimal character (
n
) for
the variable
PSU
. The response (
o
nSSSSSLLLLL
©
) contains the
decimal character (
n
) for the variable
PSU
followed by 2 x 5
hexadecimal digits for the variables
VoltageSet
(
SSSSS
) and
VoltageLimit
(
LLLLL
). The voltage values are in mV,
for the parameter unit conversion, see function
COM_HVPSU2D_GetPSUOutputVoltage
.
Function COM_HVPSU2D_GetPSUOutputCurrent
int COM_HVPSU2D_GetPSUOutputCurrent
(WORD PortNumber, unsigned PSU,
double & Current);
Command: I
n
©
Response: I
nIIIIII
©
Saves the output current of the PSU module with the number
PSU
in
the variable
Current
and returns an error code according to Tab. 10.
The variable
PSU
is the number of the PSU module, for more details,
see function
COM_HVPSU2D_GetPSUOutputVoltage
.
The return value in the variable
Current
is the value of the
output current in A that was previously set by the function
COM_HVPSU2D_SetPSUOutputCurrent
..
The direct command (
I
n
©
) contains one decimal character (
n
) for the
variable
PSU
. The response (
I
nIIIIII
©
) contains the decimal char-
acter (
n
) for the variable
PSU
followed by 6 hexadecimal digits for the
variable
Current
(
IIIIII
). The current value is in µA, i.e. in order to
convert it into A, it has to be divided by 10
6
.
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]