Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flag "double" will allow to also import NGSPICE raw files #7

Open
mhx-gh opened this issue Aug 19, 2021 · 0 comments
Open

flag "double" will allow to also import NGSPICE raw files #7

mhx-gh opened this issue Aug 19, 2021 · 0 comments

Comments

@mhx-gh
Copy link

mhx-gh commented Aug 19, 2021

Currently the "double" flag is not recognized. This flag signifies that all data is double precision (The LTspice default is that for .TRAN time is float64 and all other data is float32). This format can occur when numdgt is set above 8, however, it also is seen for NGSPICE raw files.
I've added a diff that recognizes 'double'. (Note that there can be problems when the data is not from a .TRAN simulation.)

The same diff also shows a modification for when selected_vars is a string when calling LTspice2Matlab. In that case the program directly returns the data for the indicated trace. The old behavior is that selected_vars returns the index needed to retrieve the data for the trace but not the data itself. Currently it only works for one trace.

I attached the modified MATLAB file just for convenience.

-marcel
lt2m.txt
LTspice2Matlab.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant