Passing Strings as StateFlow Graphical Functions' parameters
Show older comments
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
Answers (1)
Teresa Hubscher-Younger
5 minutes ago
0 votes
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
Categories
Find more on Decision Logic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!