Can I find where a Simulink.Signal object is stored based on a Data Store Read/Write in the model?
조회 수: 2 (최근 30일)
이전 댓글 표시
Simulink.Signal objects can be stored in the base workspace, model workspace, and/or a data dictionary. If I have a Data Store Read or Write that refers to a Simulink.Signal object (i.e., a "global" data store), is it possible to determine which one it is using? Can I do this programmatically? Using the get_param function on the data store read/write does not show any useful parameters that could associate a data store to its definition.
댓글 수: 0
채택된 답변
TAB
2018년 9월 28일
편집: TAB
2018년 9월 28일
If Simulink.Signal object name is "x"
>> varInfo = Simulink.findVars('MyModel','Name','x')
varInfo =
VariableUsage with properties:
Name: 'x'
Source: 'base workspace'
SourceType: 'base workspace'
Users: {[1x26 char]}
댓글 수: 3
TAB
2018년 10월 1일
get_param('MyModel/Data Store Memory', 'OutDataTypeStr') get_param('MyModel/Data Store Memory', 'Dimensions')
추가 답변 (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!