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

Probleme with test_static-supplies.py #3

Open
AghilesDouadi7 opened this issue Jun 21, 2023 · 0 comments
Open

Probleme with test_static-supplies.py #3

AghilesDouadi7 opened this issue Jun 21, 2023 · 0 comments

Comments

@AghilesDouadi7
Copy link

Hello and thank you for this work,

I want to program the IN/OUT of the Analog Discovery 2, and when I try to use your example "test_static-supplies.py", I encounter this error in static.py:

Exception has occurred: TypeError
'c_ushort' object cannot be interpreted as an integer
File "/home/douadiag/Bureau/WaveForms-SDK-Getting-Started-PY-master/WF_SDK/static.py", line 138, in set_state
if dwf.FDwfDigitalIOOutputSet(device_data.handle, ctypes.c_int(mask)) == 0:
File "/home/douadiag/Bureau/WaveForms-SDK-Getting-Started-PY-master/test_static-supplies.py", line 36, in
static.set_state(device_data, index, not(mask & pow(2, index)))
TypeError: 'c_ushort' object cannot be interpreted as an integer
**

Could you please help me resolve this error?

Thank you.

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

1 participant