beautypg.com

Ondigevent – Measurement Computing Personal488 rev.3.0 User Manual

Page 100

background image

Personal488 for Windows 95/98/Me/NT/2000

04-10-01

API Reference 6-32

OnDigEvent

AT488pnp and PCI488 Only ! Windows9x Only !

Syntax

INT WINAPI OnDigEvent(DevHandleT devHandle, HWND hwnd,

OpaqueP lParam);

devHandle

refers to an interface handle.

hwnd

is the window handle to receive event notification.

lParam

value will be passed in the notification message.

Returns

-1

if error

Bus States

None

Example

OnDigEvent(devHandle,

TRUE, 0x10L);

Sets the event notification to be via a window message

to the specified window handle. The value

0x10

will be passed with the message.

See Also

DigArm, OnDigEventVDM, OnEvent

The

OnDigEvent

command sets the handle of a window to receive a notification message when a digital

match event is triggered. This function uses the same mechanism as the

OnEvent

command. For details,

see the description of

OnEvent

.

Note:

This function sets the event generation mechanism to be a window notification message,
replacing any previously defined event notification mechanism. Only one event notification
mechanism can be used at one time.

This manual is related to the following products: