Bus exchange between Stateflow and Simulink

1 visualización (últimos 30 días)
Thomas LE DIOURON
Thomas LE DIOURON el 8 de Abr. de 2014
Respondida: Muthukumar Ganesan el 31 de Jul. de 2022
Dears Matlab/Simulink users,
I would like to use Simulink buses as input and output of Stateflow. However, I can't find a good tutorial or help to share the bus definition between Simulink and Stateflow.
For example, in stateflow, I have a signal my_bus.a. Where do I have to declare the bus to retrieve the elements in Simulink?
Thnaks for your support.

Respuestas (1)

Muthukumar Ganesan
Muthukumar Ganesan el 31 de Jul. de 2022
Hi,
You can define the Bus datatype in your data dictionary to be precise you can define it in your workspace. The defined datatype can be used throughout simulink and stateflow models.
https://in.mathworks.com/help/stateflow/ug/about-stateflow-structures.html
Thanks.

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by