What could be the problem, and possibly solution, with the 'Deploy Hardware' option in the NXT Lego Mainstorm Simulink Toolbox in OS El Capitan ?
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
Vidya Viswanathan
2016년 3월 29일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 LEGO MINDSTORMS EV3 Hardware에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!