Passing Strings as StateFlow Graphical Functions' parameters
Ältere Kommentare anzeigen
Hi, I have developed a library of StateFlow Graphical Functions that act as wrappers for some C functions. In my C functions, I have to pass some String parameters but this is not allowed in StateFlow Graphical Functions. Is there a workaround for this?
PS: I also cannot use
ml.myStr='Say Something';
and then call:
mySFGF(ml.myStr);
Again, not allowed.
Thanks Ramtin
Antworten (1)
Teresa Hubscher-Younger
am 6 Apr. 2026 um 19:59
0 Stimmen
Have you tried passing it as a local string variable? (See https://www.mathworks.com/matlabcentral/answers/460237-stateflow-passing-strings-as-input-to-graphical-functions)
-Teresa
Kategorien
Mehr zu Simulink Functions 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!