Hi Digilent, I am trying to use dwf.py to generate a square wave using Analog Discovery 2 device from my MacBook, but it always give the error shown below. The WaveForms GUI works fine with my MacBook though. And same code works fine with the device if I run it on my Windows10 laptop. I am not sure if it is a compatibility issue with Python on MackBook?
Question
Leon
Hi Digilent, I am trying to use dwf.py to generate a square wave using Analog Discovery 2 device from my MacBook, but it always give the error shown below. The WaveForms GUI works fine with my MacBook though. And same code works fine with the device if I run it on my Windows10 laptop. I am not sure if it is a compatibility issue with Python on MackBook?
==========================================================================================================
Generating square wave (1 high, 1 low)...
DWF Version: 3.12.2
Opening first device...
Traceback (most recent call last):
File "DigilentTest_SingleTap.py", line 64, in <module>
dwf_ao = dwf.DwfAnalogOut()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dwf.py", line 2312, in __init__
super(DwfAnalogOut, self).__init__(idxDevice, idxCfg)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dwf.py", line 1891, in __init__
hdwf = FDwfDeviceOpen(idxDevice)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dwf.py", line 246, in _errcheck
raise DWFError(err.value, _mkstring(errmsg), (func, args))
dwf.DWFError: ERROR(1): dmgrEnumDevicesEx 0xC12
No connected device found
==========================================================================================================
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.