How do I offset the start of the Function Call Generator block so that it first triggers its subsystem at something other than time instant '0' in Simulink 7.9 (R2012a) ?

2 views (last 30 days)
I would like to start the Function-Call Subsystem at something other than 0. i.e.the subsytem should execute via a function call generator at
t = [1, 2, 3, 4, ...]
Instead of
t = [0, 1, 2, 3, ...]

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Apr 2012
The ability to set an arbitrary initial offset for the Function-Call Generator Block is not available in Simulink.
As a workaround you can use an 'If Action Subsystem' block in the model (see custTest.mdl attached). The model can work as explained below:
1. The 'If Action Subsystem' block is triggered by an 'If' block which has a Pulse Generator as the input.
2. The pulse generator can be set to have whatever phase delay and period you would like.
3. In the 'If Action Subsystem' block, you can use a clock block as an input to any function block you would like to use.

More Answers (0)

Categories

Find more on Schedule Model Components in Help Center and File Exchange

Tags

Products


Release

R2011a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!