I designed a state-machine with evens and transitions in Simulink (Matlab). All i did was gave some timer events and made it jump from one state to other. It works perfectly fine. Now the question is where can I see the C code that corresponds to state machine? Where are these files stored?
To view the automatically generated C-code, you require the Simulink Coder product. Find more information on this topic at the Stateflow product page here:
hope that helps, Siddharth