MATLAB: NXT MINDSTORM Toolbox: The “fantom” library could not be loaded. Mac OS X 10.12

driverlegoMATLABmindstormnxt

MacOS 10.12 is Sierra, which started ignoring DYLD_LIBRARY_PATH . If the instructions said anything about DYLD_LIBRARY_PATH then there is a risk that you installed properly but that for security reasons MacOS is refusing to listen when you tell it where the library is.

Best Answer

Hi Rachanon,
Connection to LEGO MINDSTORMS NXT can be achieved from MATLAB by using the third-party toolbox RWTH - Mindstorms NXT Toolbox. However, this is a third-party toolbox and we at MathWorks do not have access to the source code. As such, unfortunately, we cannot give you assistance on this issue. Posting your question on this forum is definitely a good idea to have answers, feedback, and comments from other MATLAB users, as Walter's prompt reply demonstrated. In the case you cannot find the answer that you are looking for in this forum, I suggest you ask directly to the developers of the toolbox. You can find them on the website linked below:
Please note that the latest stable version of the toolbox dates February 2012. As such, the issue that you are facing might be due to the newer version of the Operating System and/or the newer version of MATLAB, for which the toolbox has not being tested by the developers in RWTH Aachen.
If instead you want to use the Simulink Support Package for LEGO Mindstorms NXT Hardware, please be aware that such support package is supported on MATLAB up to the R2016b release. You can find a list of the Hardware Support Package System Requirements on the following link:
We recommend migrating to LEGO MINDSTORMS EV3 hardware and use LEGO MINDSTORMS EV3 Support from MATLAB instead, which is available for download for all platforms since MATLAB R2014b:
You might find the following MATLAB Answers post helpful:
If you are interested in purchasing a MATLAB license, you can get in touch with one of our sales representatives by following the link below:
I hope this information helps you.
Kind regards,
Alessandro
Related Question