Code to obtain origin and destinations of unions on Simulink
Afficher commentaires plus anciens
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
Réponses (1)
Kaustubha Govind
le 1 Juil 2013
Modifié(e) : Kaustubha Govind
le 1 Juil 2013
0 votes
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.
Catégories
En savoir plus sur Simulink dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!