donghoonpark / ltspice_pytool

Spice data analysis tool for python
MIT License
112 stars 23 forks source link

Simulation with multiple .step parameters #24

Open StruchkovNS opened 2 years ago

StruchkovNS commented 2 years ago

Dear Donghoon Park,

Thank you for creating such a useful tool! I'm trying to get the results of simulation in "DC operating point" mode with a few varied (.STEP) parameters (example below). .get_data('I(V1)') returns only the result of the first .STEP variation (with the start value of the second one): the upper ones in LTSpice exported .txt in the example below. Is there a way to access the rest of the data? For now, solved the problem by multiple simulations with different values of the second parameter. But access to all the data in one simulation would make it easier.

Best regards, Nikolai Struchkov

image

donghoonpark commented 2 years ago

I totally agree with you that ltspice python tool can be improved with support of .step parameter. Until now, I knew that step parameter is only described in circuit (.asc) file, however, in such case like you, It looks like have parameter information in result file. I will develop the feature that can read parameter described in result file soon and thank you for sharing your valuable use case. Regards.