- Open the dialog box for an Output block in a conditional subsystem.
- From the “Source of initial output value” drop-down list, select “Dialog”.
- In the “Initial output” box, enter the initial value.
Disabling an Enabled Subsystem
39 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
John
am 19 Nov. 2024 um 6:28
Beantwortet: Raghava S N
am 19 Nov. 2024 um 7:25
Hi there,
I have a simple enabled subsystem as below. I expected that the enabled subsystem should not be run but the value of 10 indicates that it was run. Can anyone help with an explanation?
Thanks,
0 Kommentare
Akzeptierte Antwort
Raghava S N
am 19 Nov. 2024 um 7:25
As I understand, you are looking to find an explanation for why an enabled subsystem is showing an output despite being disabled all the time.
The explanation for this can be found in the documentation titled “Conditional Subsystem Initial Output Values”. To access this, execute the following command in the MATLAB command window-
web(fullfile(docroot, 'simulink/ug/specify-or-inherit-conditional-subsystem-initial-values.html'))
Specifically, the enabled subsystem in your model outputs the value “10” because the “Outport” block uses the default initial value of the output data type when an input signal is not provided to the enabled subsystem.
To specify initial output values:
Hope this helps!
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Subsystems finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!