beautypg.com

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

Page 156

background image

11-32 daqCommand Reference (Enhanced API)

TempBook User’s Manual

The count parameter can be used to indicate the duration or length of the test. For instance, a
resource test will be run count times; and if any one iteration of the test fails, it will indicate an
overall failure of the test. For a performance test, the count parameter will indicate the number of
times to run the test, and the test result will be an average of all the tests performed.

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)

Parameters

handle

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

daqEvent

Specifies the event to wait on

Returns

DerrNoError

- No error (also, refer to API Error Codes on page 11-39)

See Also

daqWaitForEvents, daqSetTimout

Program References

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

Used With

All devices

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)

Parameters

*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.

waitMode

Specifies the mode for the wait

Returns

DerrNoError

- No error (also, refer to API Error Codes on page 11-39)

See Also

daqWaitForEvent, daqSetTimeout

Program References

None

Used With

All devices

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.