Jump to content
  • 0

How do I change clocking option of Analog Discovery 3 with pydwf?


Empower

Question

3 answers to this question

Recommended Posts

  • 0

Hi @Empower

Using pydwf, that would be something like:
 

# Set a 100 MHz frequency.
device.paramSet(DwfDeviceParameter.Frequency, 100000000)

The documentation of the available parameters in the SDK documentation has changed over the last few versions. The SDK docs of the most recent release (3.20.1) doesn't say that this also works on the Analog Discovery 3.

Also, the pydwf documentation's description of the device parameters (as found here) is currently based on an earlier version of the SDK documentation, where the value was mentioned but not explained, at all.

A problem with the current SDK documentation is that it doesn't list which values are valid for this parameter; your best bet is to see which values are listed in the Waveforms application. Unfortunately, the SDK documentation often omits vital information like that, which sucks a bit.


Hope this helps.

Edited by reddish
Link to comment
Share on other sites

  • 0

@reddish works great.  Thanks.  (I looked all over for that.)

Here is the complete snippet.

from pydwf.utilities import openDwfDevice
from pydwf import DwfLibrary, DwfDeviceParameter
dwf = DwfLibrary()
device = openDwfDevice(dwf)
# Set a 100 MHz frequency.
device.paramSet(DwfDeviceParameter.Frequency, 100000000)

 

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...