Using the the tools create by KSKelvin to run Qspice from Matlab (which are great, by the way)…is there a way to show simulation progress along the way?
After displaying “Qspice Simulator is running”, it would be nice if we could display current simulation time, or percentage complete.
From what I can gather, though, it seems qsch2qraw.m builds a command line command and then uses system to execute it , which suggest Qspice is running in a shell and there may be no way to query it until it is done, but I figured I’d ask… thanks.
In Qspice Help, Mike explains the inter-process communication of QUX and QSPICE64/80 in Appendix I.
I think Matlab cannot show the simulation process along the way, well… but maybe I am wrong. This topic is too challenging for me.
Let me give you a background on why I created Matlab2Qspice. The waveform viewer, in general, works great for me. However, in multiple parameters sweep analysis, I want a mesh/contour plot to show how two parameters affect the result. Also, in RF circuit simulation, I may need the result to be displayed with a SmithChart. These are the areas where the waveform viewer is lacking.
I was eager to understand how to read a .qraw data file in binary format, so that I don’t have to use the export command in the waveform viewer. After that, I thought, why not run the simulation from Matlab and not have to do anything from Qspice? Therefore, you see I am using the command line to execute system commands. In Qspice, running a simulation also generate a data file .qraw, however, this data file is deleted if you close the schematic window. Therefore, everything I do is just to make the Matlab workflow in plotting the specific plot more convenient (just run the script and get done).
This is the reason why displaying data during simulation is never my goal in this project. As the waveform viewer is already a great tool, I just need Matlab to fill in the missing parts in plotting waveforms as I need.
But I understand why you need this, as when I run a lengthy simulation, I simply don’t know how long to wait and if everything is running properly.
Let’s see if someone can figure out whether your request can be fulfilled or not.