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.

채택된 답변

Sebastian Castro
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:
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개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2012b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by