I want to apply a time delay to a signal which is created from a pulse generator.
Pulse generator : T = 4e-05. I am using a powergui with discrete time and Sample time: 4e-07.
In order to succeed this i used the "Discrete variable time delay" block with sample time 4e-07 and the result is :
The first one is the original signal and the second one is the signal with the delay. As you can see there is problem in the seconde signal. One way to sovle this problem is to increase the Sample time but this with make my simulation very slow.
Do you have any suggestions ?
P.S. The delay time is an external signal with a variable value so I can not use the delay at the Pulse generator .
Thanks in advance.