Simulink & Arduino: Transmit Serial strings

4 visualizaciones (últimos 30 días)
Daniel Gelman
Daniel Gelman el 24 de Ag. de 2020
Comentada: Christoph Spiess el 10 de Ag. de 2022
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?

Respuestas (1)

Urmila Rajpurohith
Urmila Rajpurohith el 27 de Ag. de 2020
you can refer to the below link which answers "How to implement serial communication between Simulink and Arduino" :
  1 comentario
Christoph Spiess
Christoph Spiess el 10 de Ag. de 2022
The example doesn't use the same blockset like shown in the question.
I'm currently struggling with the same problem:
how can I generate a sentence with a start-character, checksum, and end-character without using a string or char array?

Iniciar sesión para comentar.

Categorías

Más información sobre Arduino Hardware en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by