What could be the problem, and possibly solution, with the 'Deploy Hardware' option in the NXT Lego Mainstorm Simulink Toolbox in OS El Capitan ?

1 Ansicht (letzte 30 Tage)
For the past 2 days I have been trying to use Simulink to program a Lego Mindstorm. I have follow every step of site's simplest example for this toolbox (Simulink Support Package for LEGO Mindstorm NXT Hardware http://www.mathworks.com/help/supportpkg/legomindstormsnxt/examples/getting-started-with-lego-mindstorms-nxt-hardware.html?prodcode=SL ).I have downloaded the package, I have opened the pre-configured model in simulink, and I opened the configuration parameter preferences(one of the steps). However, when I try to follow the last step ,which simply is deploying the hardware, an error pops up.
Code Generation
Elapsed: 28 sec
The call to realtime_make_rtw_hook, during the after_make hook generated the following error:
Connecting to LEGO MINDSTORMS NXT hardware failed. Check that: 1. LEGO MINDSTORMS NXT hardware is powered on. 2. USB connection to the LEGO MINDSTORMS NXT hardware is working. 3. LEGO MINDSTORMS NXT hardware is not running an application.
The build process will terminate as a result.
Caused by:
Connecting to LEGO MINDSTORMS NXT hardware failed. Check that: 1. LEGO MINDSTORMS NXT hardware is powered on. 2. USB connection to the LEGO MINDSTORMS NXT hardware is working. 3. LEGO MINDSTORMS NXT hardware is not running an application.
Component: Simulink | Category: Model error
I have checked every option for the source of the error that the Diagnostic Viewer suggest. I have tried with two different cables, I have charger and recharge the batteries of the NXT brick, and I'm definitely not running another file in the brick while I am uploading the file. Moreover, I tried to upload a file with the Lego Mindstorm original Software. At the begging the software crashed, but after some research in the internet I got it going and got a file uploaded to the brick. So the problem must be between the brick and Matlab.
I am currently using Matlab 8.6.0 (R2015b), Simulink 8.6.0 (R2015b), the lates version of the toolbox, and OS X El Capitan (which makes everything harder).
Thank you in advance.

Antworten (1)

Vidya Viswanathan
Vidya Viswanathan am 29 Mär. 2016
Hi Emilio,
I believe you downloaded the support package for Lego Mindstorms NTX from the following link:
From my understanding, this installs the latest firmware version for Lego and the possible cause for the error could be the unsupported driver version. The driver version that is supported is 1.19.768. You could try the following to install the supported version of the driver and check if the issue you are facing is resolved:
1. In the Add/Remove Programs list, locate and uninstall 'LEGO MINDSTORMS NXT Driver for x64'
2. Install the previous version of the driver that is available at the following link:
3. Verify the version of the installed support package using the following command
>> matlabshared.supportpkg.getInstalled
If this does not resolve the issue you are facing, you could contact MathWorks Technical Support at support@mathworks.com.
Regards,
Vidya

Kategorien

Mehr zu LEGO MINDSTORMS EV3 Hardware finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by