Owner manual

17-73
IM MX190-01E
17
Functions for the MX100 (Extended API) - Visual C/Visual Basic/Visual Basic.NET/C# -
setRefAlarmMX100
Syntax
int setRefAlarmMX100(DAQMX100 daqmx100, int doNo, int refChNo,
int levelNo, int bValid);
Declaration
Visual Basic
Public Declare Function setRefAlarmMX100 Lib "DAQMX100"(ByVal
daqmx100 As Long, ByVal doNo As Long, ByVal refChNo As Long,
ByVal levelNo As Long, ByVal bValid As Long) As Long
Visual Basic.NET
Public Declare Ansi Function setRefAlarmMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal doNo As Integer,
ByVal refChNo As Integer, ByVal levelNo As Integer, ByVal
bValid As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="setRefAlarmMX100")]
public static extern int setRefAlarmMX100(int daqmx100, int
doNo, int refChNo, int levelNo, int bValid);
Parameters
daqmx100 Specify the device descriptor.
doNo Specify the data number.
refChNo Specify the reference channel using a channel number.
levelNo Specify the alarm level.
bValid Specify the Boolean value.
Description
Sets the reference alarm on the specified DO data number of the specified DO
channel.
The reference alarm is specified by channel number and alarm level.
Return value
Returns an error number.
Error:
Not descriptor No device descriptor.
Reference
CDAQMX100::setRefAlarm
17.1 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Status Transition Functions