Why does the runtime API in Simulink output a empty signal at the output of an atomic subsystem in Simulink version 6.4(R2006a)?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have an atomic subsystem called 'MYSUB' in my simulink model 'MYMODEL' and I execute the following code on the MATLAB command prompt.
rto = get_param('MYMODEL\MYSUB', 'runtimeobject') % gcb is an atomic subsystem
op = rto.OutputPort(1);
mydata=op.data;
The output port data 'mydata' is empty although a valid signal is propagated to the output port.
채택된 답변
MathWorks Support Team
2009년 6월 27일
This enhancement has been incorporated in Release 2009a (R2009a). For previous product releases, read below for any possible workarounds:
For previous releases, as a workaround, one can connect another block, e.g. an outport block to the output of the subsystem and use the RunTimeObject of that block.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Iterator Subsystems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!