How to send an event with a MATLAB function (in Stateflow)
1 view (last 30 days)
Hey there, ...especially a warm welcome to all the Stateflow cracks,
I have a problem when implementing a functionality in Stateflow on two different ways: first one is implementing the whole functionality in Stateflow (with transition conditions, ...), second one is implementing it with a MATLAB function in Stateflow. ... whatever... what matters is how i can leave the states. I want to leave the states with an event.
With the "stateflow-method" I did it with adding a conditioned transition:
But how can I send this event when implementing it with a MATLAB function? I tryed to use a flag:
du: [myReslut, stopFlag]=myMATLABfunction(...);
if stopFlag == 1
But is this the only way? Are there nicer/ceaner ways to solve this problem?
Thanks for your suggestions!