timmolter Posted July 7, 2016 Share Posted July 7, 2016 I just purchased an Analog Discovery and have been enjoying it so far. The OSX Waveforms2105 app works flawlessly. I'm now trying to run the python example code in the SDK in order to write my own software. If I run `DigitalOut_Pins.py`, I get the following: DWF Version: 3.3.5 Opening first device failed to open device Any ideas? Can I debug this in any way? Thanks. Link to comment Share on other sites More sharing options...
timmolter Posted July 7, 2016 Author Share Posted July 7, 2016 I solved it, but I'm not sure exactly why it now works. Before I was referencing the dwf framework with /Applications/WaveForms.app/Contents/Frameworks/dwf.framework/Versions/A/dwf because that's where the framework ended up when I installed Waveforms. I updated the python code appropriately. Then I tried moving the framework to the directory referenced in the original code: /Library/Frameworks/dwf.framework/dwf And then it worked. Not sure what the difference is though. Link to comment Share on other sites More sharing options...
attila Posted July 7, 2016 Share Posted July 7, 2016 Hello, On OS X the proper location of the shared frameworks, as the installer disk image arrow suggests is the /Library/Frameworks. The application bundle can also incorporate the framework and link to it as: -rpath @executable_path/../Frameworks -framework dwf Link to comment Share on other sites More sharing options...
timmolter Posted July 8, 2016 Author Share Posted July 8, 2016 Thanks, I missed that the first time I installed the app. Link to comment Share on other sites More sharing options...
Question
timmolter
I just purchased an Analog Discovery and have been enjoying it so far. The OSX Waveforms2105 app works flawlessly.
I'm now trying to run the python example code in the SDK in order to write my own software. If I run `DigitalOut_Pins.py`, I get the following:
DWF Version: 3.3.5 Opening first device failed to open device
Any ideas? Can I debug this in any way? Thanks.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.