Empower Posted October 2, 2023 Share Posted October 2, 2023 With the GUI I can change Analog Discovery 3's clocking options (see image). How do I do this with python's pydwf? Link to comment Share on other sites More sharing options...
0 attila Posted October 2, 2023 Share Posted October 2, 2023 Hi @Empower See the FDwfDeviceParamSet DwfParamFrequency in the SDK manual. Link to comment Share on other sites More sharing options...
0 Guest Posted October 2, 2023 Share Posted October 2, 2023 (edited) 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 October 2, 2023 by reddish Link to comment Share on other sites More sharing options...
0 Empower Posted October 3, 2023 Author Share Posted October 3, 2023 @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 More sharing options...
Question
Empower
With the GUI I can change Analog Discovery 3's clocking options (see image). How do I do this with python's pydwf?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now