Daqadcsetfilter, Daqadcsetfreq – Measurement Computing Personal Daq rev.6.0 User Manual
Page 143

Personal Daq User’s Manual
Appendix B,
887095
API Commands B-11
daqAdcSetFilter
DLL Function
daqAdcSetFilter(DaqHandleT handle, DaqAdcFilterType filterType, DWORD
filterWindow);
C
daqAdcSetFilter(DaqHandleT handle, DaqAdcFilterType filterType, DWORD
filterWindow);
Visual BASIC
VbdaqAdcSetFilter&(ByVal handle&, ByVal filterType&, ByVal filterWindow&)
Delphi
DaqAdcGetScan( handle:DaqHandleT; filterType:DaqAdcFilterType;filterWindow:DWORD
)
Parameters
handle
Handle to the device for which to get the current scan configuration.
filterType
Specifies the type of analog filtering to be performed (currently DaftSWAvg)
filterWindow
Specifies the number of scans over which to filter
Returns
DerrNoError
- No error (also, refer to API Error Codes on page page B-33)
See Also
Program References
None
Used With
PersonalDaq
Description
daqAdcSetFilter
sets the driver to perform filtering for analog channels. The filterType parameter specifies the filter method to
be used. Once this function is set, filtering will be performed on all analog channels in the scan group. Note that the filterWindow
parameter specifies the number of scans over which the filtering method is to be applied.
daqAdcSetFreq
DLL Function
daqAdcSetFreq(DaqHandleT handle, FLOAT freq);
C
daqAdcSetFreq(DaqHandleT handle, FLOAT freq);
Visual BASIC
VBdaqAdcSetFreq&(ByVal handle&, ByVal freq!)
Delphi
daqAdcSetFreq(handle:DaqHandleT; freq:single)
Handle
Handle to the device for which the ADC acquisition frequency is to be set.
Parameters
Freq
The sampling frequency in Hz; Valid values: 100000.0 - 0.0002
Returns
DerrNoError
No error
See Also
daqAdcGetFreq, daqAdcSetRate
Program References
None
Used With
All devices
Description
daqAdcSetFreq
calculates and sets the frequency of the acquisition clock using the frequency specified in Hz. The frequency specified is
the rate at which channel scans are collected. This rate represents the interval at which each channel scan group is collected. The rate
specified must be less than or equal to the maximum frequency for which the currently defined channel scan configuration can run. The
maximum rate can be retrieved via the daqAdcGetFreq or daqAdcSetRate commands. If a rate is specified which is greater than the
maximum frequency at which the current channel configuration will allow the driver will automatically set the rate to the maximum allowable.