WaveForms-SDK-Getting-Started-PY
WaveForms-SDK-Getting-Started-PY copied to clipboard
Probleme with test_static-supplies.py
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
Could you please help me resolve this error?
Thank you.