MATLAB: How to 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)

delayphasesimulink

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, ...]

Best Answer

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.