beautypg.com

Digilent WaveForms User Manual

Page 30

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 30 of 85


FDwfAnalogInTriggerConditionInfo
(HDWF hdwf,

int *

pfstrigcond)

Parameters:
-

hdwf – Interface handle.

-

pfstrigcond – Variable to receive the supported trigger conditions.

The function above returns the supported trigger type options for the instrument. 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
TRIGCOND constants in dwf.h. These trigger condition options are:

trigcondRisingPositive (This is the default setting):
o For edge and transition trigger on rising edge.
o For pulse trigger on positive pulse.

trigcondFallingNegative:
o For edge and transition trigger on falling edge.
o For pulse trigger on negative pulse.


FDwfAnalogInTriggerConditionSet
(HDWF hdwf, TRIGCOND trigcond)

Parameters:
-

hdwf – Interface handle.

-

trigcond – Trigger condition to set.

The function above is used to set the trigger condition for the instrument.


FDwfAnalogInTriggerConditionGet(HDWF hdwf, TRIGCOND *ptrigcond)

Parameters:
-

hdwf – Interface handle.

-

ptrigcond – Variable to receive the current trigger condition.

The function above is used to set the trigger condition for the instrument.


FDwfAnalogInTriggerLevelInfo
(

HDWF hdwf,

double

*pvoltsMin,

double

*pvoltsMax,

int

*pnSteps)

Parameters:
-

hdwf – Interface handle.

-

pvoltsMin – Variable to receive the minimum voltage level.

-

pvoltsMax – Variable to receive the maximum voltage level.

-

pnSteps – Variable to receive the number of voltage level steps.

The function above is used to retrieve the range of valid trigger voltage levels for the AnalogIn instrument in Volts.