
daqSetTimeout
Also See: daqWaitForEvent, daqWaitForEvents,
daqAdcTransferBufData, daqAdcRdN
Format
daqSetTimeout (handle, mSecTimeout)
Purpose
daqSetTimeout sets the time-out for waiting on either a single event or multiple events.
Parameter Summary
Parameter Type Description
handle DaqHandleT
Handle to the device for which the event time-out is to be set
mSecTimeout DWORD
Specifies time-out (in milliseconds) for events
Parameter Values
handle: obtained from the DaqOpen function
mSecTimeout: valid values range from 1 to 4,294,967,295; however, large values will cause timeout to be
excessively long
Function Usage
The daqSetTimeout function can be used in conjunction with the daqWaitForEvent and
daqWaitForEvents functions to specify a maximum amount of time to wait for the event(s) to be satisfied.
The mSecTimeout parameter specifies the maximum amount of time (in milliseconds) to wait for the event(s) to
occur. If the event(s) do not occur within the specified time-out, the daqWaitForEvent and/or
daqWaitForEvents will return.
If this function is not called, a default timeout of 10,000 milleseconds (10 seconds) will be used.
The daqSetTimeout function can be used for daqAdcRdN functions.
Returns
DerrNoError No error
Prototypes
C/C++
daqSetTimeout(DaqHandleT handle, DWORD mSecTimeout);
Visual BASIC
VBdaqSetTimeout&(ByVal handle&, ByVal mSecTimeout&)
Program References
DAQADCEX04.CPP, DAQADCEX05.CPP, DAQADCEX06.CPP
Programmer’s Manual 908594 Daq API Command Reference 4.6-23
Komentarze do niniejszej Instrukcji