Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dwfconstants missing definitions used in WF_SDK code #1

Open
DaanWielens opened this issue Sep 22, 2022 · 2 comments
Open

dwfconstants missing definitions used in WF_SDK code #1

DaanWielens opened this issue Sep 22, 2022 · 2 comments

Comments

@DaanWielens
Copy link

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
Copy link

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

Thanks,
Seth

@DaanWielens
Copy link
Author

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.

smbdoggy83 added a commit to smbdoggy83/War-On-Co-Processors that referenced this issue Nov 1, 2022
Included library DigiAD2.py, a driver that might let us interact with the Analog Discovery 2 better.

Sources: Digilent/WaveForms-SDK-Getting-Started-PY#1

https://github.com/ICE-QTM/QTMtoolbox/blob/master/instruments/DigiAD2.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants