beautypg.com

Ondigeventvdm – Measurement Computing Personal488 rev.3.0 User Manual

Page 101

background image

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

04-10-01

API Reference 6-33

OnDigEventVDM

AT488pnp and PCI488 Only ! Windows9x Only !

Syntax

INT WINAPI OnDigEventVDM(DevHandleT devHandle, DigEventFuncT

func, OpaqueP lParam);

devHandle

refers to an interface handle.

func

is a user-defined function to be called when the digital match event is triggered.

lParam

value will be passed in the notification message.

Returns

-1

if error

Bus States

None

Example

OnDigEventVDM(devHandle,

MyFunc, 0x10L);

Sets the event notification to be via a function call to

the specified callback function. The value

0x10

will be passed to the function.

See Also

DigArm, OnDigEventVDM, OnEventVDM

The

OnDigEventVDM

command sets the address of a “C”-style (

__stdcall

) function to be called when a

digital match event occurs. This function uses a similar mechanism as the

OnEventVDM

command. The

prototype of the callback function for

OnDigEventVDM

is:

void DigEventFunc( DevHandleT devHandle, LPARAM lParam )

The

lParam

value that is passed to

OnDigEventVDM

is passed on to the callback function when the event

occurs. For details, see the description of

OnEventVDM

.

Note:

This function sets the event generation mechanism to be a callback function, 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: