# \#python

**URL:** https://forum.plexim.com/tag/python/215.md

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

---

## [Running Multiple PLECS Simulations in Parallel via Python](https://forum.plexim.com/t/running-multiple-plecs-simulations-in-parallel-via-python/3198)

<div class="topic-metadata">

**Author:** [@MilanVdW](https://forum.plexim.com/u/MilanVdW)\
**Replies:** 1\
**Last updated:** [July 6, 2026, 3:22pm UTC](https://forum.plexim.com/t/running-multiple-plecs-simulations-in-parallel-via-python/3198 "2026-07-06T15:22:39Z")

</div>

Dear PLECS Support Team I am currently simulating earth faults and short circuits behind an AC/DC converter using PLECS Standalone. To study the influence of parameters such as DC cable length, I automate the simulation…

---

## [Simulation Parameters Initialization setting](https://forum.plexim.com/t/simulation-parameters-initialization-setting/3112)

<div class="topic-metadata">

**Author:** [@ziguin](https://forum.plexim.com/u/ziguin)\
**Replies:** 1\
**Last updated:** [May 28, 2026, 6:09pm UTC](https://forum.plexim.com/t/simulation-parameters-initialization-setting/3112 "2026-05-28T18:09:59Z")

</div>

Hello, I have a few questions regarding the use of XML-RPC and ModelVars in PLECS. In the “Simulation Parameters” → “Initialization” tab, variables can be defined manually. If a variable with the same name is also p…

---

## [Implementation of 3-LVL-Space-Vector-Modulation for ANPC-Topology](https://forum.plexim.com/t/implementation-of-3-lvl-space-vector-modulation-for-anpc-topology/1322)

<div class="topic-metadata">

**Author:** [@THK](https://forum.plexim.com/u/THK)\
**Replies:** 2\
**Last updated:** [March 4, 2026, 1:22pm UTC](https://forum.plexim.com/t/implementation-of-3-lvl-space-vector-modulation-for-anpc-topology/1322 "2026-03-04T13:22:40Z")

</div>

Hello, I would like to investigate different modulation strategies (Same-Side-Clamping, Opposite Side-Clamping, Full-Path-Clamping) for a 3-LVL-ANPC-SiC topology under different operating points in terms of overall effi…

---

## [Exporting Scope Data as .CSV using XML-RPC](https://forum.plexim.com/t/exporting-scope-data-as-csv-using-xml-rpc/613)

<div class="topic-metadata">

**Author:** [@groberts](https://forum.plexim.com/u/groberts)\
**Replies:** 3\
**Last updated:** [March 2, 2026, 9:18am UTC](https://forum.plexim.com/t/exporting-scope-data-as-csv-using-xml-rpc/613 "2026-03-02T09:18:25Z")

</div>

I am using Python 3.6.7 XML-RPC library to interface with PLECS 4.2.5 standalone. I am looping through multiple “steady-state analysis” simulations which will show only one (though configurable) period at the end of the …

---

## [Connecting electrical ports via Python / RPC](https://forum.plexim.com/t/connecting-electrical-ports-via-python-rpc/2879)

<div class="topic-metadata">

**Author:** [@leonNi](https://forum.plexim.com/u/leonNi)\
**Replies:** 1\
**Last updated:** [February 24, 2026, 9:07pm UTC](https://forum.plexim.com/t/connecting-electrical-ports-via-python-rpc/2879 "2026-02-24T21:07:58Z")

</div>

Hey, I would like to reconfigure my electrical system from Python, i.e. connect the components in different ways programmatically. Ideally, I would create a subsystem for each part of the circuit and then connect these …

---

## [Is there a way to pause a simulatio during simulation run after a given elapsed time via Python simulation scripts?](https://forum.plexim.com/t/is-there-a-way-to-pause-a-simulatio-during-simulation-run-after-a-given-elapsed-time-via-python-simulation-scripts/2677)

<div class="topic-metadata">

**Author:** [@navidnoroozi](https://forum.plexim.com/u/navidnoroozi)\
**Replies:** 1\
**Last updated:** [November 5, 2025, 4:29pm UTC](https://forum.plexim.com/t/is-there-a-way-to-pause-a-simulatio-during-simulation-run-after-a-given-elapsed-time-via-python-simulation-scripts/2677 "2025-11-05T16:29:57Z")

</div>

Hi, I am wondering if as XML-RPC client there is meanwhile a solution to pause a simulation run after a pre-defined amount of elapsed time. I do see the method pause under an object of xmlrpc class, i.e. plecs = xmlrpc.…

---

## [Plecs and python co-simulation error](https://forum.plexim.com/t/plecs-and-python-co-simulation-error/2477)

<div class="topic-metadata">

**Author:** [@ims999916](https://forum.plexim.com/u/ims999916)\
**Replies:** 5\
**Last updated:** [August 19, 2025, 1:58pm UTC](https://forum.plexim.com/t/plecs-and-python-co-simulation-error/2477 "2025-08-19T13:58:17Z")

</div>

https://www.plexim.com/content/plecs-buck-converter-controls-co-simulation I run the demo ‘buck\_converter\_with\_co\_simulation’ because i need to learn about plecs and python co-simulation. but I run the simulation with …

---

## [How to read .trace File](https://forum.plexim.com/t/how-to-read-trace-file/1404)

<div class="topic-metadata">

**Author:** [@Kamilruan](https://forum.plexim.com/u/Kamilruan)\
**Replies:** 2\
**Last updated:** [October 15, 2024, 1:01pm UTC](https://forum.plexim.com/t/how-to-read-trace-file/1404 "2024-10-15T13:01:27Z")

</div>

Dears, Could any expert tell me, how to open .trace files with Python? I use “server.scope(scopeX, ‘SaveTraces’, ‘output’+str(i))” and got this output file, but I don’t know how to open it. Another Question is, do we …

---

## [Is there a remotely way to stop a Plecs simulation? Is there a way to extract Outport data during simulation?](https://forum.plexim.com/t/is-there-a-remotely-way-to-stop-a-plecs-simulation-is-there-a-way-to-extract-outport-data-during-simulation/1360)

<div class="topic-metadata">

**Author:** [@Darius](https://forum.plexim.com/u/Darius)\
**Replies:** 1\
**Last updated:** [May 15, 2024, 5:59pm UTC](https://forum.plexim.com/t/is-there-a-remotely-way-to-stop-a-plecs-simulation-is-there-a-way-to-extract-outport-data-during-simulation/1360 "2024-05-15T17:59:38Z")

</div>

Greetings, wrote a script to control soome simulation form Python and this is the code to start the simulation: data = server.plecs.simulate(modelName, opts) How does the API works? Does it get data at every Plecs ste…

---

## [Python XML-RPC model components](https://forum.plexim.com/t/python-xml-rpc-model-components/1213)

<div class="topic-metadata">

**Author:** [@Ugaitz](https://forum.plexim.com/u/Ugaitz)\
**Replies:** 1\
**Last updated:** [March 14, 2023, 1:00pm UTC](https://forum.plexim.com/t/python-xml-rpc-model-components/1213 "2023-03-14T13:00:58Z")

</div>

I want to make a Python script to run some PLECS standalone simulation over the XML-RPC. Is there a way to get all the component names with their paths?

---

## [Build plecs file in python](https://forum.plexim.com/t/build-plecs-file-in-python/965)

<div class="topic-metadata">

**Author:** [@k123123](https://forum.plexim.com/u/k123123)\
**Replies:** 1\
**Last updated:** [February 19, 2021, 3:18pm UTC](https://forum.plexim.com/t/build-plecs-file-in-python/965 "2021-02-19T15:18:10Z")

</div>

Hi, Is it possible to create .elf file for a plecs model using python, instead of opening the model in plecs and using coder options?

---

## [Xml-rpc initialization with Stored system state](https://forum.plexim.com/t/xml-rpc-initialization-with-stored-system-state/818)

<div class="topic-metadata">

**Author:** [@Rino](https://forum.plexim.com/u/Rino)\
**Replies:** 1\
**Last updated:** [August 10, 2020, 5:18pm UTC](https://forum.plexim.com/t/xml-rpc-initialization-with-stored-system-state/818 "2020-08-10T17:18:15Z")

</div>

hello, I’m using xml-rpc interface in plecs standalone. In user manual, plecs.simulate() command has options like ‘SolverOpts’. I want to simulate my circuit via xml-rpc with initialization from stored system state. …

---

## [Creating an elf file of the model to call in Python](https://forum.plexim.com/t/creating-an-elf-file-of-the-model-to-call-in-python/767)

<div class="topic-metadata">

**Author:** [@Hridhya](https://forum.plexim.com/u/Hridhya)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 11:19am UTC](https://forum.plexim.com/t/creating-an-elf-file-of-the-model-to-call-in-python/767 "2020-05-04T11:19:05Z")

</div>

As per the PLECS manual I am trying to generate elf file to be called in python. I have tried using the boost converter demo model for the same. The manual says: Open the Coder + Coder options… window, choose the Syste…

---

## [Example of config solver parameters PLECS XML-RPC with python](https://forum.plexim.com/t/example-of-config-solver-parameters-plecs-xml-rpc-with-python/684)

<div class="topic-metadata">

**Author:** [@trieuto](https://forum.plexim.com/u/trieuto)\
**Replies:** 1\
**Last updated:** [August 19, 2019, 4:05am UTC](https://forum.plexim.com/t/example-of-config-solver-parameters-plecs-xml-rpc-with-python/684 "2019-08-19T04:05:36Z")

</div>

hallo, I have seen the manual file. but there is not clear how you set the solver parameters using opts = {‘ModelVars’ : { ‘varL’ : 50e-6 } } would you please make another opts for changing solver to discrete with st…

---

## [Fixpoint Controller Simulation](https://forum.plexim.com/t/fixpoint-controller-simulation/680)

<div class="topic-metadata">

**Author:** [@egglia](https://forum.plexim.com/u/egglia)\
**Replies:** 1\
**Last updated:** [August 16, 2019, 12:26pm UTC](https://forum.plexim.com/t/fixpoint-controller-simulation/680 "2019-08-16T12:26:59Z")

</div>

We already have a working and well tested plecs standalone simulation model. As a next step we would like to transform the control logic from plecs model into VHDL code for hardware implementation. There is no floating p…

---

## [Scope GetCursorData through XMLRPC](https://forum.plexim.com/t/scope-getcursordata-through-xmlrpc/669)

<div class="topic-metadata">

**Author:** [@nhawes](https://forum.plexim.com/u/nhawes)\
**Replies:** 0\
**Last updated:** [June 19, 2019, 2:49pm UTC](https://forum.plexim.com/t/scope-getcursordata-through-xmlrpc/669 "2019-06-19T14:49:33Z")

</div>

My question is similar in spirit to: https://forum.plexim.com/673/exporting-scope-data-as-csv-using-xml-rpc?show=673#q673 where the user wanted to use the plecs(‘scope’, ‘scopepath’, ‘ExportCSV’, ‘filename’) plecs to e…
