Have no values shown in scope. What may be the problem?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi Matlab community,
I am currently using Simulink to run an arduino system. I wanted to test encoder output (it varies from 0 to 2.6 V). So I attached it onto an analog input pin and hope to have it run onto a simulink scope (very simple build, one Arduino Analog input block connected to one normal scope block). However, when I click deploy to hardware button it said that it doesn't allow variable step (so I change the type to fixed step). When I tried deploying it to arduino again the scope displays absolutely nothing (empty plot). Any suggestions as to the reason? Is there some extra settings I have to input for live scope readings from an arduino? Thanks!
Additional Note* The hardware is connected since I've ran some arduino models with simulink before (I just have not gotten arduino inputs to work with scope).
0 件のコメント
採用された回答
Madhu Govindarajan
2015 年 11 月 2 日
Can you provide more details like what type of Arduino you are using and what version of MATLAB you are using?
Have you tried reading the encoder using digital input pins? because they are doing it using the Digital pins in this example - http://www.mathworks.com/help/releases/R2015a/supportpkg/arduino/examples/drive-with-pid-control.html
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Modeling についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!