Implementation of a 1D Look-up Table within a C-Script block

> my intention is for the C-script to implement an initial delay (which I have managed to do), following this delay I want it to pass on my reference waveform, repeating indefinitely at a given frequency (50 Hz) until the simulation time span is reached.

You can use a C-Script for this purpose, but it might be unnecessarily complicated. You can use regular PLECS library components such an integrator block with wrapping to implement your desired logic.

See the attached example. You can use a Signal Switch if you want the initial reference to be something besides the initial value of the table output.

You can replace the Step component with logic to detect that your steady-state conditions have been reached.

delayed_repeating_sequence.plecs (8.01 KB)