Passing Strings as StateFlow Graphical Functions' parameters
Mostrar comentarios más antiguos
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
Respuestas (1)
Teresa Hubscher-Younger
el 6 de Abr. de 2026 a las 19:59
0 votos
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
Categorías
Más información sobre Decision Logic en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!