You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: