Code to obtain origin and destinations of unions on Simulink
Mostrar comentarios más antiguos
Hi everyone,
I would like to have some code or function which allows me to have a matrix on Matlab where I can find the origins and destinatons of unions on a Simulink file.
For example, let's imagine we join a goto named 'speed' with a system which has an input called 'A'. Then, we join a goto called 'acceleration' to a different input of the same system (or it could be a different one) called 'b'.
I would like to have a matrix like:
Union=['speed' 'a'; 'acceleration' 'b']
Thank you very much for your help!
Regards,
Amadeu
Respuestas (1)
Kaustubha Govind
el 1 de Jul. de 2013
Editada: Kaustubha Govind
el 1 de Jul. de 2013
0 votos
Just to clarify - did you mean structure, and not union?
If structure, please see Virtual and Nonvirtual Buses. I think you need to be using a Nonvirtual bus signal to be able to pass the signal into a MATLAB Function block or to log it to the MATLAB workspace.
Categorías
Más información sobre Simulink en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!