Code to obtain origin and destinations of unions on Simulink

Asked by amadeu about 14 hours ago
Latest activity Answered by Kaustubha Govind about 13 hours ago

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

amadeu

Products

1 Answer

Answer by Kaustubha Govind about 13 hours ago
Edited by Kaustubha Govind about 13 hours ago

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

Kaustubha Govind

Contact us