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
0 件のコメント
回答 (3 件)
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.
0 件のコメント
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
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 Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!