필터 지우기
필터 지우기

how to retrieve the data from simulink during simulation

조회 수: 1 (최근 30일)
Babak
Babak 2017년 5월 26일
I have read many posts and comments on this regard but still, coudn't figure out How can have access to block data during simulation.I have followed this instruction but something is still wrong. Can anybody help me on this?
Here is my code: ( in this code I ma simply trying to get the Clock block data from simulation) load_system('Engine1') set_param('Engine1','SimulationCommand','Start'); block = 'Engine1/Clock'; rto = get_param(block, 'RuntimeObject'); time = rto.OutputPort(1).Data plot(time,'or','MarkerSize',5,'MarkerFaceColor','r')
The plot is just showing the last output equal to zero!!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Large-Scale Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by