MATLAB Answers

Simulink & Arduino: Transmit Serial strings

11 views (last 30 days)
Daniel Gelman
Daniel Gelman on 24 Aug 2020
Answered: Urmila Rajpurohith on 27 Aug 2020
I am trying to transmit serial data out of an Arduino in Simulink, see model below.
I am getting prompted with
The 'MATLABSystem' block cannot accept a signal of type string. A signal of type string is connected to 'Input Port 1' of block 'simulink_arduino_comm_test/Serial Transmit1'.
An error occurred while propagating data type 'string' from 'simulink_arduino_comm_test/To String1', output port 1.
Can I not transmit serial data?
If not, how can I generate a sentence with a start-character, checksum, and end-character without using a string or char array?

Answers (1)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!