Why does the explicit model concurrent execution partition ignores the 'TreatAsAtomicUnit' setting of a 'Function-Call subsystem' and requires it to be set as atomic again?
1 次查看(过去 30 天)
显示 更早的评论
I'm using the "Enable explicit model partitioning for concurrent behavior" option for a model configured for current execution with both non-virtual blocks (to be attached to a Periodic Trigger) and Function-Call subsystems (to be attached to an Aperiodic Trigger). However, when updating the block, the Diagnostic Viewer prompts me that "This model is configured for concurrent execution and has modeling constraints. Block 'MATLAB_Answers_Model/Aperiodic_Interrupt' of type 'function call subsystem' must be contained in a referenced model or atomic subsystem.", despite the fact that this aforementioned block is already an atomic subsystem. How to workaround this problem?
Reproduction Steps:
- Download and open the attachment file MATLAB_Answers_Model.slx, note that the model contains both periodic atomic subsystem and atomic aperiodic Function-Call subsystem:
- Verify that the "Aperiodic_Interrupt" Function-Call Subsystem is already atomic by typing the following command in the MATLAB command window. Notice that MATLAB replies 'on' to this command:
get_param('MATLAB_Answers_Model/Periodic_Trigger', 'TreatAsAtomicUnit')
- Press Ctrl+E to open the Configuration Parameters, go to Solver tab, and click "Configure Tasks..." to configure the model for concurrent execution:
- Notice that the model has both Periodic Trigger and Aperiodic Trigger that corresponds to the Simulink model above. Click "Refresh mapping table" button as shown in the screenshot:
- See the error message:
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multicore Processor Targets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!