PLECS standalone - access output of a script in Octave?

I agree with Kris’s points about the intended use of the console window. However, a few workarounds come to mind.

One workaround is to simply save the workspace at the end of the simulation script, and then reload it into the PLECS workspace. At the end of the simulation script, you would run “save output.mat”. Then in the console, you can run “load output.mat”. The only item to be aware of is the *.mat path is relative to the *.plecs file. This may not match the current directory of the console window. There’s a simple example below.

Nevertheless, the “plecs()” commands cannot be called from within the Console Window. If you want a more interactive style of script writing, then the recommended approach would be to use XML-RPC style commands. Then you can debug things from a Python window.