applying delay to real-time process

1 次查看(过去 30 天)
I'm receiving an eog data from a device and I'm processing it real-time, but I want the code to process with 1 sec delay. when I write pause(1) in loop code, both data receiving and processing will have delay. how I can apply it only to process?
any help would be appreciated.

回答(1 个)

Yazan
Yazan 2021-7-4
You can use a timer object. See details here and here.
  1 个评论
Mahsa Rm
Mahsa Rm 2021-7-4
编辑:Mahsa Rm 2021-7-4
@Yazan but here it says I can't use it for real-time appplications.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Simulink Real-Time 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by