JonasD Posted October 8, 2022 Share Posted October 8, 2022 Hello, I am trying to use the AD2 with MATLAB R2022b on an M1 Pro MacBook Pro with Mac OS 12.6 Using a library provided by my professor, I should get a confirmation, that the connection has been established. I, however get an error message. The code I ran is as follows: Quote hdwf = AD2Init(); and it should return the device ID. Both the AD2Init() function as well as the error message in the command window are attached. Thank you in advance for any help. Error message.pdf AD2Init.m Link to comment Share on other sites More sharing options...
0 attila Posted October 10, 2022 Share Posted October 10, 2022 Hi @JonasD The dwf.framework should be installed to and used from /Library/Frameworks/ or bundled with custom app. I don't know which WF version are you using but the newer ones are combined build with native M1 support: Link to comment Share on other sites More sharing options...
0 JonasD Posted October 11, 2022 Author Share Posted October 11, 2022 I reinstalled waveforms and Matlab with the newest versions and I still get the same error message. I followed the steps in the waveforms installer, where it tells you to move the dwf.framework to the Frameworks folder. Link to comment Share on other sites More sharing options...
0 attila Posted October 11, 2022 Share Posted October 11, 2022 Hi @JonasD Try modifying the .m to use /Library/Frameworks/dwf.framework/.. Link to comment Share on other sites More sharing options...
0 JonasD Posted October 12, 2022 Author Share Posted October 12, 2022 still doesn't work, same error message as before, although I noticed that the standard file path for the dwf.frameworks folder is /Applications/WaveForms.app/Contents/Frameworks/dwf.framework/... instead of /Library/Frameworks/... Furthermore, I noticed that the user library (/admin/Library/.... ) does not have a Frameworks folder and only the system wide library has that. Which one should I use then? I tried the system wide one and added the path to it in the .m file Link to comment Share on other sites More sharing options...
0 JonasD Posted October 18, 2022 Author Share Posted October 18, 2022 any ideas anyone? Link to comment Share on other sites More sharing options...
Question
JonasD
Hello,
I am trying to use the AD2 with MATLAB R2022b on an M1 Pro MacBook Pro with Mac OS 12.6
Using a library provided by my professor, I should get a confirmation, that the connection has been established. I, however get an error message.
The code I ran is as follows:
and it should return the device ID.
Both the AD2Init() function as well as the error message in the command window are attached.
Thank you in advance for any help.
Error message.pdf AD2Init.m
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now