See the OutputTimes
and OutputTimesOption
solver options in the PLECS manual. With these variables you can control the simulation times that are included in the result of a scripted simulation. I’ll also note this is for a transient simulation called via plecs('simulate',opts)
vs Steady-State Analysis, which has a different set of options.
You can use the callback functionality which can post-process the data as it is returned from the simulation engine, but you cannot interact dynamically with the data as it returns back to your console, as the callback function is static. The callback syntax is described for Python and PLECS Standalone simulation scripts in the “Buck Converter with Parameter Sweep” demo model as well as the PLECS documentation.
In addition to batching your scripts, you could use a “To File” block if you would like to take a peek at your data as it is generated, say using another script.