Settempalarm, Set5valarm – ADLINK PXIS-2719A User Manual

Page 58

Advertising
background image

48

Monitoring/Control Functions

ret= SetFanAlarm(hCom,speed);

SetTempAlarm

Description

Sets chassis temperature threshold, which, if exceeded in a
sensor reading, triggers the temperature alarm.

Syntax

BOOL SetTempAlarm(HANDLE hCom ,int temp)

Parameters

com:

An initialized COM port.

temp:

Temperature alarm threshold ( unit: °C, range : 0~100)

Return Value

TRUE if the function succeeded, FALSE if failed.

Example

BOOL ret;

int

temp = 60;

ret= SetTempAlarm(hCom,temp);

Set5VAlarm

Description

Sets the chassis DC 5V threshold, beyond which the DC 5V
voltage triggers the alarm.

Syntax

BOOL Set5VAlarm(HANDLE hCom ,float H, float L)

Parameters

com:

Advertising