Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Delay for pulse voltage

Delay for pulse voltage

Hello guys,

I have maybe simple question. I need to delay pulse signal. Unfortunately I am not able to connect components.

I use Modelica.Electrical.Analog.Sources.PulseVoltage and Modelica.Blocks.Nonlinear.FixedDelay - I am not able to connect them.

I need to generate pulses to my transistors which are shifted so I decided to use FixedDelay.
Is there better way to do a delay of pulsing voltage? How to do a mix between Blocks.Nonlinear and Electrical components?

Best regards,
Peter

Re: Delay for pulse voltage

"For now my solution is"

Modelica.Electrical.Analog.Ideal.IdealClosingSwitch Switch1
Modelica.Blocks.Nonlinear.FixedDelay                          Delay1
Modelica.Blocks.Sources.Pulse                                      Pulse1
Modelica.Blocks.Math.RealToBoolean                           Realtoboolean1

connect(Pulse1.y,Delay1.u)
connect(Delay1.y,Realtoboolean1.u)
connect(Realtoboolean1.y, Switch1.control)

I am not sure is perfect but it works...

Further I need to add digital control - another challenge

Best regards,
Peter

Re: Delay for pulse voltage

Well,

it seems to me the Modelica capabilities of built-in libraries are not ideal for advanced control algorithms and are not well suited for DSP control.

So I need to mimic advanced microcontroller behavior (Analog to digital converter, Advanced pulse width modulator, timers, etc...) and no capabilities of Modelica libraries reflect this.

Best regards,
Peter

There are 0 guests and 0 other users also viewing this topic