What 'Signal name must resolve to Simulink object' checkbox actually does, and when to use it?
65 次查看(过去 30 天)
显示 更早的评论
I am almost new in Simulink world, and I would like to know when to check this option, and what it does, how it is related to data dictionary?
Thank you.
0 个评论
采纳的回答
Sebastian Castro
2018-8-24
编辑:Sebastian Castro
2018-8-24
Normally, the input/output data to a MATLAB Function block, Stateflow chart, etc. has all these properties you can define. For example, data type, sample time, dimensions, etc.
One way to define these properties is by modifying the Simulink model file itself... but what if you want to reuse the block for different properties, or keep the definition of these properties separate from the model file?
Instead, you have the option of creating an variable in MATLAB of type Simulink.Signal. When you do this, this variable exists separately from the model so you can change your data properties without modifying the model file.
For more information, check out the following pages:
Introduction to Simulink.Signal objects: https://www.mathworks.com/help/simulink/ug/sim-signal-property-dialog-box.html
How to enable this option (it's a Stateflow example, but works the same with MATLAB Function block): https://www.mathworks.com/help/stateflow/ug/resolving-data-properties-from-simulink-signal-objects.html
Hope this helps.
- Sebastian
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!