Calling a cyclic function in App Designer
显示 更早的评论
How can I have a function called cyclically in App Designer?
I am creating a project that uses set_param to send a value to Similink from and get_param to get a value from Simulink back into App Designer.
For set_param the triggered events with a switch, knob or slider work great. I would like to diaplay model results real-time to the App Designer UI. Is it possible to have a function called cyclically within App Designer?
2 个评论
Doug Rilee
2018-12-5
编辑:Doug Rilee
2018-12-5
Kevin Chng
2018-12-6
great to know this solution. Your colleague is awesome. In the past, i might create a while loop for it.
回答(1 个)
Greg
2018-12-6
1 个投票
I can't give you actual code examples (every situation is different). But, a probable better approach than the timer in AppDesigner would be pass the appropriate handle into the Simulink model. Then, have the model update whatever graphics object you want in each iteration of the simulation.
类别
在 帮助中心 和 File Exchange 中查找有关 Multicore Processor Targets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!