WaveForms-SDK-Getting-Started-PY icon indicating copy to clipboard operation
WaveForms-SDK-Getting-Started-PY copied to clipboard

dwfconstants missing definitions used in WF_SDK code

Open DaanWielens opened this issue 3 years ago • 2 comments

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?

DaanWielens avatar Sep 22 '22 08:09 DaanWielens

Hi, I'm also running into this exact issue right now. Did you ever find a fix?

Thanks, Seth

smbdoggy83 avatar Oct 27 '22 17:10 smbdoggy83

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.

DaanWielens avatar Oct 28 '22 07:10 DaanWielens