beautypg.com

Ondigevent, Ondigeventvdm, Onevent – Measurement Computing GPIB-488.2 User Manual

Page 40: Oneventvdm, Ondigevent ondigeventvdm onevent oneventvdm, Syntax

background image

3-22

IOtech to Associated MCC APIs

986992

GPIB 488.2 Porting Guide

IOtech GPIB Commands

Associated MCC GPIB 488.2 Command(s)

OnDigEvent

OnDigEventVDM

OnEvent

OnEventVDM

No Equivalent Commands

Syntax

OnDigEvent

INT WINAPI OnDigEvent(DevHandleT devHandle, HWND

hwnd, OpaqueP lParam);

OnDigEventVDM INT WINAPI OnDigEventVDM(DevHandleT devHandle,

DigEventFuncT func, OpaqueP lParam);

OnEvent

INT WINAPI OnEvent(DevHandleT devHandle,

HWND hWnd, OpaqueP lParam);

OnEventVDM

INT WINAPI OnEventVDM(DevHandleT devHandle,

EventFuncT func);


Usage Notes

OnDigEvent

and OnDigEventVDM are no longer to be used. They are digital commands

which applied only to AT488pnp and PCI488.

The OnDigEvent command was used to set the handle of a window to receive a notification
message when a digital match event was triggered.
The OnDigEventVDM command was used to set the address of a “C”-style function to be
called when a digital match event occurred. This function used a similar mechanism as the
OnEventVDM command.
In regard to the OnDigEvent

and OnDigEventVDM commands, there is no mechanism to

convert to, or to achieve equivalent or similar functionality.

The OnEvent command caused the event handling mechanism to issue a message upon
occurrence of an Armed event.
The OnEventVDM allowed a call back to a user-specified function in an application.
In regard to the OnEvent

and OnEventVDM commands, similar functionality can only be

achieved by coding efforts, of such magnitude, that they are beyond the scope of this document.