How do we keep Simulink Signal definitions and Bus Element definitions in sync?
1 view (last 30 days)
Show older comments
We have the situation where we have data signals defined using Simulink Signal objects that we then communicate around a model using Simulink Buses.
The definition of the Signal includes the Data Type, Min and Max values and Units. This information then gets repeated in the bus element definition.
Is there a way of keeping the signal definition and the bus element definitions in sync without having to enter the information twice?
0 Comments
Answers (1)
Fangjun Jiang
on 1 Mar 2019
Use Simulink.Bus.createObject(model,blocks) to create the bus object once all signals are defined, instead of define the bus object?
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!