Setalarmvaluemx100 – Yokogawa PC-Based MX100 User Manual

Page 779

Advertising
background image

17-45

IM MX190-01E

17

Functions for the MX100 (Extended API) - Visual C/Visual Basic/Visual Basic.NET/C# -

setAlarmValueMX100

Syntax

int setAlarmValueMX100(DAQMX100 daqmx100, int chNo, int
levelNo, int iAlarmType, int valueON, int valueOFF);

Declaration

Visual Basic
Public Declare Function setAlarmValueMX100 Lib
"DAQMX100"(ByVal daqmx100 As Long, ByVal chNo As Long, ByVal
levelNo As Long, ByVal iAlarmType As Long, ByVal valueON As
Long, ByVal valueOFF As Long) As Long
Visual Basic.NET
Public Declare Ansi Function setAlarmValueMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal chNo As Integer,
ByVal levelNo As Integer, ByVal iAlarmType As Integer, ByVal
valueON As Integer, ByVal valueOFF As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="setAlarmValueMX100")]
public static extern int setAlarmValueMX100(int daqmx100, int
chNo, int levelNo, int iAlarmType, int valueON, int valueOFF);

Parameters

daqmx100

Specify the device descriptor.

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.

• Set according to the specified range type.
• Hysteresis is specified by the threshold of alarm activation and release.

• The alarm value is specified with an integer excluding the decimal point.

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

Advertising