How can I run a Lego Mindstorms robot without the Simulink model option "Run on target hardware"?
2 ビュー (過去 30 日間)
古いコメントを表示
Hello everybody, due to my laboratory at a university I have to program a Lego® Mindstorms® robot with MATLAB/Simulink since yesterday. I did what the tutorial said, but the robot didn't move or made a sound. That wasn't a real problem because I'm an absolute greenhorn in terms of MATLAB/Simulink and and I have much time left for that task. But since today the important option "Run on target hardware" which should be located under "Tools" in a Simulink model is missing. I used the same version of MATLAB (R2012a) as yesterday so I cannot imagine what I have done wrong that an option is disappearing. So my question is if there is a way to get the robot started without that option or if I can fetch it back somehow. Thanks in advance for all answers.
Greetings from Germany Nadine Gallert
0 件のコメント
回答 (2 件)
Ryan G
2012 年 7 月 5 日
If you already have installed the Lego kit you could try:
Go to Simulation -> Configuration Parameters
Click the Code Generation tab and set the System target file to realtime.tlc
The Run on Target Hardware option should appear on the left hand side, click this.
Set this to Lego
Apply Changes
Set Simulation mode to external and try to build and run.
Although I would think there is something bigger going on if this option disappeared entirely, this might workaround that issue.
2 件のコメント
Ryan G
2012 年 7 月 5 日
You can try using:
restoredefaultpath
rehash toolboxcache
and see if it comes back. It's weird you have code generation in 2011a and not 2012a, sounds like a path issue or install issue on that particular version.
Kaustubha Govind
2012 年 7 月 5 日
Do you still see an option until Tools that says "Install/Update Package" or something to that effect? I've had the "Run on target" disappear before, when something changed in my MATLAB installation, and running targetinstaller again fixed the issue for me.
2 件のコメント
Kaustubha Govind
2012 年 7 月 6 日
Okay, I'm guessing something got corrupted in your installation. If Ryan's suggestion doesn't help, you could either try re-installing MATLAB or call MathWorks Tech Support to see if this is a known issue.
参考
カテゴリ
Help Center および File Exchange で MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!