Why can't I disable the "Treat As Atomic Unit" box when creating a Triggered Subsystem within a Subsystem?
Show older comments
The entire box is just grayed out; I tried changing other parameters within that same Triggered Subsystem, but it just doesn't wanna un-gray itself. I'm working with MATLB 2019b version.
Answers (1)
Ishaan
on 18 Feb 2025
0 votes
I understand that you're encountering an issue with the "Treat as atomic unit" option being unavailable (greyed out) when creating a Triggered Subsystem. It seems that this behaviour is intentional as Triggered Subsystems are Synchronous Subsystems which forces atomicity.
When a trigger occurs, the entire subsystem must execute as a single block to ensure all internal operations are completed before control returns to the parent system. Allowing execution to go in and out of the triggered subsystem could compromise this integrity and potentially lead to unpredictable behaviour.
Categories
Find more on Schedule Model Components 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!