MATLAB: Unkown error in stateflow simulink

simulinkstateflow

Hey all!!
I am trying to simulate railway traffic signal having 2 platforms. I am encountering an error which I am not able to understand.
Kindly someone please help me build this model. Please reply if you are not able to understand my symbols.

Best Answer

It looks like you are attempting to access P1 and P2 in multiple state machines. You have defined P1 and P2 as global variables in your statecharts. YOu need to add a global Data Store Memory in the Simulink model for P1 and P2 that the statecharts can access.
Thanks.
Mark.
Related Question