Post Go back to editing

Mass importing compnents "Spice line" parameters

Thread Summary

The user seeks a method to mass import simulation parameters for multiple instances of a custom 'R L' matrix component in LTspice. The final solution involves using a .param statement to define parameters and including an external file (e.g., Excel-generated .prn file) to set these parameters for each component instance. This approach allows for easy parameter modification and comparison between different sets without manually editing each component in the schematic.
AI Generated Content
Category: Software
Software Version: 24.1.10

I try to find a way to importing simulation parameter for my own components.

Basically that my own components is "quite simple R L" matrix witch represent cable single wire and it's simulation values  can be given in LTSpice own editor  as example Format:     

"Enter new SpiceLine for ‘xxxx’  =  “Rw=10 Rg=24 Lw=21m”"

Component and it’s simulation works fine if I manually enter each separate components parameter in LTspice editor.
Now I try to find way to mass import  those SpiceLine values for  even over a hundred of same component in model  (In simulation each wire length, earth capacitance etc. are different) but “wire component” are still same.

My idea will be something lik that: 
- In first phase I have to manually create circuit diagram where all those “wires” are connected as needed and each of those have unique name, but I don’t concentrate simulation parameters.
- Then I like to export that spice model some format where all components values are as default values.  
- Next I would like to replace those "wire component" default values from excel, where that  simulation parameters source has been generated

-And then import that same spice model back to LT-spice… Only those Spice line “spell” has been  replaced by excel calculated data.  Ewryting else in spice model leavs as it is.

 Ideas how to do that "inpoering" ?

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.