
WaveForms™ SDK Reference Manual
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
FDwfAnalogOutEnableGet(HDWF hdwf, int idxChannel, BOOL *pfEnable)
Parameters:
- hdwf – Open interface handle on a device.
- idxChannel – Channel index.
- pfEnable – Pointer to variable to receive enabled state.
The function above is used to verify if a specific channel is enabled or disabled.
FDwfAnalogOutFunctionInfo(HDWF hdwf, int idxChannel, int *pfsfunc)
Parameters:
- hdwf – Open interface handle on a device.
- idxChannel – Channel index.
- pfsfunc – Variable to receive the supported generator function options.
The function above returns the supported generator function options. 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 FUNC constants in
dwf.h. These are:
FUNC Constant Capabilities
Generate DC value set as offset.
Generate square waveform.
Generate triangle waveform.
Generate a waveform with a ramp-up voltage at the beginning.
Generate a waveform with a ramp-down voltage at the end.
Generate noise waveform from random samples.
Generate waveform from custom repeated data.
Generate waveform from custom data in stream play style.
FDwfAnalogOutFunctionSet(HDWF hdwf, int idxChannel, FUNC func)
Parameters:
- hdwf – Open interface handle on a device.
- idxChannel – Channel index.
- func – Generator function option to set.
The function above is used to set the generator output function for the specified instrument channel. With channel
index -1, each enabled Analog Out channel function will be configured to use the same, new option.
FDwfAnalogOutFunctionGet(HDWF hdwf, int idxChannel, FUNC *pfunc)
Parameters:
- hdwf – Open interface handle on a device.
- idxChannel – Channel index.
- ptrigsrc – Pointer to variable to receive the generator function option.
The function above is used to retrieve the current generator function option for the specified instrument channel.
Komentáře k této Příručce