Jump to content
  • 0

ADC sampling rate and AWG frequency setting


M. Hamza Öncüer

Question

Hello I am trying to set a sampling rate and an awg frequency such that they both setted to interger values and the adc sampling / awg freq also should be an integer value, could you help me please ? 

I tried setting ADC sampling rate to be 1.6 MHz and awg frequency to be 200 Hz, but when I tried with these settings I realized that my signal's frequency is not stable it is changing a little bit with every cycle. My initial thought is that awg can't produce 200 Hz exactly, what do you think ? 

 

Screenshot 2023-05-02 170013.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi @Hamza Oncuer

To obtain the exact frequency with AD2 set signal period for run length:
dwf.FDwfAnalogOutRunSet(hdwf, channel, c_double(1.0/hzFreq))
dwf.FDwfAnalogOutRepeatSet(hdwf, channel, c_int(0)) # repeat infinite

There is not need for such with ADP3X50 and newer devices.

For each parameter the Get functions can be used to retrieve the obtained/real value, like FDwfAnalogOutNodeFrequencyGet would return 199.9999997...Hz

image.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...