Stateflow String Output - cannot assign string type to variable
Ältere Kommentare anzeigen
I am trying to output a simple string from the stateflow. I did try changing the type of y in 'Model Explorer', but 'string' was not an option.


1 Kommentar
Katarina Vuckovic
am 30 Apr. 2020
Antworten (1)
Chidvi Modala
am 9 Jun. 2020
Characters are not valid Simulink signal types - only numeric, fixed-point, enumerated and bus types (with elements of supported type) are supported. See Data Types supported by Simulink. You can refer to Type Cast Operations section in this page
MATLAB is the default action language syntax for new Stateflow charts. String data is not supported with MATLAB as the Action Language. To create a chart that uses C as the action language, execute the following
sfnew -c
Kategorien
Mehr zu Stateflow Charts finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!