Owner manual

WaveForms™ SDK Reference Manual
Page 61 of 85
9.2 Configuration
FDwfDigitalInInternalClockInfo(HDWF hdwf, double *phzFreq)
Parameters:
- hdwf Interface handle.
- phzFreq Pointer to return the internal clock frequency.
The function above is used to retrieve the internal clock frequency.
FDwfDigitalInClockSourceInfo(HDWF hdwf, int *pfsDwfDigitalInClockSource)
Parameters:
- hdwf Open interface handle on a device.
- pfsDwfDigitalInClockSource Pointer to variable to return the available clock source options.
The function above returns the supported clock sources for Digital In 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
DwfDigitalInClockSource constants in dwf.h:
DwfDigitalInClockSourceInternal: Internal clock.
DwfDigitalInClockSourceExternal: External clock source.
FDwfDigitalInClockSourceSet(HDWF hdwf, DwfDigitalInClockSource v)
Parameters:
- hdwf Open interface handle on a device.
- v Clock source.
The function above is used to set the clock source of instrument.
FDwfDigitalInClockSourceGet(HDWF hdwf, DwfDigitalInClockSource *pv)
Parameters:
- hdwf Open interface handle on a device.
- pv Pointer to variable to return the configured value.
The function above is used to get the clock source of instrument.
FDwfDigitalInDividerInfo(HDWF hdwf, unsigned int *pdivMax)
Parameters:
- hdwf Interface handle.
- pdivMax Pointer to variable to return the available maximum divider value.
The function above returns the maximum supported clock divider value. This specifies the sample rate.