Download WaveForms SDK User's Manual
Transcript
WaveForms SDK User’s Manual FDwfAnalogInChannelFilterInfo(HDWF hdwf, int* pfsfilter); Parameters: - hdwf – interface handle - pfsfilter – pointer to return the supported acquisition modes This function returns the supported acquisition filters. They are returned (by reference) as a bit field. This bit field can be parsed using the IsBitSet Macro. Individual bits are defined using the FILTER constants in DWH.h. When the acquisition frequency (FDwfAnalogInFrequencySet) is less than the ADC frequency (maximum acquisition frequency), the samples can be stored in one of the following ways using FILTER: • filterDecimate: store every Nth ADC conversion, where N = acquisition frequency/ADC frequency • filterAverage: store the average of N ADC conversions • filterMinMax: store interleaved, the minimum and maximum values, of 2xN conversions FDwfAnalogInChannelFilterSet(HDWF hdwf, int idxChannel, FILTER filter); Parameters: - hdwf – interface handle - idxChannel – channel index - filter – acquisition sample filter to set This function is used to set the used acquisition filter for each AnalogIn channel. With channel index -1, every AnalogIn channel filter will be configured to use the same, new option. FDwfAnalogInChannelFilterGet(HDWF hdwf, int idxChannel, FILTER* pfilter); Parameters: - hdwf – interface handle - idxChannel – channel index - pfilter– variable to receive the current sample filter This function returns the configured acquisition filter. www.digilentinc.com page 21 of 63 Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.