Getchassisstatus – ADLINK PXIS-2719A User Manual

Page 52

Advertising
background image

42

Monitoring/Control Functions

Example

HANDLEhCOM;

hCOM= InitCOM(“COM1”);

GetChassisStatus

Description

Acquires chassis status and stores the result in a ChassisSta-
tus structure. Can be invoked periodically to update chassis
status.

Syntax

BOOL GetThreshold(HANDLE hCom, ChassisSetting*

setting)

Parameters

hCom:

The initialized COM port.

Status:

ChassisStatus data structure that stores the chassis sta-
tus in which PowerStatus, Fan1Status, Fan2Status,
Fan3Status, Fan1RPM, Fan2RPM, Fan3RPM,
Temp1Status ~ Temp8Status, Temp1Reading ~
Temp8Reading, DC1Status ~ DC5Status, DC1Reading
~ DC8Reading will be updated.

Return Value

TRUE if the function succeeded, FALSE if failed.

Example

ChassisStatus

status; BOOL

ret;

ret= GetChassisStatus(hCom, &status);

Advertising