How can I read Arduino pins with pre-existing code

1 回表示 (過去 30 日間)
mehrdad n
mehrdad n 2021 年 2 月 6 日
回答済み: Arun Kumar 2021 年 3 月 22 日
Hi.
I have an Arduino board. on this board, there is a code that changes some pins of the board. for instance, the output of pin 11 changes from 0 to 1 or 1 to 0 as time goes by. I want to read the value of pin 11 in Simulink without interfering with the running code on board.
Is this possible? How can I do it?
thanks

回答 (1 件)

Arun Kumar
Arun Kumar 2021 年 3 月 22 日
Hi Mehrdad,
This kind of workflow is not supported.
As an alternative, you can connect a second board programmed using simulink to read the input pin and connect the two boards by using jumper cables.
Hope this helps.
Thanks,
Arun

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by