Simulink waveform sensitivity problem with arduino

Hi community,
I got weird problem. I connected the Arduino due to the matlab simulink and run my system on it. I am taking some voltage and current measurements via arduino analog inputs and processing them to convert the data into voltage and current values. the problem starts here. voltage and current waveforms are not sensitive they are like squarewaves but not analog signal. I've attached the image of the waveform. What can be the problem? and how can i fix or smooth it?
Thank you.

 採用された回答

Görkem Say
Görkem Say 2022 年 9 月 5 日

0 投票

Okay guys i just solve the problem. It is because of the scope view settings. Solution is;
View>style>plot type make it line and it will be fixed.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeArduino Hardware についてさらに検索

製品

質問済み:

2022 年 9 月 5 日

回答済み:

2022 年 9 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by