Setdoublealarmmx100 – Yokogawa PC-Based MX100 User Manual
Page 792

17-58
IM MX190-01E
setDoubleAlarmMX100
Syntax
int setDoubleAlarmMX100(DAQMX100 daqmx100, int chNo, int
levelNo, int iAlarmType, double value);
Declaration
Visual Basic
Public Declare Function setDoubleAlarmMX100 Lib
"DAQMX100"(ByVal daqmx100 As Long, ByVal chNo As Long, ByVal
levelNo As Long, ByVal iAlarmType As Long, ByVal value As
Double) As Long
Visual Basic.NET
Public Declare Ansi Function setDoubleAlarmMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal chNo As Integer,
ByVal levelNo As Integer, ByVal iAlarmType As Integer, ByVal
value As Double) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="setDoubleAlarmMX100")]
public static extern int setDoubleAlarmMX100(int daqmx100, int
chNo, int levelNo, int iAlarmType, double value);
Parameters
daqmx100
Specify the device descriptor.
chNo
Specify the channel number.
levelNo
Specify the alarm level.
iAlarmType
Specify the alarm type.
value
Specify the alarm value.
Description
Sets the alarm to the alarm level of the specified channel.
• If the differences from the specified alarm value are excluded, it is the same as
the setAlarmMX100 function.
• The alarm value is specified with a floating point number including the decimal
point position.
Return value
Returns an error number.
Error:
Not descriptor
No device descriptor.
Reference
CDAQMX100::setAlarm
17.1 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Status Transition Functions