beautypg.com

Daqwaitforevent, Daqwaitforevents – Measurement Computing WaveBook rev.3.0 User Manual

Page 226

background image

D-30 daqX API - Command Reference,

6-24-99

WaveBook User’s Manual

daqWaitForEvent

DLL Function

daqWaitForEvent(DaqHandleT handle, DaqTransferEvent daqEvent);

C

daqWaitForEvent(DaqHandleT handle, DaqTransferEvent daqEvent);

Visual BASIC

VBdaqWaitForEvent&(ByVal handle&, ByVal daqEvent&)

Delphi

daqWaitForEvent(handle:DaqHandleT; daqEvent:DaqTransferEvent)

handle

Handle of the device for which to wait of the specified event

Parameters

daqEvent

Specifies the event to wait on

Returns

DerrNoError

No error (see the API Error Codes table at the end of this chapter).

See Also

daqWaitForEvents, daqSetTimout

Program References

ADCEX1.C, DACEX1.C, DYN32ENH.C, DAQEX.FRM (VB), ADCEX.PAS (Delphi)

Used With

All devices

Description

daqWaitForEvent

allows you to wait on a specific Daq* event to occur on the specified device. This function will not return until the

specified event has occurred or the wait has timed out— whichever comes first. The event time-out can be set with the daqSetTimout
function. See the Transfer Event Definitions table for event definitions.

daqWaitForEvents

DLL Function

daqWaitForEvents(DaqHandleT *handles, DaqTransferEvent *daqEvents,
DWORD eventCount, BOOL *eventSet, DaqWaitMode waitMode);

C

daqWaitForEvents(DaqHandleT *handles, DaqTransferEvent *daqEvents,
DWORD eventCount, BOOL *eventSet, DaqWaitMode waitMode);

Visual BASIC

VBdaqWaitForEvents&(handles&(), daqEvents&(), ByVal eventCount&, eventSet&(), ByVal

waitMode&)

Delphi

daqWaitForEvents(handles:DaqHandlePT; daqEvents:DaqTransferEventP; eventCount:DWORD;

eventSet:PLONGBOOL; waitMode:DaqWaitMode)

*handles

Pointer to an array of handles which represent the list of device on which to wait for the events

*daqEvents

Pointer to an array of events which represents the list of events to wait on

eventCount

Number of defined events to wait on

*eventSet

Pointer to an array of Booleans indicating if the events have been satisfied.

Parameters

waitMode

Specifies the mode for the wait

Returns

DerrNoError

No error (see the API Error Codes table at the end of this chapter).

See Also

daqWaitForEvent, daqSetTimeout

Program References

None

Used With

All devices

Description

daqWaitForEvents

allows you to wait on specific Daq* events to occur on the specified devices. This function will wait on the specified

events and will return based upon the criteria selected with the waitMode parameter. A time-out for all events can be specified using the
daqSetTimeout

command.

Events to wait on are specified by passing an array of event definitions in the events parameter. The number of events is specified with
the eventCount parameter. See the Transfer Event Definitions table for events parameter definitions. Also see the Transfer Event
Wait Mode Definitions
table for waitMode parameter definitions.