Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

Intrinsic one sample delay in triggered subsystem?

0 votes
16 views
Hello everyone, I just want to ask something about triggered subsystem.

I used this kind of system to simulate a board that works with discrete cycle time.

Let's suppose a simple empty triggered block..Single input, single output.

If I watch the signals, they are perfectly the same. How is it possible?

I try to explain... In every real board, there is always at least one sample delay. Therefore, the output should be shifted at least by one sample delay compared to input. Am I wrong?

How can I consider this delay? Just with a zero-holder or there is a specific subsystem to achieve this?

I hope to have made myself quite clear.

Thank you!
asked Mar 13 by nikilito (89 points)

1 Answer

0 votes
Hi,

computation time is not modelled intrinsically in PLECS. Any mathematical operation in a simulation step is instantanious, e.g. the output of a sine block becomes the sine of its input in the same simulation step.

A triggered subsystem behaves exactly the same - it may just not be executed in every simulation step.

If you want to model the delay introduced by real systems (e.g. a computation delay) you should use a delay block.

As an alternative (if the computational delay is very small compared to the trigger period) you could use a Pulse Delay block behind the triggered subsystem.

Kind regards,

Oliver Schwartz
answered 1 day ago by Oliver Schwartz (257 points)
edited 21 hours ago by Oliver Schwartz
...