Page: 78/81 User Manual PSU-CTRL-2D, Rev.1-00: Software Interface
able
Milliseconds
into the abovementioned value, i.e. ms, it has to
be multiplied by 3.90625, i.e. divided by 256=100h and multiplied by
1000.
Function COM_HVPSU2D_GetTotalTime
int COM_HVPSU2D_GetTotalTime
(WORD PortNumber, DWORD & Uptime,
DWORD & Optime);
Command: u
©
Response: u
UUUUUUUUOOOOOOOO
©
Saves the total uptime of the device in the variable
Uptime
and the
total operating time in the variable
Optime
. The function return value
is an error code according to Tab. 10.
The total uptime and the total operating time are the sum
of all uptimes and operating times, respectively (see function
), since the device has been manufac-
tured.
The response to the direct command (
u
©
) contains 8 hexadecimal
digits (
UUUUUUUU
) for the variable
Uptime
and 8 hexadecimal digits
(
OOOOOOOO
) for the variable
Optime
.
Function COM_HVPSU2D_GetCPUData
int COM_HVPSU2D_GetCPUData (WORD PortNumber,
double & Load, double & Frequency);
Command: C
©
Response: C
LLLFFFF
©
Saves the load of the device's CPU in the variable
Load
and its oper-
ating frequency in the variable
Frequency
. The function return value
is an error code according to Tab. 10.
The CPU load is a value between 0 (= 0%) and 1 (= 100%). Under
normal conditions, the CPU load should not exceed 10%. Large data
transfers or controlling many fans may increase the load to higher val-
ues.
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]