beautypg.com

Daqwaitforevent – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 312

background image

4.6-34 Daq API Command Reference

908594

Programmer’s

Manual


daqWaitForEvent

Also See: daqWaitForEvents, daqSetTimeout

Format

daqWaitForEvent(handle, event)

Purpose

daqWaitForEvent

waits on a specific event to occur on the specified device.

Parameter Summary

Parameter Type

Description

handle DaqHandleT Handle of the device for which to wait of the specified event
event DaqTransferEvent

Specifies the event to wait on

Parameter Values

handle:

obtained from the DaqOpen function

event:

see table below

Parameter Type Definitions

daqEvent-(DaqTransferEvent)

Definition (daqEvent)

Description

DteAdcData

Data is present in the acquisition buffer

DteAdcDone

Acquisition data transfer operation is complete

Returns

DerrNoError

No Error

Function Usage

The daqWaitForEvent function will not return until the specified event (event) has occurred or the wait has
timed out— whichever comes first. The event time-out can be set with the function.

Note: The default timeout is 5 seconds.

Prototypes

C/C++

daqWaitForEvent(DaqHandleT handle, DaqTransferEvent event);

Visual BASIC

VBdaqWaitForEvent&(ByVal handle&, ByVal daqEvent&)

Program References

DAQADCEX04.CPP, DAQADCEX05.CPP, DAQADCEX06.CPP, DAQEX.FRM (VB)