フィルターのクリア

Arduino Engineering Kit - Scope does not show actual encoder position and speed

1 回表示 (過去 30 日間)
Gabriele Boccacci
Gabriele Boccacci 2020 年 7 月 20 日
コメント済み: Leung Marco 2020 年 12 月 29 日
When tryng to follow the tutorial of section 2.3, the scope connected to the encoder block shows a constant value of zero, while in the tutorial it is shown a descending sine function. I am using Matlab r2020a and Simulink 10.1, because the r2019a, that came with the kit, has different issues on MacOS Catalina. I'm running it in normal mode.

回答 (1 件)

Arun Kumar
Arun Kumar 2020 年 7 月 23 日
Hi Gabriele,
Encoder blocks are not supported for Normal mode simulation. In the documentation of the block it is mentioned:
"If you simulate a model that contains the Encoder block without connecting the hardware, the block outputs zeroes"
Try running the model in external mode.
HTH!
Thanks,
Arun
  2 件のコメント
Narcis
Narcis 2020 年 8 月 29 日
Hi Arun,
I'm having the same problem and using the same versions of Matlab. I've tried to run the model following the instructions in "Block Produces Zeros or Does Nothing in Simulation":
To use External mode, in the Hardware Implementation pane of the Configuration Parameters dialog box, select your hardware board from the drop-down list. Then expand Target hardware resources, and under Groups select External mode. Then click Run.
It isn't working.
Also, when following the instructions of the Engineering Kit, I guess if
"In the model window, change the simulation stop time to Inf so that it will run indefinitely. Set the simulation mode to External, using the drop-down menu to the right of the stop time:"
is outdated, because I can set the stop time to Inf but to the right I can only scroll down "Normal", "Accelerator" and "Rapid Accelerator". So when you advise to run the model in external mode, I don't see if I miss something.
Thanks in advance,
Narcis Gascons
Leung Marco
Leung Marco 2020 年 12 月 29 日
Hi Arun,
I am facing the same problem as what the above people mentioned. There's not an option "External" availble next to "stop time" for version 2020a.
Please let us know how to solve this problem. Thanks very much!
Marco

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by