# \#variable-delay

**URL:** https://forum.plexim.com/tag/variable-delay/238.md

[Latest](https://forum.plexim.com/latest.md) · [Categories](https://forum.plexim.com/categories.md) · [Tags](https://forum.plexim.com/tags.md)

---

## [How to realize the variable time delay in plecs?](https://forum.plexim.com/t/how-to-realize-the-variable-time-delay-in-plecs/865)

<div class="topic-metadata">

**Author:** [@shichenseu](https://forum.plexim.com/u/shichenseu)\
**Replies:** 0\
**Last updated:** [September 26, 2020, 10:51am UTC](https://forum.plexim.com/t/how-to-realize-the-variable-time-delay-in-plecs/865 "2020-09-26T10:51:59Z")

</div>

I want to use the c-script to relize the variable time delay in plecs, since we know that in plecs we can only achieve the const time delay, how to realize that in C code?

---

## [Is there a variable delay block?](https://forum.plexim.com/t/is-there-a-variable-delay-block/455)

<div class="topic-metadata">

**Author:** [@mwamyotte](https://forum.plexim.com/u/mwamyotte)\
**Replies:** 4\
**Last updated:** [July 26, 2018, 7:58am UTC](https://forum.plexim.com/t/is-there-a-variable-delay-block/455 "2018-07-26T07:58:04Z")

</div>

Hello, I am trying to implement a controller where I am looking to have a variable delay. Is there a way to implement this in PLECS? There is a Simulink block which offers the delay time as a second input, but I cannot …
