Can't set data type to string in a Stateflow chart

2 ビュー (過去 30 日間)
Olivier NEYRET
Olivier NEYRET 2021 年 4 月 22 日
回答済み: Ntiana Sakioti 2021 年 7 月 1 日
Hello, I am working on a Stateflow project and I want to use a string datatype on a variable. I saw that the chart had to have its action language to C but even with this I can't set the datatype of my variable to string.
  11 件のコメント
Jonas
Jonas 2021 年 4 月 27 日
I do not know how Simulink determines to show the 'string' option in the list or not. I would suggest creating a Service Ticket for this.
Ntiana Sakioti
Ntiana Sakioti 2021 年 7 月 1 日
What version are you using?

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

回答 (1 件)

Ntiana Sakioti
Ntiana Sakioti 2021 年 7 月 1 日
Hi Olivier,
If I understand correctly you are trying to create a "string" variable in a Stateflow chart in R2016b. Please note that Stateflow did not support string datatypes until R2018bd. If you are able to I would suggest updating to a newer release in order to utilize this functionality.

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by