Cdaqmx100::setalarm, Cdaqmx100::setburnout – Yokogawa PC-Based MX100 User Manual

Page 606

Advertising
background image

12-42

IM MX190-01E

CDAQMX100::setAlarm

Syntax

int setAlarm(int chNo, int levelNo, int iAlarmType, double
valueON, double valueOFF);
int setAlarm(int chNo, int levelNo, int iAlarmType =
DAQMX_ALARM_NONE, int valueON = 0, int valueOFF = 0);

Parameters

chNo

Specify the channel number.

levelNo

Specify the alarm level.

iAlarmType

Specify the alarm type.

valueON

Specify the threshold level (ON value) for alarm activation.

valueOFF

Specify the threshold level (OFF value) for alarm termination.

Description

Sets the alarm to the alarm level of the specified channel.
Changes the setup data fields of the data member and sends them collectively.
If the constant for “Specify All Channels” is specified for the channel numbers, all
channels are processed.
If the alarm level is set to the constant for “Specify all alarm level numbers,” all alarm
levels are processed.

Return value

Returns an error number.

Reference

getClassMXItemConfig setItemAll
CDAQMXChConfig::getPoint
CDAQMXChConfig::setAlarmValue
CDAQMXItemConfig::getClassMXChConfig

CDAQMX100::setBurnout

Syntax

int setBurnout(int chNo, int iBurnout);

Parameters

chNo

Specify the channel number.

iBurnout

Specify the burnout type.

Description

Sets the burnout type to the channels of the specified channel numbers.
Changes the setup data fields of the data member and sends them collectively.
If the constant for “Specify All Channels” is specified for the channel numbers, all
channels are processed.

Return value

Returns an error number.

Reference

getClassMXItemConfig setItemAll
CDAQMXChConfig::setBurnout
CDAQMXItemConfig::getClassMXChConfig

12.4 Details of the MX100 Class

Advertising