Dear,
For a “”Width”” and “”Period”” control of a square wave during the simulation, I suggest you to build your own control block.
For that, you can use the “”f(u)”” block that EMTP has in the “”Control”” library.
For a square wave, there are some parameters that need attention when using the signal generator.
The signal will have the following values:
Amplitude + Bias if 0 < t - tshift < Width
Bias if else
You can repeat that every Period (T).
You can easily adapt the duty cycle to you needs.
Please, see below an example.
Example
You can observe that the duty cycle can be managed according to your needs.
In the example above, the signal will have the amplitude 1 for 10 ms during a period of 25 ms. Then, the duty cycle will be 40% (0.4).