Setalarmmx – Yokogawa PC-Based MX100 User Manual

Page 297

Advertising
background image

5-39

IM MX190-01E

Functions for the MX100 (Visual C/Visual Basic)

5

setAlarmMX

Syntax

int setAlarmMX(DAQMX daqmx, int levelNo, int startChNo, int
endChNo, int iAlarmType, int value, int histerisys);

Declaration

Public Declare Function setAlarmMX Lib "DAQMX"(ByVal daqmx As
Long, ByVal levelNo As Long, ByVal startChNo As Long, ByVal
endChNo As Long, ByVal iAlarmType As Long, ByVal value As
Long, ByVal histerisys As Long) As Long

Parameters

daqmx

Specify the device descriptor.

levelNo

Specify the alarm level.

startChNo

Specify the start channel number.

endChNo

Specify the end channel number.

iAlarmType

Specify the alarm type.

value

Specify the alarm value.

histerisys

Specify the hysteresis.

Description

Sets the alarm to the specified channel range.
The setup data is retrieved collectively, changed, and sent collectively.

Return value

Returns an error number.
Error:

Not descriptor

No device descriptor.

Reference

CDAQMX::getMXConfig CDAQMX::setMXConfig
CDAQMXChConfig::setAlarm
CDAQMXConfig::getClassMXChConfig

5.1 Details of Functions - MX100 (Visual C/Visual Basic) -

Advertising