Page: 55/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
Function COM_HVPSU2D_GetSensorData
int COM_HVPSU2D_GetSensorData
(WORD PortNumber, double
Temperature [COM_HVPSU2D_SEN_COUNT]);
Command: T
©
Response: T
AAAA
..
ZZZZ
©
Saves the temperature-sensor data in the array
Temperature
and
returns an error code according to Tab. 10.
The return values in the array
Temperature
are temperatures in ºC
measured by the temperature sensors.
The size of the array
Temperature
must be sufficient for
storing data from all sensors, i.e. it must be equal to the constant
COM_HVPSU2D_SEN_COUNT
(see the declaration file
COM-
HVPSU2D.h
).
The response to the direct command (
T
©
) contains 4 hexadecimal
digits for each sensor temperature (
AAAA
..
ZZZZ
). For the tempera-
.
Function COM_HVPSU2D_GetLEDData
int COM_HVPSU2D_GetLEDData (WORD PortNumber,
BOOL & Red, BOOL & Green, BOOL & Blue);
Command: L
©
Response: L
RGB
©
Saves the colors of the LED on the front panel in the variables
Red
,
Green
, and
Blue
, and returns an error code according to Tab. 10.
The colors in the variables
Red
,
Green
, and
Blue
are Boolean val-
ues, i.e. they indicate if each color is turned on or off.
The response to the direct command (
L
©
) contains three Boolean
characters for each color value in the variables
Red
(
R
),
Green
(
G
),
and
Blue
(
B
).
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]