4 trigger, Trigger – Digilent WaveForms User Manual
Page 24

WaveForms™ SDK Reference Manual
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 24 of 85
FDwfAnalogInChannelOffsetGet(HDWF hdwf,
int
idxChannel,
double
*pvoltOffset)
Parameters:
-
hdwf – Interface handle.
-
idxChannel – Channel index.
-
pvoltsRange – Variable to receive the offset voltage obtained.
The function above returns for each AnalogIn channel the real offset level.
FDwfAnalogInChannelAttenuationSet(
HDWF hdwf,
int
idxChannel,
double
xAttenuation)
Parameters:
-
hdwf – Interface handle.
-
idxChannel – Channel index.
-
voltsRange – Channel offset voltage to set.
The function above is used to configure the attenuation for each channel. When channel index is specified as -1,
each enabled AnalogIn channel attenuation will be configured to the same level. The attenuation does not change
the attenuation on the device, just informs the library about the externally applied attenuation.
FDwfAnalogInChannelAttenuationGet(
HDWF hdwf,
int
idxChannel,
double
*pxAttenuation)
Parameters:
-
hdwf – Interface handle.
-
idxChannel – Channel index.
-
pxAttenuation – Variable to receive the attenuation value.
The function above returns for each AnalogIn channel the configured attenuation.
5.4 Trigger
The trigger is used for Single and Record acquisitions. For ScanScreen and ScanShift, the trigger is ignored.
To achieve the classical trigger types:
-
None: Set FDwfAnalogInTriggerSourceSet to trigsrcNone.
-
Auto: Set FDwfAnalogInTriggerSourceSet to something other than trigsrcNone, such as
trigsrcDetectorAnalogIn and FDwfAnalogInTriggerAutoTimeoutSet to other than zero.
-
Normal: Set FDwfAnalogInTriggerSourceSet to something other than trigsrcNone, such as
trigsrcDetectorAnalogIn or FDwfAnalogInTriggerAutoTimeoutSet to zero.