Daqsetoption, Daqsettimeout – Measurement Computing TempBook rev.3.0 User Manual
Page 154

11-30 daqCommand Reference (Enhanced API)
TempBook User’s Manual
daqSetOption
DLL Function
daqSetOption(DaqHandleT handle, DWORD chan, DWORD flags, DaqOptionType
optionType, FLOAT optionValue);
C
daqSetOption(DaqHandleT handle, DWORD chan, DWORD flags, DaqOptionType
optionType, FLOAT optionValue);
Visual BASIC
VBdaqSetOption&(ByVal handle&, ByVal chan&, ByVal flags&, ByVal optionType&,
ByVal optionValue!)
Delphi
daqSetOption(Handle:DaqHandleT; chan:DWORD; flags:DWORD;
optionType:DaqOptionType; optionValue:FLOAT)
Parameters
handle
The handle to the device for which to set the option
chan
The channel number on the device for which the option is to be set
flags
Flags specifying the options to use.
optionType
Specifies the type of option.
optionValue
The value of the option to set
Returns
DerrNoError
- No error (also, refer to API Error Codes on page 11-39)
See Also
daqAdcExpSetChanOption,
Program References
None
Used With
All devices
daqSetOption
allows the setting of options for a device’s channel/signal path configuration.
•
The chan parameter specifies which channel the option applies to.
•
The optionType specifies the type of option to apply to the channel.
•
The optionValue parameter specifies the value of the option.
•
The flags parameter specifies how the option is to be applied.
For more information on the options and their valid settings, refer to the Option Value and Option
Type tables.
daqSetTimeout
DLL Function
daqSetTimeout(DaqHandleT handle, DWORD mSecTimeout);
C
daqSetTimeout(DaqHandleT handle, DWORD mSecTimeout);
Visual BASIC
VBdaqSetTimeout&(ByVal handle&, ByVal mSecTimeout&)
Delphi
daqSetTimeout(handle:DaqHandleT; mSecTimeout:DWORD)
Parameters
handle
Handle to the device for which the event time-out is to be set
mSecTimeout
Specifies time-out ( ms ) for events
Returns
DerrNoError
- No error (also, refer to API Error Codes on page 11-39)
See Also
daqWaitForEvent, daqWaitForEvents
Program References
None
Used With
All devices
daqSetTimeout
allows you to set the time-out for waiting on a single event or multiple events.
This 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.