Arduino Simulink Serial Communication

2 views (last 30 days)
semih ucari
semih ucari on 1 Mar 2016
Commented: JUN-RONG CHEN on 8 Apr 2020
<<
>>
Hi ;
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?
Thank you.
  1 Comment
Qasim Alazze
Qasim Alazze on 5 Nov 2016
hello : Have you gotten answer to your question or solved it??? if you did please help i have same problem ???

Sign in to comment.

Answers (1)

Venkatachala Sarma
Venkatachala Sarma on 8 Mar 2016
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 Comments
Sasan Karimi
Sasan Karimi on 8 Mar 2019
Edited: Sasan Karimi on 8 Mar 2019
hi
Please send me a sample of this if possible. thank you
my email:sasan.karimi32@gmail.com
JUN-RONG CHEN
JUN-RONG CHEN on 8 Apr 2020
hi
Please send me a sample of this if possible. thank you
my email:a0981305398@gmail.com

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!