desktop real time appdesigner

2 次查看(过去 30 天)
ou
ou 2024-1-23
回答: ou 2024-1-24
I'm having an issue like this now, I can't update the data in real-time on axes on AppDesigner in desktop real time external mode? Can I use a timer to read the input and output data in real time and visualize it on AppDesigner?
  2 个评论
ou
ou 2024-1-23
could you give me a example? thank you very much!
Aquatris
Aquatris 2024-1-23
编辑:Aquatris 2024-1-23
What is real-time for you, 10 Hz, 100 Hz, 10 kHz? Did you check if it is actually feasible to read data in real-time in your app since the app requires some time to perform its operations.
As for the timer, you can use the timer functionality by adding these lines to the startUp function:
app.myTimer = timer("ExecutionMode","fixedRate",...
"Period",1,...
"Name","myAppTimer");
app.myTimer.TimerFcn = @(x,y)app.getMyDataMethod;

请先登录,再进行评论。

回答(1 个)

ou
ou 2024-1-24
I have built the real time platform desktop real time configured the capture card to capture the data in real time, the timer is also set in the app designer, but I can't get the analog input and analog output data in real time during the inf emulation time and display them on the UI in the app, thank you very much if you can help me!

类别

Help CenterFile Exchange 中查找有关 Development Computer Setup 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by