beautypg.com

ADLINK MXC-6300 Series User Manual

Page 117

background image

Digital Input/Output Function Library

105

MXC-6300

notification is performed through a user-specified callback
function or the Windows PostMessage API.

Syntax

C/C++ and Borland C++

I16 DIO_INT2_EventMessage (I16 Int2Mode, HANDLE

windowHandle, U32 message, void

*callbackAddr())

Visual Basic

DIO_INT2_EventMessage (ByVal Int2Mode As Integer,

ByVal windowHandle As Long, ByVal message As

Long, ByVal callbackAddr As Long) As Integer

Parameter(s)

Int2Mode

INT2 interrupt mode. Valid values include: MXC-6300,
INT2_DISABLE, and INT2_EXT_SIGNAL INT2 by COS of
Ch1 of Port 0

windowHandle

Handle to the destination window for a Windows message
when the specified INT event occurs. If windowHandle is 0, no
Windows messages will be sent.

message

User-defined message. When the specified INT event occurs,
MXC-6300 matrix_dio remits this message. The message can
be of any value. In Windows, the message can be set to a
value including any Windows predefined messages, such as
WM_PAINT. However, to define a designated message, any
value ranging from WM_USER (0x400) to 0x7fff can be used.
This range is reserved by Windows for user-defined messages.

callbackAddr

Address of the user callback function. The MXC-6300
matrix_dio calls this function when the specified INT event
occurs. If no callback function is desired, set callbackAddr to 0.