One can run the PHIsim simulation software quite conveniently from a Python script or a MATLAB / Octave script.
To be updated for PHIsim_v3 - you can check the examples pages for more example files
The scripts py_run_PHIsim_example.py (with module PHIsim_tools_example.py) are given as an example (click on links to download).
It generates the signal input files and plots them
It runs the PHIsim_input program and plots the generated diagram if Graphviz is installed
It runs the PHI_sim program and plots the output signals in time
It calculates and plots the spectrum of the output on the right hand side of the circuit. In the output spectrum the first channels in the output can be skipped for the Fourier transform.
This Matlab/Python script runs the two programs with the following arguments.
PHIsim_input.exe PHIsim_invoer_amp.txt device_input.txt
PHIsim2.0.exe PHIsim_invoer_amp.txt devicefile.txt carrierfile.txt signal_input.txt
So you must name your input files as these or change the script.
Obviously one can extend the program in Matlab, Octave or Python in many ways.
Also given below are
an example parameter input file PHIsim_invoer_amp.txt (for a bulk amplifer)
a carrier file carrierfile.txt that can be used.
a Python script py_look_at_data_example.py for looking a the generated data.