Code to obtain origin and destinations of unions on Simulink
4 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Kaustubha Govind
on 1 Jul 2013
Edited: Kaustubha Govind
on 1 Jul 2013
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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!