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

Sampling and calculation

Sampling and calculation

Hello guys,

I am trying to implement digital control which employ variable pulse generation. I need to sample the current signal in the middle of pules (variable pulse). After this sampling I need to execute the calculation of new pulse width where this pulse is valid in the next sampling period.
Any help idea how to do it under modelica?

Best regards,
Peter

P.S. I can establish regular sample interval with "sample" command then how to trigger within this sampling period, moreover I would need to have independent timer synchronized with this sample interval (every interval to reset the timer to 0).

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