Delaying Signal Builder Start in Simulink
Show older comments
Hello,
I am new to Simulink and I am seeking guidance on how to initiate the Signal Builder in Simulink only when my toggle switch is set to 1, even while the simulation is in progress. Currently, I encounter an issue where the Signal Builder starts simultaneously with the simulation. That is, I want to control when the the Signal Builder starts even while the simulation is running.
Can I please have your advice on how to achieve this?
Thank you
Answers (1)
Fangjun Jiang
on 20 Oct 2023
0 votes
Try to put the Signal Builder block inside an Enabled Subsystem block.
6 Comments
Badr
on 20 Oct 2023
Fangjun Jiang
on 20 Oct 2023
I can't think of other ways. What type and how many signals? Does it have to be Signal Builder?
Badr
on 23 Oct 2023
Fangjun Jiang
on 23 Oct 2023
Moved: Fangjun Jiang
on 23 Oct 2023
This can be done through an 1-D lookup table. The trick is the input.
Use your Switch output to enable an Enabled SubSystem block. Inside, Connect Constant value 1 to an Integrator block and then to an 1-D Lookup Table block. You may neet to figure out how to reset the Integrator if you need to switch back and forth multiple times.
Badr
on 24 Oct 2023
Fangjun Jiang
on 24 Oct 2023
Integration of 1 is like the clock but it will only start when the subsystem is enabled.

Categories
Find more on Prepare Model Inputs and Outputs 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!