Can we modify Simulink.Signal properties?

조회 수: 3 (최근 30일)
Vivek
Vivek 2015년 12월 31일
댓글: Vivek 2016년 1월 4일
Can we add/remove a property in Simulink.Signal?
Example: By default it contains below fields
'CoderInfo'
'Description'
'DataType'
'Min'
'Max'
'DocUnits'
'Dimensions'
'DimensionsMode'
'Complexity'
'SampleTime'
'SamplingMode'
'InitialValue'
'LoggingInfo'
I want to add one more field/property "IsRequiredForAutomation" and its value will be true/false
Can I do that?

채택된 답변

Sebastian Castro
Sebastian Castro 2015년 12월 31일
You can create your own class that inherits from Simulink.Signal and adds any additional properties/methods you might need.
The following documentation example shows how you can do this.
- Sebastian

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Attributes and Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by