- Define input ports with their respective data types set to bus object
- Bus objects need to be defined in the base MATLAB workspace and these objects need to be indicative of the buses which will be used
- https://www.mathworks.com/help/simulink/slref/simulink.bus.createobject.html
- Set the model to take simulation input from the base MATLAB workspace
- https://in.mathworks.com/help/simulink/import-data.html
- This must be performed with "Import" blocks as opposed to "From Workspace" blocks
- Please reference in the attached model the "Data Import/Export" configuration parameters for a more specific example
How Do I Feed "logsout" Data Back into a Subsequent Simulation Using Buses?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 2 Jul 2020
Edited: MathWorks Support Team
on 7 Oct 2020
How do I feed "logsout" data back into a subsequent simulation as an input using buses?
Accepted Answer
MathWorks Support Team
on 7 Oct 2020
Edited: MathWorks Support Team
on 7 Oct 2020
Please find attached a simple example model demonstrating how to feed "logsout" bus signals back into the model. In order to run the model, please first load the "data.mat" file that is attached as well.
In summary, the following needs to be done:
0 Comments
More Answers (0)
See Also
Categories
Find more on Load Signal Data for Simulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!