How can I send a string to a simulink input block?

回答 (2 件)

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2018 年 3 月 31 日

1 投票

Now strings are supported in Simulink. You can use the string related blocks to do the string manupulation. Below is the list of string related blcoks:
I hope this will be helpful
Suneesh
Suneesh 2014 年 2 月 27 日

0 投票

1. Simulink signals can only be numbers. Strings are not supported.
2. If the need to send characters over serial RS-232 then the right thing to do is use the ASCII equivalent of the characters.

2 件のコメント

Gabriela
Gabriela 2014 年 2 月 27 日
thank you. Actualy I need to send Can frames. Im a beginner. It is not very clear for me how to do it.
Suneesh
Suneesh 2014 年 2 月 27 日
Here is an example for CAN communication in Simulink:
There are more available at:
Regardless, you cannot send a character on a Simulink signal line. Do accept the answers if they are helpful so that others may benefit by the same.

サインインしてコメントする。

カテゴリ

質問済み:

2014 年 2 月 26 日

回答済み:

2018 年 3 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by