Page: 60/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
Function COM_HVPSU2D_SetPSUFullRange
int COM_HVPSU2D_SetPSUFullRange
(WORD PortNumber, BOOL PSU0, BOOL PSU1);
Command: p
BB
©
Response: p
BB
©
Sets the full-range flags of the PSU modules to the values given by
the variables
PSU0
and
PSU1
and returns an error code according to
For more details, see function
.
The direct command (
p
BB
©
) contains two Boolean characters (
BB
) for
the variables
PSU0
and
PSU1
, respectively. If the command is exe-
cuted successfully, the device responds by repeating the command
characters.
Function COM_HVPSU2D_GetPSUOutputVoltage
int COM_HVPSU2D_GetPSUOutputVoltage
(WORD PortNumber, unsigned PSU,
double & Voltage);
Command: O
n
©
Response: O
nVVVVV
©
Saves the output voltage of the PSU module with the number
PSU
in
the variable
Voltage
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
).
The return value in the variable
Voltage
is the value of the
output voltage in V that was previously set by the function
COM_HVPSU2D_SetPSUOutputVoltage
.
The direct command (
O
n
©
) contains one decimal character (
n
) for the
variable
PSU
. The response (
O
nVVVVV
©
) contains the decimal char-
acter (
n
) for the variable
PSU
followed by 5 hexadecimal digits for the
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]