Atomic Subsystem Execution Order Wrong in Matlab 2019b (though was correct in 2017)
1 view (last 30 days)
Show older comments
After we transitioned from Matlab 2017 to 2019b (and re-tested update 4) we see the Atomic Subsystem generated function is called too late, after the downstream block uses it's output which creates an execution order issue. We expected the Atomic subsystem code run before the code that it is connected to, not after. In 2017 this code was generated properly as we compared the .c file before and after.
Additional details:
- The Atomic Subblock is a constant subsystem (shown in pink) with a non-constant s-function: it appears to treat the whole block as constant even though the s-function has a side-effect that impacts the downstream block.
Testing results:
- The model was tested after saving in both 2017 and 2019b
- Verified working in 2017 version before we transitioned to 2019b
- Verified update 4 didn't fix the problem
- Workaround was to remove the Atomic Subsystem output that was passedthrough from the input.
Version R2019b (9.7.0.1190202), 64-bit, Aug. 21, 2019.
0 Comments
Answers (1)
Harsha Priya Daggubati
on 9 Apr 2020
Hi,
Did u try checking treat as atomic unit option. It is by default set off.
0 Comments
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!