I am barely getting started with simulink . I am trying to invoke one Subsystem from another using Enable signal . Both the subsystems have state flow and one of the subsystem should start when the enabled signal is true . I know I can add an enabled subsystem but how do I set this signal in stateflow . Because this signal will be input and I cannot assign a value to subsystem .
Note : Subsystem1 activates Subsystem2 from the simulink stateflow
Thanks
I am barely getting started with simulink . I am trying to invoke one Subsystem from another using Enable signal . Both the subsystems have state flow and one of the subsystem should start when the enabled signal is true . I know I can add an enabled subsystem but how do I set this signal in stateflow . Because this signal will be input and I cannot assign a value to subsystem .
Note : Subsystem1 activates Subsystem2 from the simulink stateflow
Thanks
If I understood correctly, then you have to ..
Define an output in your statemachine of subsystem1, e.g. enaSub2
Set the value of enaSub2
true when conditions are fulfilled in stateflow of subsystem1 (e.g. by state action, see documentation here)
connect the output signal enaSub2
to the enabling port of subsystem2
Perhaps you consider to read some basic tutorials regarding matlab / simulink / stateflow. Good luck