Hi everyone, I have several questions:
(1) Here is a code to create a delay with one sampling period from the PLECS manual:
Output function code: OutputSignal(0, 0) = DiscState(0);
Update function code: DiscState(0) = InputSignal(0, 0);
Now, I want to create a delay with "[b]n*Ts[/b]": Ts being the sampling period. How could I do that in PLECS C- script?
(2) There is a block “Pulse Delay” in the Library. However, the delay time needs to be input manually.
In my controller, the delay time should be from a PI controller. Is there any way to put the delay time from a controller to the “Pulse Delay” block?
Thanks in advance!