Arduino Simulink Serial Communication
조회 수: 6(최근 30일)
표시 이전 댓글
semih ucari 2016년 3월 1일
댓글: JUN-RONG CHEN 2020년 4월 8일
I am using the models above. I am transmitting constant 100 to arduino, but I cannot read 100 on the receive scopes. I uploaded them separately and I also uploaded them in the same model. I couldn't read 100 in both ways. What could be wrong?
댓글 수: 1
Qasim Alazze 2016년 11월 5일
hello : Have you gotten answer to your question or solved it??? if you did please help i have same problem ???
Venkatachala Sarma 2016년 3월 8일
To the top right of the 'Serial Transmit' and 'Serial Receive' blocks, it says 'ARDUINO'. This means that these blocks execute only inside ARDUINO hardware. You will not be able to use scopes to see the value sent or received by ARDUINO's serial port.
If you would like to transmit '100' serially to any hardware, you have to use 'Serial Configuration' and 'Serial Send' blocks in 'Instrument Control Toolbox'. Also to receive data serially from any hardware, use 'Serial Receive' in the same toolbox.
Hope this helps.
댓글 수: 4
JUN-RONG CHEN 2020년 4월 8일
Please send me a sample of this if possible. thank you
Find more on Simulink Support Package for Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!