B-28 API Commands
Appendix B,
887095
Personal Daq 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 Also
daqWaitForEvents, daqSetTimout
Program References
None
Used With
All devices
Description
daqWaitForEvent
allows you to wait on a specific Personal 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:PBOOL; 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 Also
daqWaitForEvent, daqSetTimeout
Program References
None
Used With
All devices
Description
daqWaitForEvents
allows you to wait on specific Personal 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.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com