필터 지우기
필터 지우기

Realtime feedback of Simulink signals in command line

조회 수: 1 (최근 30일)
Ali Asghar Pourostad
Ali Asghar Pourostad 2019년 12월 13일
댓글: 鋆宇 魏 2021년 3월 18일
Hey There!
I run a simulink model in Simulink Desktop Real-time in external mode and I want to show feedback of some signals to user real time and without any delay.
I use logging signals to store signals to base workspace but it has delays about 0.5 second to refresh signal data.
I know that In normal mode, exact value of a block is accessable with this function. https://www.mathworks.com/help/simulink/ug/accessing-block-data-during-simulation.html
rto = get_param(gcb,'RuntimeObject')
rto.OutputPort(1).Data
but in external mode the returned value is 0
How can access a block data or a signal without any delay from command line?
Thanks

답변 (1개)

Roadrunner Development
Roadrunner Development 2020년 11월 20일
I had the same problem and could solve it with this answer.
  댓글 수: 1
鋆宇 魏
鋆宇 魏 2021년 3월 18일
hi there, I am now using roadrunner, can you add my wechat 939490967, or contact me on tylorwang@bupt.edu.cn, to have a chat?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by