필터 지우기
필터 지우기

How to stop/delay execution for specified time in matlab function block in simulink

조회 수: 2 (최근 30일)
How to stop/delay execution for specified time in matlab function block in simulink

답변 (3개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 4월 3일

Nirav Joshi
Nirav Joshi 2017년 9월 27일
I also have the same question. I tried to use pause() command in SIMULINK's MATLAB Function block but it came up with an error message that Pause() is only supported in MATLAB Environment while generating embedded code. so please let me know if anyone finds solution or workaround for it.

KORKMAZ
KORKMAZ 2017년 12월 15일
I have same problem. I want to delay my code in Simulink 'MATLAB Function' like Arduino delay code. But I can't do that.
  댓글 수: 1
Madhu Govindarajan
Madhu Govindarajan 2017년 12월 18일
Would changing the sample time help address the issue for you? Because when I was building a block to bring in data from an Ultrasonic sensor all I did was to slow the sampling time appropriately instead of using the delay and it worked perfectly fine.
Maybe posting more context and asking it as a separate question might help get the accurate answer.

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

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by