WaveForms-SDK-Getting-Started-PY
WaveForms-SDK-Getting-Started-PY copied to clipboard
dwfconstants missing definitions used in WF_SDK code
I just installed the latest version of WaveForms (3.18.1) on Windows 10, and afterwards installed the SDK through pip3 install git+https://github.com/Digilent/WaveForms-SDK-Getting-Started-PY#egg=WF_SDK.
Now, when launching Python (3.7.12) and importing the scope module via from WF_SDK import scope I get AttributeError: module 'dwfconstants' has no attribute 'DwfWindowRectangular'
I can see in the dwfconstants.py file that indeed this attribute is not present. Can either the code or the constants file be updated so that they are compatible?
Hi, I'm also running into this exact issue right now. Did you ever find a fix?
Thanks, Seth
Hi Seth, I ended up using the examples in https://digilent.com/reference/test-and-measurement/guides/waveforms-sdk-getting-started to program my own drivers for the AnalogDiscovery2. My implementation (largely based on these examples + some questions from the forum) can be found here: https://github.com/ICE-QTM/QTMtoolbox/blob/master/instruments/DigiAD2.py
So far, I haven't received a comment from Digilent about this issue, so as far as I know it has not been addressed yet.