Problem with simulink waitbar
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I tried to simulate the simulink waitbar model:
I get this error:
How do I run the simulink-waitbar?
0 个评论
回答(2 个)
Walter Roberson
2017-9-28
Embedded packages do not support MATLAB graphics. Most of them support graphics only through blocks that are specific to the target. For example for Raspberry Pi, the only supported graphics is through a block that can only present images, so all output has to be "drawn" into an image to be displayed to the user.
2 个评论
Walter Roberson
2017-9-29
Which MATLAB version are you using? "Embedded MATLAB Function block" (in your diagram) was renamed to "MATLAB Function Block" as of R2011a.
(Embedded) MATLAB Function Blocks run in interpreted mode when Acceleration mode is 'Normal', but for all other acceleration modes, some degree of optimization is done. If the Acceleration mode is 'Accelerator' it is possible to call upon interpreted MATLAB functions but only if you code specially. For all of the other Acceleration modes, only the functions supported for Code Generation are supported.
You should really only be using an Embedded MATLAB Function Block for code that you intend to eventually run on an external ("embedded") device -- a device that might not even have an operating system or any graphics capabilities.
I would suggest that your "waitbar" would be better served by using a Scope block on a signal that indicates the fraction done.
Samah EL QASSAH
2017-10-3
1 个评论
Walter Roberson
2017-10-3
编辑:Walter Roberson
2017-10-3
If you are deploying to hardware then you cannot use that FEX submission. That submission is only for use with fully simulating everything on the host in "Normal" accelerator mode.
I recommend that you ignore that FEX submission and change to using a scope block on a signal that you create that indicates how far along you are.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!