Owner manual

7-26 IM MX190-01E
CDAQDARWIN::setAlarm
Syntax
int setAlarm(int levelNo, int chType, int startChNo, int
endChNo = 0, int iAlarmType = DAQDARWIN_ALARM_NONE, int value
= 0,int relayType = 0, int relayNo = 0);
Parameters
levelNo Specify the alarm level.
chType Specify the channel type.
startChNo Specify the start channel number.
endChNo Specify the end channel number.
iAlarmType Specify the alarm type using the alarm type value.
value Specify the alarm value.
relayType Specify the relay type.
relayNo Specify the relay number.
Description
Sets the specified alarm (alarm level and alarm type) and alarm value to the
channels in the specified channel range (specified by channel type, start channel
number, and end channel number).
When the relay number is less than or equal to 0, the relay is turned OFF.
This function executes the SA command of the DARWIN communication function.
It creates and sends the command and receives the response.
Return value
Returns an error number.
Reference
runCommand
CDAQDARWINChInfo::toChRange
CDAQDARWINDataInfo::getAlarmName
CDAQDARWINSysInfo::toRelayName
7.4 Details of the DARWIN Class