# \#changeable-variable

**URL:** https://forum.plexim.com/tag/changeable-variable/302.md

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

---

## [How to change input values in the midst of simulation?](https://forum.plexim.com/t/how-to-change-input-values-in-the-midst-of-simulation/1359)

<div class="topic-metadata">

**Author:** [@spintern](https://forum.plexim.com/u/spintern)\
**Replies:** 1\
**Last updated:** [May 9, 2024, 5:30pm UTC](https://forum.plexim.com/t/how-to-change-input-values-in-the-midst-of-simulation/1359 "2024-05-09T17:30:08Z")

</div>

I’m trying to simulate some faults using the BLDC Circuit in the PLECS Library. One of the faults is instantaneous power stop, which is pretty much a loss of power in the midst of the simulation. However, I am unable to …

---

## [Parameterize function-block via m-File](https://forum.plexim.com/t/parameterize-function-block-via-m-file/1196)

<div class="topic-metadata">

**Author:** [@utuber27](https://forum.plexim.com/u/utuber27)\
**Replies:** 1\
**Last updated:** [January 3, 2023, 3:09pm UTC](https://forum.plexim.com/t/parameterize-function-block-via-m-file/1196 "2023-01-03T15:09:32Z")

</div>

Hi, I use a m-File to write a function in the function-block in PLECS. The input variable of the function has to be a value that is recalculated in each simulation-step in PLECS. The problem is that I need to have this …

---

## [Change Sample Time during simulation in PLECS Blockset](https://forum.plexim.com/t/change-sample-time-during-simulation-in-plecs-blockset/732)

<div class="topic-metadata">

**Author:** [@sgra](https://forum.plexim.com/u/sgra)\
**Replies:** 2\
**Last updated:** [January 16, 2020, 4:36am UTC](https://forum.plexim.com/t/change-sample-time-during-simulation-in-plecs-blockset/732 "2020-01-16T04:36:13Z")

</div>

Hello all, I’m using PLECS Blockset. Is there any possibilty to change the ‘Sample time’ in the ‘Discrete state-space options’ during simluation? For my usecase it would be sufficient to have something like a step depe…

---

## [Variable parameters for blocks during simulation in PLECS standalone](https://forum.plexim.com/t/variable-parameters-for-blocks-during-simulation-in-plecs-standalone/646)

<div class="topic-metadata">

**Author:** [@ankul892](https://forum.plexim.com/u/ankul892)\
**Replies:** 1\
**Last updated:** [April 10, 2019, 2:44am UTC](https://forum.plexim.com/t/variable-parameters-for-blocks-during-simulation-in-plecs-standalone/646 "2019-04-10T02:44:48Z")

</div>

Hello, I want to know if a block parameter is variable when the simulation is running. The problem is explained below using the above circuit as an example: I want to change the frequency ‘f’ of the triangle wave ge…

---

## [Change C-script's parameters during simulation. It doesn't work](https://forum.plexim.com/t/change-c-scripts-parameters-during-simulation-it-doesnt-work/556)

<div class="topic-metadata">

**Author:** [@nikilito](https://forum.plexim.com/u/nikilito)\
**Replies:** 2\
**Last updated:** [October 9, 2018, 6:28am UTC](https://forum.plexim.com/t/change-c-scripts-parameters-during-simulation-it-doesnt-work/556 "2018-10-09T06:28:11Z")

</div>

Hi everyone! I have built a generic discrete transfer function in a C-script. This is the code: Code declaration: define u Input(0) define y Output(0) define a ParamRealData(0,0) define b ParamRealData(1,0) defin…

---

## [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 …

---

## [Is it possible to change block parameter during simulation?](https://forum.plexim.com/t/is-it-possible-to-change-block-parameter-during-simulation/453)

<div class="topic-metadata">

**Author:** [@nikilito](https://forum.plexim.com/u/nikilito)\
**Replies:** 2\
**Last updated:** [July 25, 2018, 5:03am UTC](https://forum.plexim.com/t/is-it-possible-to-change-block-parameter-during-simulation/453 "2018-07-25T05:03:40Z")

</div>

Hello all, it might seem the usual question but it isn’t. I have an ideal transformer and its parameters are written in the initialization commands. I would like to change the number of turns during the simulation (li…
