I'm new to StateFlow and have been looking at StateFlow tutorials but have not seen one that processes vectors.
My simulink model generates vectors of audio data for which I would like to process with a state machine. For example, if the audio data goes over a certain value, state1 is to be entered, then if it goes below another value, state2 is to be entered.
If I use the unbuffer block to send the data to the StateFlow block, the system runs very slowly.
So, how can I get StateFlow to run thru a vector input, processing each element in the vector?
Edit: I've attached a pic of my chart. Here I am trying to access the i'th element of the input, but I don't know how to declare the variable i and how to increment it to process the vector.