   Author Topic: Help with the script  (Read 1107 times)

0 Members and 1 Guest are viewing this topic. Narside

• Newbie
• Posts: 4
• Country:  Help with the script
« on: November 28, 2018, 09:57:13 am »
Hello. I kindly ask for your help in making script - it will import DC op points (voltages) from LTspice and put'em as a note to specified nets in Altium schematics. Below there is an example of the output file which i'm about to import from LTspice.
.nodeset V(n002)=14.59894341 V(out)=0.003793630424 V(n013)=0.6770139189 V(n017)=0.003793630424
+ V(n019)=-25.03608544 V(n008)=15.98437461 V(+vs)=25 V(d1:3)=16.84 V(n016)=-0.005649090107
+ V(in)=0 V(d2:3)=-8.16 V(d3:3)=-8.16 V(n012)=3.907166211 V(n007)=15.98437461 V(n004)=19.93241994
+ V(n005)=4.642203728 V(n009)=0.3860467752 V(n006)=4.642203728 V(n010)=0.3859918457
+ V(n018)=-20.35945837 V(n014)=0 V(-vs)=-25 V(n015)=0.003793630424 V(n011)=0.003849349371
+ V(n022)=-20.35945837 V(n021)=-24.61677347 V(n023)=-20.35945837 V(n024)=-24.61654835
+ V(n001)=4.642203728 V(n003)=0.6770139189 V(n020)=-24.88061479

So, we see the net name in brackets and its value. What could be ther script to put these values at certain nets? This would be a  great help to me in debugging and setting up my boards. Also i attach the picture with the way it's done in Orcad Thank you in advance ANTALIFE Re: Help with the script
« Reply #1 on: November 28, 2018, 11:02:03 pm »
Doesn't Altium already have a SPICE simulator built in? Have a look at the documentation to see how it could integrate with schematics, this might be a good place to start:
https://techdocs.altium.com/display/AMSE/SPICE+Model+Creation+from+User+Data
https://www.ecs.baylor.edu/ece/doc.php/271459.pdf free_electron Re: Help with the script
« Reply #2 on: January 06, 2019, 05:17:04 pm »
should be easy to do.
simply iterate over net labels and check if they match your spice net name. then inject a text label below the net label with the voltage.

it's like 20 lines of code
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).

Share me

Smf  