Digilent / WaveForms-SDK-Getting-Started-PY

Demo package for the WaveForms SDK Getting Started guide and multiple test scripts for different instruments.
https://digilent.com/reference/test-and-measurement/guides/waveforms-sdk-getting-started
MIT License
40 stars 13 forks source link

dwfconstants missing definitions used in WF_SDK code #1

Open DaanWielens opened 2 years ago

DaanWielens commented 2 years ago

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?

smbdoggy83 commented 2 years ago

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

Thanks, Seth

DaanWielens commented 2 years ago

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.