I have a model where I am re-using library blocks (atomic reusable function.) I'd like to be able to define the parameters required for each library block using a bus object, so that I can data type the parameters with the bus object, so each function will have a bus object for its parameters. From what I can see the bus objects must be stored in the base workspace, as individual items. This results in me having a lot of bus objects in my base workspace, making it very messy. Is there a way I can store these with the model? Or is there a way I can structure these within the base workspace to organise it better?
MATLAB: Can I store a Bus object outside of the base workspace
bus objectslibrary
Related Question
- Generate a variable bus from within a mask in Simulink
- Does passing busses through a Switch block generate an error in Simulink 6.0 (R14)
- Can’t I see the bus object after using simulink.Bus.CreateObject
- Model block cannot be under a non-trivial mask since the model it references has grouped model arguments.
- How to create bus object within MATLAB discrete-event system, without having to load it in workspace
Best Answer