beautypg.com

Digilent WaveForms User Manual

Page 29

background image

WaveForms™ SDK Reference Manual

Copyright Digilent, Inc. All rights reserved.

Other product and company names mentioned may be trademarks of their respective owners.

Page 29 of 85


FDwfAnalogInTriggerChannelGet
(HDWF hdwf,

int

*pidxChannel)

Parameters:
-

hdwf – Interface handle.

-

pidxChannel – Variable to receive the current trigger channel index.

The function above is used to retrieve the current trigger channel index.



FDwfAnalogInTriggerFilterInfo
(HDWF hdwf,

int *

pfsfilter)

Parameters:
-

hdwf – Interface handle.

-

pfsFilter – Variable to receive the supported trigger filters.

The function above returns the supported trigger 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 DWF.h.
Select trigger detector sample source, FILTER:

filterDecimate: Looks for trigger in each ADC conversion, can detect glitches.

filterAverage: Looks for trigger only in average of N samples, given by FDwfAnalogInFrequencySet.


FDwfAnalogInTriggerFilterSet(HDWF hdwf, FILTER filter)

Parameters:

-

hdwf – Interface handle.

-

filter – Trigger filter to set.

The function above is used to set the trigger filter.



FDwfAnalogInTriggerFilterGet
(HDWF hdwf, FILTER *pfilter)

Parameters:
-

hdwf – Interface handle.

-

pfilter – Variable to receive the current trigger filter.

The function above is used to get the trigger filter.