beautypg.com

Dio_int1_eventmessage – ADLINK MXC-6300 Series User Manual

Page 115

background image

Digital Input/Output Function Library

103

MXC-6300

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.

Return codes

NoError

ErrorInvalidCardNumber

ErrorCardNotRegistered

ErrorFuncNotSupport

DIO_INT1_EventMessage

Controls the INT1 interrupt sources for a dual-interrupt system
and notifies the application when an interrupt event occurs.
Notification is implemented through a user-specified callback
function or the Windows PostMessage API.

Syntax

C/C++ and Borland C++

I16 DIO_INT1_EventMessage (I16 Int1Mode, HANDLE

windowHandle, U32 message, void

*callbackAddr())

Visual Basic