simulink - Enabling one Subsystem from another using enable signal - Stack Overflow

admin2025-04-22  3

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

Share Improve this question edited Mar 27 at 9:10 DarkBee 15.5k8 gold badges72 silver badges118 bronze badges asked Jan 21 at 22:52 pranathipranathi 3934 gold badges6 silver badges17 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

If I understood correctly, then you have to ..

  1. Define an output in your statemachine of subsystem1, e.g. enaSub2

  2. Set the value of enaSub2 true when conditions are fulfilled in stateflow of subsystem1 (e.g. by state action, see documentation here)

  3. connect the output signal enaSub2to the enabling port of subsystem2

Perhaps you consider to read some basic tutorials regarding matlab / simulink / stateflow. Good luck

转载请注明原文地址:http://www.anycun.com/QandA/1745283561a90539.html