# \#plecs-standalone

**URL:** https://forum.plexim.com/tag/plecs-standalone/393.md

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

---

## [Populate mask combo box with LUA](https://forum.plexim.com/t/populate-mask-combo-box-with-lua/3388)

<div class="topic-metadata">

**Author:** [@blanco](https://forum.plexim.com/u/blanco)\
**Replies:** 1\
**Last updated:** [November 10, 2026, 3:11pm UTC](https://forum.plexim.com/t/populate-mask-combo-box-with-lua/3388 "2026-11-10T15:11:13Z")

</div>

Greetings, I’m using PLECS standalone and am creating a subsystem mask. Is it possible to populate combo box list items using LUA rather than enumerating them in the mask editor dialog? The approach that I would like …

---

## [Constant Power Load](https://forum.plexim.com/t/constant-power-load/3382)

<div class="topic-metadata">

**Author:** [@CJB](https://forum.plexim.com/u/CJB)\
**Replies:** 0\
**Last updated:** [November 5, 2026, 9:26am UTC](https://forum.plexim.com/t/constant-power-load/3382 "2026-11-05T09:26:30Z")

</div>

Hi! CPL\_error.plecs (81.8 KB) I am trying to model a constant power load in PLECS, see figure and document attached. The load is set as a controlled current source, where the current for phase a is determined by: i\_{…

---

## [Simulating synchronous buck with SPICE components (MOSFTE/Drivers)](https://forum.plexim.com/t/simulating-synchronous-buck-with-spice-components-mosfte-drivers/2881)

<div class="topic-metadata">

**Author:** [@Omar](https://forum.plexim.com/u/Omar)\
**Replies:** 4\
**Last updated:** [February 26, 2026, 10:30pm UTC](https://forum.plexim.com/t/simulating-synchronous-buck-with-spice-components-mosfte-drivers/2881 "2026-02-26T22:30:54Z")

</div>

Hello all, I’m exploring the SPICE feature by trying to simulate a synchronous buck, but I receive an error message: “Unable to meet integration tolerances without reducing step size below smallest value allowed (3.5527…

---

## [Adjusting Sampling Time](https://forum.plexim.com/t/adjusting-sampling-time/2862)

<div class="topic-metadata">

**Author:** [@hector](https://forum.plexim.com/u/hector)\
**Replies:** 4\
**Last updated:** [February 20, 2026, 9:54pm UTC](https://forum.plexim.com/t/adjusting-sampling-time/2862 "2026-02-20T21:54:27Z")

</div>

Is it possible to adjust the sampling time to 1usec, especially when using C2000 HIL simulation demos? If possible, how is this done? I have seen 50usec sampling time and wondering if I can achieve 1usec sampling time. T…

---

## [Full Bridge MMC](https://forum.plexim.com/t/full-bridge-mmc/2816)

<div class="topic-metadata">

**Author:** [@Biruk123](https://forum.plexim.com/u/Biruk123)\
**Replies:** 0\
**Last updated:** [January 20, 2026, 12:59pm UTC](https://forum.plexim.com/t/full-bridge-mmc/2816 "2026-01-20T12:59:31Z")

</div>

V0\_MMC\_HVDC.plecs (351.4 KB) HELLO! I want to build a full‑bridge MMC and the demo model for the half‑bridge MMC in the Power Distribution PLECS library is a great reference. However, I would like to know what the diff…

---

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

---

## [CAN communication with Plecs on TI C2000: is there a limit?](https://forum.plexim.com/t/can-communication-with-plecs-on-ti-c2000-is-there-a-limit/1864)

<div class="topic-metadata">

**Author:** [@XavierCarrel](https://forum.plexim.com/u/XavierCarrel)\
**Replies:** 4\
**Last updated:** [May 20, 2025, 7:01am UTC](https://forum.plexim.com/t/can-communication-with-plecs-on-ti-c2000-is-there-a-limit/1864 "2025-05-20T07:01:26Z")

</div>

Hi, I am programming a TMS320F2837xD with Plecs. I am sending CAN messages using the CAN Tx block. It seems like the number of such blocks in a model is limited to 16. When I stream messages on 16 CAN IDs, they all g…

---

## [Schematic 'Copy as Image' function doesn't work properly in dark mode in Windows](https://forum.plexim.com/t/schematic-copy-as-image-function-doesnt-work-properly-in-dark-mode-in-windows/1822)

<div class="topic-metadata">

**Author:** [@Finn\_B-M](https://forum.plexim.com/u/Finn_B-M)\
**Replies:** 1\
**Last updated:** [February 25, 2025, 5:07am UTC](https://forum.plexim.com/t/schematic-copy-as-image-function-doesnt-work-properly-in-dark-mode-in-windows/1822 "2025-02-25T05:07:54Z")

</div>

Hello, I am having an issue with the ‘Copy as Image’ function in schematics when using PLECS 4.9.4 in dark mode in Windows 11. For example, if I copy the following schematic into a Word document, I get a very light rep…

---

## [Setting a variable via RPC before the initialization script](https://forum.plexim.com/t/setting-a-variable-via-rpc-before-the-initialization-script/1640)

<div class="topic-metadata">

**Author:** [@Gabriele\_Lozito](https://forum.plexim.com/u/Gabriele_Lozito)\
**Replies:** 2\
**Last updated:** [January 6, 2025, 5:38pm UTC](https://forum.plexim.com/t/setting-a-variable-via-rpc-before-the-initialization-script/1640 "2025-01-06T17:38:31Z")

</div>

I need to integrate the simulation of a circuit in a MATLAB optimization algorithm. The optimization operates on the value of an inductor, changing it before running the simulation. However, this value is also used insid…

---

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

---

## [Running two models simultaneously with jsonrpc](https://forum.plexim.com/t/running-two-models-simultaneously-with-jsonrpc/1342)

<div class="topic-metadata">

**Author:** [@Eldar](https://forum.plexim.com/u/Eldar)\
**Replies:** 1\
**Last updated:** [April 9, 2024, 12:05pm UTC](https://forum.plexim.com/t/running-two-models-simultaneously-with-jsonrpc/1342 "2024-04-09T12:05:33Z")

</div>

Hi, I have two scripts in matlab to run models with jsonrpc from GitHub - plexim/matlab-jsonrpc: Implementation of a JSON-RPC 2.0 client. Independently they are able to run their respective models, but if ran simultane…

---

## [Including a subsystem as component in a custom library (PLECS Standalone)](https://forum.plexim.com/t/including-a-subsystem-as-component-in-a-custom-library-plecs-standalone/1327)

<div class="topic-metadata">

**Author:** [@Gabriele\_Lozito](https://forum.plexim.com/u/Gabriele_Lozito)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 12:09pm UTC](https://forum.plexim.com/t/including-a-subsystem-as-component-in-a-custom-library-plecs-standalone/1327 "2024-03-07T12:09:14Z")

</div>

As a side project I’m trying to create a new component for a full non-linear (single-diode) model of a PV device under variable irradiance and temperature conditions. The model all lies inside a subsystem with electrica…

---

## [How to measure CPU runtime? Constantly getting 0](https://forum.plexim.com/t/how-to-measure-cpu-runtime-constantly-getting-0/1269)

<div class="topic-metadata">

**Author:** [@Jared](https://forum.plexim.com/u/Jared)\
**Replies:** 4\
**Last updated:** [September 14, 2023, 1:51pm UTC](https://forum.plexim.com/t/how-to-measure-cpu-runtime-constantly-getting-0/1269 "2023-09-14T13:51:04Z")

</div>

I am looking to measure the CPU time required to execute a PLECS standalone model. I am running the model through a simulation script, the same as wallclock is measured in the PLECS tutorials. I am encountering a strang…

---

## [PWM enable block for F28069M REQUIRED](https://forum.plexim.com/t/pwm-enable-block-for-f28069m-required/1187)

<div class="topic-metadata">

**Author:** [@Alberto](https://forum.plexim.com/u/Alberto)\
**Replies:** 1\
**Last updated:** [December 1, 2022, 12:16pm UTC](https://forum.plexim.com/t/pwm-enable-block-for-f28069m-required/1187 "2022-12-01T12:16:05Z")

</div>

Goodmorning, I’m looking for support on my F28069M Launchpad regarding the possibility to enable or not PWMs with an external signal. As the attachment shows, I need the enable port on the PWM module to be accessible i…

---

## [Format of Function Block](https://forum.plexim.com/t/format-of-function-block/1159)

<div class="topic-metadata">

**Author:** [@hugoc](https://forum.plexim.com/u/hugoc)\
**Replies:** 1\
**Last updated:** [September 5, 2022, 9:39am UTC](https://forum.plexim.com/t/format-of-function-block/1159 "2022-09-05T09:39:03Z")

</div>

I am attempting to use the. function block in plecs standalone. I have 6 signals and want to have a single output. equal to -0.5\*(max(u)-min(u)). Where max(u) would be the maximum value of any of the inputs. I get errors…

---

## [Need help with a block in PLECS and what I can use in its place](https://forum.plexim.com/t/need-help-with-a-block-in-plecs-and-what-i-can-use-in-its-place/1007)

<div class="topic-metadata">

**Author:** [@Mecki](https://forum.plexim.com/u/Mecki)\
**Replies:** 2\
**Last updated:** [April 9, 2021, 3:42pm UTC](https://forum.plexim.com/t/need-help-with-a-block-in-plecs-and-what-i-can-use-in-its-place/1007 "2021-04-09T15:42:02Z")

</div>

I am currently making a three phase induction motor connected to a mechanical load block diagram, but I am having issues with 1 block in particular, I know I can use the three phase supply, torque, rotational speed measu…

---

## [Film Capacitor in PLECS](https://forum.plexim.com/t/film-capacitor-in-plecs/994)

<div class="topic-metadata">

**Author:** [@Silpa](https://forum.plexim.com/u/Silpa)\
**Replies:** 6\
**Last updated:** [April 6, 2021, 12:29pm UTC](https://forum.plexim.com/t/film-capacitor-in-plecs/994 "2021-04-06T12:29:59Z")

</div>

Hi Everyone, I want to do some testing using film capacitors in PLECS, but could not find the component in the library. Could anyone please help me with any feedback on how to get a film capacitor in PLECS? Kind regar…

---

## [Multitone analysis parameters](https://forum.plexim.com/t/multitone-analysis-parameters/989)

<div class="topic-metadata">

**Author:** [@Lello](https://forum.plexim.com/u/Lello)\
**Replies:** 1\
**Last updated:** [March 22, 2021, 2:52pm UTC](https://forum.plexim.com/t/multitone-analysis-parameters/989 "2021-03-22T14:52:17Z")

</div>

Hi there I am running a closed loop simulation, and trying to measure the transfer function of my converter (plant) using the multitone analysis. My simulation starts at t=0, and at that time there is a transient, whic…

---

## [Pulse Generator/Square Wave with Controllable Rise Time and Fall Time](https://forum.plexim.com/t/pulse-generator-square-wave-with-controllable-rise-time-and-fall-time/978)

<div class="topic-metadata">

**Author:** [@Andrew](https://forum.plexim.com/u/Andrew)\
**Replies:** 3\
**Last updated:** [March 10, 2021, 8:52am UTC](https://forum.plexim.com/t/pulse-generator-square-wave-with-controllable-rise-time-and-fall-time/978 "2021-03-10T08:52:17Z")

</div>

Hello, How could a rectangular signal/square wave/pulse wave be generated in Plecs 4.1 in which the RISE TIME and the FALL TIME can be adjusted, besides the frequency, duty cycle, phase shift, lower and upper amplitude,…

---

## [Accessing .csv data in PLECS standalone](https://forum.plexim.com/t/accessing-csv-data-in-plecs-standalone/713)

<div class="topic-metadata">

**Author:** [@satheesh21](https://forum.plexim.com/u/satheesh21)\
**Replies:** 2\
**Last updated:** [June 10, 2020, 12:22pm UTC](https://forum.plexim.com/t/accessing-csv-data-in-plecs-standalone/713 "2020-06-10T12:22:00Z")

</div>

Hi, I have an array of data(vector) obtained from matlab as a .csv file. I need to make use the vector in PLECS standalone. Is there any way to do it? Regards, Satheesh

---

## [Negative Turn on Loss for multiple values. Switching or conduction Loss Cropped](https://forum.plexim.com/t/negative-turn-on-loss-for-multiple-values-switching-or-conduction-loss-cropped/769)

<div class="topic-metadata">

**Author:** [@archit6586](https://forum.plexim.com/u/archit6586)\
**Replies:** 1\
**Last updated:** [April 30, 2020, 11:44am UTC](https://forum.plexim.com/t/negative-turn-on-loss-for-multiple-values-switching-or-conduction-loss-cropped/769 "2020-04-30T11:44:14Z")

</div>

Hello Everyone. I have defined the thermal model of a MOSFET with Diode (for three phase inverter) and is working fine with standalone model. However If i use it in MATLAB as a blockset, Turn on losses are coming to be …

---

## [Export Sope Data from Standalone to Matlab](https://forum.plexim.com/t/export-sope-data-from-standalone-to-matlab/764)

<div class="topic-metadata">

**Author:** [@christi](https://forum.plexim.com/u/christi)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 3:47pm UTC](https://forum.plexim.com/t/export-sope-data-from-standalone-to-matlab/764 "2020-04-22T15:47:46Z")

</div>

Hi Guys, is it possible to export Scope Data to Plecs Standalone to plot it in Matlab? How can I do something like that? Thanks Sarah

---

## [Simulation speed reduction due to Control / Discrete blocks](https://forum.plexim.com/t/simulation-speed-reduction-due-to-control-discrete-blocks/729)

<div class="topic-metadata">

**Author:** [@tinivella](https://forum.plexim.com/u/tinivella)\
**Replies:** 5\
**Last updated:** [February 12, 2020, 5:39pm UTC](https://forum.plexim.com/t/simulation-speed-reduction-due-to-control-discrete-blocks/729 "2020-02-12T17:39:36Z")

</div>

Dear all, I noticed that the same simulation pass from 2s simulation to 25sec when I let PLECS calculate the Discrete mean value and the discrete RMS, is it possible that? How can I improve it? Attached the files bst…

---

## [Parse a PLECS file](https://forum.plexim.com/t/parse-a-plecs-file/667)

<div class="topic-metadata">

**Author:** [@nhawes](https://forum.plexim.com/u/nhawes)\
**Replies:** 3\
**Last updated:** [June 25, 2019, 12:03pm UTC](https://forum.plexim.com/t/parse-a-plecs-file/667 "2019-06-25T12:03:30Z")

</div>

I have noticed that .PLECS files (standalone) are human readable and that they contain the info of everything within the model. I’m thrilled that this is the case, but the syntax doesn’t seem to conform to JSON or XML, s…

---

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