Owner manual

WaveForms™ SDK Reference Manual
Page 81 of 85
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 Constants
FUNC Constant Capabilities
funcDC
Generate DC value set as offset.
FuncSine
Generate sine waveform.
funcSquare
Generate square waveform.
funcTriangle
Generate triangle waveform.
funcRampUp
Generate a waveform with a ramp-up voltage at the beginning.
funcRampDown
Generate a waveform with a ramp-down voltage at the end.
funcNoise
Generate noise waveform from random samples.
funcCustom
Generate waveform from custom repeated data.
funcPlay
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.