# \#script

**URL:** https://forum.plexim.com/tag/script/54.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 simulation parameter via xml-rpc during simulation?](https://forum.plexim.com/t/how-to-change-simulation-parameter-via-xml-rpc-during-simulation/2857)

<div class="topic-metadata">

**Author:** [@vishweshgm](https://forum.plexim.com/u/vishweshgm)\
**Replies:** 5\
**Last updated:** [August 27, 2026, 7:24am UTC](https://forum.plexim.com/t/how-to-change-simulation-parameter-via-xml-rpc-during-simulation/2857 "2026-08-27T07:24:46Z")

</div>

Hi, I am using python xml-rpc to run simulation and use plecs.simulate() to start simulation. Once simulation start, until it ends, I am unable to send get&set parameter command. However if in model window, if I …

---

## [Feature Request: API to retrieve scope signal names via scripting](https://forum.plexim.com/t/feature-request-api-to-retrieve-scope-signal-names-via-scripting/2961)

<div class="topic-metadata">

**Author:** [@kldsh](https://forum.plexim.com/u/kldsh)\
**Replies:** 0\
**Last updated:** [April 2, 2026, 11:00am UTC](https://forum.plexim.com/t/feature-request-api-to-retrieve-scope-signal-names-via-scripting/2961 "2026-04-02T11:00:26Z")

</div>

Hello PLECS team, I’ve been working on automated post-processing scripts that run parallel parameter sweeps and extract loss measurements from scopes using GetCursorData. The workflow works well, but I encountered a sig…

---

## [Runtime Parameter Modifications with Scripting for Changing Thermal Parameters During Simulation](https://forum.plexim.com/t/runtime-parameter-modifications-with-scripting-for-changing-thermal-parameters-during-simulation/2445)

<div class="topic-metadata">

**Author:** [@RetoChristen](https://forum.plexim.com/u/RetoChristen)\
**Replies:** 0\
**Last updated:** [August 12, 2025, 7:48am UTC](https://forum.plexim.com/t/runtime-parameter-modifications-with-scripting-for-changing-thermal-parameters-during-simulation/2445 "2025-08-12T07:48:19Z")

</div>

This thread presents three example models that use scripted simulation in PLECS to modify thermal or electrical parameters during runtime. All examples demonstrate similar scripting concepts but target different applicat…

---

## [Problem with parallel simulations script](https://forum.plexim.com/t/problem-with-parallel-simulations-script/2392)

<div class="topic-metadata">

**Author:** [@Lucho](https://forum.plexim.com/u/Lucho)\
**Replies:** 7\
**Last updated:** [August 5, 2025, 10:11am UTC](https://forum.plexim.com/t/problem-with-parallel-simulations-script/2392 "2025-08-05T10:11:10Z")

</div>

Hello, I was implementing a parallel simulations script in PLECS standalone, and only one trace was held after executing the script. At the end to solve it I copied the Scope block from the demo “buck\_converter\_with\_par…

---

## [Is it possible to change the Resistor in Simulation at a particular time point?](https://forum.plexim.com/t/is-it-possible-to-change-the-resistor-in-simulation-at-a-particular-time-point/1016)

<div class="topic-metadata">

**Author:** [@fish\_94](https://forum.plexim.com/u/fish_94)\
**Replies:** 6\
**Last updated:** [July 14, 2025, 4:00pm UTC](https://forum.plexim.com/t/is-it-possible-to-change-the-resistor-in-simulation-at-a-particular-time-point/1016 "2025-07-14T16:00:34Z")

</div>

Hello everyone, I have a question about the Simulation in PLECS. I have built a circuit model in PLECS and I want to change the value of resistor in Simulation at a particular time point. For example: 00.2 R3=50; (t…

---

## [Possibilities to change parameter in a simulation script used to calculate other paramters in the initialization file](https://forum.plexim.com/t/possibilities-to-change-parameter-in-a-simulation-script-used-to-calculate-other-paramters-in-the-initialization-file/2282)

<div class="topic-metadata">

**Author:** [@kldsh](https://forum.plexim.com/u/kldsh)\
**Replies:** 3\
**Last updated:** [July 3, 2025, 4:27pm UTC](https://forum.plexim.com/t/possibilities-to-change-parameter-in-a-simulation-script-used-to-calculate-other-paramters-in-the-initialization-file/2282 "2025-07-03T16:27:19Z")

</div>

Hi, Is it possible to change a parameter in a simulation script where this parameter it’s used to calculate other parameters in the initialization file .m? Example: i would like to change the Vgrid=240 parameter, but…

---

## [Possibilities to read initialization parameter in a simulation script](https://forum.plexim.com/t/possibilities-to-read-initialization-parameter-in-a-simulation-script/2268)

<div class="topic-metadata">

**Author:** [@kldsh](https://forum.plexim.com/u/kldsh)\
**Replies:** 1\
**Last updated:** [June 12, 2025, 2:22pm UTC](https://forum.plexim.com/t/possibilities-to-read-initialization-parameter-in-a-simulation-script/2268 "2025-06-12T14:22:51Z")

</div>

Hi, Is it possible to read parameters used in a initialization file .m in a simulation script? I would like to create a steps simulation with calculation based on the initialization file .m? Many Thanks

---

## [Creating blocks in Plecs with scripts](https://forum.plexim.com/t/creating-blocks-in-plecs-with-scripts/1386)

<div class="topic-metadata">

**Author:** [@Kristian\_Pedersen](https://forum.plexim.com/u/Kristian_Pedersen)\
**Replies:** 3\
**Last updated:** [August 21, 2024, 11:32am UTC](https://forum.plexim.com/t/creating-blocks-in-plecs-with-scripts/1386 "2024-08-21T11:32:20Z")

</div>

Is it possible to create blocks in Plecs from a script? Previously, in Simulink I have created a custom library with masked S-function blocks and saved this as a library all from the same Matlab script. I was wondering …

---

## [Storing and plotting data across a simulation script](https://forum.plexim.com/t/storing-and-plotting-data-across-a-simulation-script/1180)

<div class="topic-metadata">

**Author:** [@santhoshs99](https://forum.plexim.com/u/santhoshs99)\
**Replies:** 1\
**Last updated:** [November 29, 2022, 5:15pm UTC](https://forum.plexim.com/t/storing-and-plotting-data-across-a-simulation-script/1180 "2022-11-29T17:15:26Z")

</div>

Hi, I have a model simulating a converter at different switching frequencies using a simulation script and the model runs for 10 seconds and there is a goto signal that gets the Max temperature seen across the 10 second…

---

## [Changing subsystem configuration through simulation parameter](https://forum.plexim.com/t/changing-subsystem-configuration-through-simulation-parameter/1182)

<div class="topic-metadata">

**Author:** [@tjngo](https://forum.plexim.com/u/tjngo)\
**Replies:** 2\
**Last updated:** [November 29, 2022, 4:53am UTC](https://forum.plexim.com/t/changing-subsystem-configuration-through-simulation-parameter/1182 "2022-11-29T04:53:16Z")

</div>

Hello everyone, I am currently using a subsystem from my library multiple times in a model and it has many configurations. The problem is, it would take a lot of time clicking in every subsystem and change it. Is there …

---

## [Sim command produces error](https://forum.plexim.com/t/sim-command-produces-error/1136)

<div class="topic-metadata">

**Author:** [@Alberto\_Sanchez](https://forum.plexim.com/u/Alberto_Sanchez)\
**Replies:** 1\
**Last updated:** [July 5, 2022, 4:41pm UTC](https://forum.plexim.com/t/sim-command-produces-error/1136 "2022-07-05T16:41:58Z")

</div>

Hi I am trying to run a model using PLECS blockset using the sim command in a script. The model runs just fine by pressing the run button, but when I try to use sim I get the following error: Warning: “Cannot execute m…

---

## [Pause, save and resume simulation: is it possible?](https://forum.plexim.com/t/pause-save-and-resume-simulation-is-it-possible/1056)

<div class="topic-metadata">

**Author:** [@nikilito](https://forum.plexim.com/u/nikilito)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 12:13pm UTC](https://forum.plexim.com/t/pause-save-and-resume-simulation-is-it-possible/1056 "2021-10-19T12:13:31Z")

</div>

Hi there! I’m using Plecs on a server machine and it typically needs to be restarted for updates. Since I have very long simulations (5-6 days) it would be useful to pause the simulation, save the current state of the …

---

## [Is there a script command to show/hide traces in a scope?](https://forum.plexim.com/t/is-there-a-script-command-to-show-hide-traces-in-a-scope/1068)

<div class="topic-metadata">

**Author:** [@Hannes\_Thielke](https://forum.plexim.com/u/Hannes_Thielke)\
**Replies:** 1\
**Last updated:** [October 18, 2021, 10:35am UTC](https://forum.plexim.com/t/is-there-a-script-command-to-show-hide-traces-in-a-scope/1068 "2021-10-18T10:35:44Z")

</div>

I wrote a simulation script that shows different traces in one scope. Is there a command to turn off the visibility of different traces (e.g. something like plecs(‘scope’, ‘HideTrace’, ‘TraceName’)?

---

## [Is it possible in PLECS standalone to call a script from script?](https://forum.plexim.com/t/is-it-possible-in-plecs-standalone-to-call-a-script-from-script/1008)

<div class="topic-metadata">

**Author:** [@matija](https://forum.plexim.com/u/matija)\
**Replies:** 4\
**Last updated:** [April 13, 2021, 4:21am UTC](https://forum.plexim.com/t/is-it-possible-in-plecs-standalone-to-call-a-script-from-script/1008 "2021-04-13T04:21:38Z")

</div>

I’m using PLECS standalone and I want to use one script for setting parameters, and another script that calls first script and starts the simulation and does some other job. When I write the name of the first script in t…

---

## [Importing a parameter in Simulation script and using it as a variable](https://forum.plexim.com/t/importing-a-parameter-in-simulation-script-and-using-it-as-a-variable/831)

<div class="topic-metadata">

**Author:** [@Mayuchip](https://forum.plexim.com/u/Mayuchip)\
**Replies:** 2\
**Last updated:** [August 12, 2020, 5:56pm UTC](https://forum.plexim.com/t/importing-a-parameter-in-simulation-script-and-using-it-as-a-variable/831 "2020-08-12T17:56:08Z")

</div>

Hello PLECS users/team, I am fairly new to PLECS and struggling with calling a variable from my simulation into the simulation script. I am able to call the variable from initialization but not from the simulation. My a…

---

## [Error when using python script to simulate plecs](https://forum.plexim.com/t/error-when-using-python-script-to-simulate-plecs/746)

<div class="topic-metadata">

**Author:** [@lzx](https://forum.plexim.com/u/lzx)\
**Replies:** 1\
**Last updated:** [May 29, 2020, 2:36pm UTC](https://forum.plexim.com/t/error-when-using-python-script-to-simulate-plecs/746 "2020-05-29T14:36:02Z")

</div>

computer system version :windows 10 professionalpython version : 3.7.0PLECS version :4.3.6Hi, when I was using the python script to simulate PLECS model ( a CLLC resonant DAB with dead time effect), this error occured oc…

---

## [Coupling Plecs Simulation to a Python script | Pausing/Resuming Simulation?](https://forum.plexim.com/t/coupling-plecs-simulation-to-a-python-script-pausing-resuming-simulation/768)

<div class="topic-metadata">

**Author:** [@Hannes](https://forum.plexim.com/u/Hannes)\
**Replies:** 1\
**Last updated:** [May 12, 2020, 2:55am UTC](https://forum.plexim.com/t/coupling-plecs-simulation-to-a-python-script-pausing-resuming-simulation/768 "2020-05-12T02:55:01Z")

</div>

I have a Python-FEM Simulation that i want to couple with a Plecs Simulation over xml-rpc. It should go like FEM-\>Plecs(1 time step)-\>FEM-\>Plecs(1 time step) Is there any way to pause the Plecs Simulation at a given ti…

---

## [How to run script file in PLECS without using MATLAB?](https://forum.plexim.com/t/how-to-run-script-file-in-plecs-without-using-matlab/683)

<div class="topic-metadata">

**Author:** [@malepatisankar](https://forum.plexim.com/u/malepatisankar)\
**Replies:** 1\
**Last updated:** [August 14, 2019, 2:18pm UTC](https://forum.plexim.com/t/how-to-run-script-file-in-plecs-without-using-matlab/683 "2019-08-14T14:18:07Z")

</div>

I have only PLECS in my PC. How to run any script files in PLECS like I do in MATLAB?

---

## [How to export just the last waveform periods by scripting?](https://forum.plexim.com/t/how-to-export-just-the-last-waveform-periods-by-scripting/630)

<div class="topic-metadata">

**Author:** [@tinivella](https://forum.plexim.com/u/tinivella)\
**Replies:** 1\
**Last updated:** [March 11, 2019, 6:02pm UTC](https://forum.plexim.com/t/how-to-export-just-the-last-waveform-periods-by-scripting/630 "2019-03-11T18:02:13Z")

</div>

Hi I’m referring Buck Converter with Parameter Sweep example I would like to export only the last periods of waveforms, to do that I generate a signal trig and enable a datacapture block. However it export all the sign…
