Owner manual
10-26 IM MX190-01E
setAlarmDARWIN
Syntax
int setAlarmDARWIN(DAQDARWIN daqdarwin, int levelNo, int
chType, int startChNo, int endChNo, int iAlarmType, int value,
int relayType, int relayNo);
Declaration
Public Declare Function setAlarmDARWIN Lib "DAQDARWIN"(ByVal
daqdarwin As Long, ByVal levelNo As Long, ByVal chType As
Long, ByVal startChNo As Long, ByVal endChNo As Long, ByVal
iAlarmType As Long, ByVal value As Long, ByVal relayType As
Long, ByVal relayNo As Long) As Long
Parameters
daqdarwin Specify the device descriptor.
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.
value Specify the data value of the alarm.
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).
• With relay specification, when the relay number is less than or equal to 0, the
relay is not specified (turned OFF).
• This function executes the SA command of the DARWIN communication function.
Return value
Returns an error number.
Error:
Not descriptor No device descriptor.
Reference
CDAQDARWIN::setAlarm
10.1 Details of Functions - DARWIN (Visual C/Visual Basic) -