How to use pause in m file

조회 수: 2 (최근 30일)
hui wang
hui wang 2017년 2월 7일
댓글: Walter Roberson 2017년 2월 8일
How to resolve pause(0.4)can not be supported for Implicit evaluation not support? My matlab is Matlab 7.11.1 R2010b.
Warning information is : Function 'pause' implicitly resolved in the MATLAB workspace. Implicit evaluation in MATLAB is not supported. Please declare this function extrinsic using eml.extrinsic('pause'), or call it using feval. Picture and m file is attached below.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 2월 7일
편집: Stephen23 2017년 2월 7일
  댓글 수: 2
hui wang
hui wang 2017년 2월 8일
Hello, Thank you for your answer in last question(pause is not supported in embedded matlab function in your feedback ) Is there command to realize "pause" in Matlab2010b ? There is no interpreted matlab function in Matlab2010b. How to realize time delay in embedded matlab function in Matlab2010b
Walter Roberson
Walter Roberson 2017년 2월 8일
You can use a Level 2 S function.
However you need to ask whether the delay is to be during the simulation at the MATLAB /Simulink level, or if the delay is to go into the generated code to be executed on the target device. Embedded devices do not always have timers and there is no standard way to access real-time timers. Software timing by busy-looping depends on the compiler optimization unless you drop in some machine code. And you have to decide what should happen if interrupts or i/o come in during the wait.

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

Community Treasure Hunt

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

Start Hunting!

Translated by