ask for help

Submitted by carrot_radish_luobo on Mon, 09/19/2022 - 12:16

How to realize frequency and period controllable and change at any time in the signal generation module?For example, when a square wave signal is output, the frequency will change with time, and naturally the period will also change, and the duty cycle will always remain 0.5. In the figure, the width changes with the control needs, and the period also changes.

signal generator

 

Mauro.Tonelli

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

Data

Waveform

 

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).

Wed, 10/05/2022 - 21:15 Permalink
X