¿ªÔÆÌåÓý

Date

Re: How through external program calls LTspice

 

Does not the LTspice help file (under "Modes of Operation" -> "Command Line Switches") have sufficient information?

Donald.
--
*Plain Text* email -- it's an accessibility issue
() no proprietary attachments; no html mail
/&#92; ascii ribbon campaign - <www.asciiribbon.org>

----- Original Message -----
From: "He" <he.yang@...>
To: LTspice@...
Sent: Friday, July 5, 2013 3:44:25 AM
Subject: [LTspice] Re: How through external program calls LTspice
Hallo Tim,

Thank u very much for the message, i know that i can use python to
write the script. but i don't know how should i programm then i can
use the python to call LTspice. can you show me an example? or just
how should i script&#65311; i cant find it in the internet. thanks
again!

regards
Yang
[snip]


Multistage inverter-AC analysis

 

Hello All
I update my version of multistage inverter in Ac analysis. Can you tell me if it's okay with gain and V2-V3 value?
Thanks,regards


Re: diode model with formulas and nodes

 

Thank you very much for your guides.
Actually I tried the formula for the diode and I did not get an answer.
Therefore, I upload my complete circuit.
in this circuit which is a solar cell, when I put two cell in series, I have a
distortion but when I put the in parallel, I have the right answer which I think
is because of the diode design.
could you have a look on it ?
you can find the file in FILES>Temp>cell_beh1.cir



Kind regards
Hamed

--- In LTspice@..., "hamed" <l0st_l0rd@...> wrote:

Dear friends

I want to design a diode which could work with variable parameters.
I mean :
this is an example for defined model :

.param iscr=1
.param vocr=1
d1 1 0 diode
.model diode d(is={iscr*vocr}, n=1.1, xti=3)

but I want that it could pick up the parameters from some nodes and become
variable:
for example I bring a part of a circuit and the nodes are not correct just to
show you how I want to work :

eisc 305 300 value={v(302)/1000*(jscr*area+coef_jsc*area*(v(307)-25))}
evoc 306 300 value={if (v(305)>1e-11, vocr+coef_voc*(v(307)-25)+8.66e-5*
+ (v(307)+273)*log(v(305)/(area*jscr)),0)}
d1 1 0 diode
.model diode d(is=v(305)*v(306), n=1.1, xti=3)

problem are errors for the modelbecause of the nodes not parameters or defined
number.
Do you any methode that I could use formulas like that ?

thanks in advance


Re: How through external program calls LTspice

 

Hallo Tim,

Thank u very much for the message, i know that i can use python to write the script. but i don't know how should i programm then i can use the python to call LTspice. can you show me an example? or just how should i script&#65311; i cant find it in the internet. thanks again!

regards
Yang

--- In LTspice@..., Tim Jameson <tim@...> wrote:

He:
This can be done using Python (or bash scripting), and examining the net
list, and modifying the appropriate value on the R line for the variable
resistor, and calling ltspice to run the simulation.

I understand not wanting to use the .op command, but it is really much
easier to use, and you can vary up to three (3) parameters with it. I have
even seen ways to access a table which allows you to vary more than 3
parameters.

Tim


On Tue, Jul 2, 2013 at 8:33 PM, Renan Birck Pinheiro <
renan.ee.ufsm@...> wrote:

**


2013/7/1 He <he.yang@...>

How through external program calls LTspice, I would like a variable
resistor value from 0 to 100K, a variable power supply simulation. do not
use LTspice's . Op statements. But through external programming. Some
people know which software and how programming?
You could write a program that builds netlists for you and then runs
LTspice with the netlist it just created.

--
Renan Birck Pinheiro - Chip Inside Engenharia e
Tecnologia<>
Acad. Engenharia El¨¦trica <> -
UFSM<>- Santa Maria, Brasil
- +55 55 91162798

*Talk is cheap, show me the code*. - Linus Torvalds

[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


Re: Slow simulation on new version of LTspice

 

Okay. Thanks Helmut for the modifications.
Now this simulates quite fast.
?
Regards,
Vaseem


________________________________
From: Helmut <helmutsennewald@...>
To: LTspice@...
Sent: Friday, July 5, 2013 1:21 AM
Subject: [LTspice] Re: Slow simulation on new version of LTspice

?


--- In mailto:LTspice%40yahoogroups.com, mohd vaseem <vaseem_vlsi@...> wrote:

Hi experts,

I had been using LTspice version - 4.04r (Nov-2009)?to simulate my circuits.
Recently I updated the verion to latest - 4.16i and some of the circuits showed slower simulation speed as compared to previous version.

As an example -? the circuit under? -?? Files-> temp-> dc_dc_pfm.asc? used to take ~50sec to finisn 30ms simulation.
In the latest version it takes ~150sec, which is like 3 times slower.


The circuit is fairly simple having couple of switches to implement PFM.

Any ideas about the reason behind slowness ?
Could?it be due to any?new option added which I need to disable ???

Regards,
Vaseem
Hello Vaseem,

I haven't checked with an old version. I simply looked forward
and changed your circuit. The two AND-gates improved the sim-
speed by a factor of 1.5. The comparator improved it another
factor of 4. Over all it's now 6 times faster. I hope this helps.
Right-mouse-click on my digital devices to see their attributes.

Files > Temp > dc_dc_pfm_and.asc

Best regards,
Helmut




[Non-text portions of this message have been removed]


My collection of models and examples for LTspice.

 

Hello All.
My collection of models and examples for LTspice contains a large number of models. It includes a collection of EXTRA. This collection EXTRA I expanded with new models and changed the characters of digital items. Now you do not need a reference to the library. The collection contains a lot of operational amplifiers described in bulk (one character and a lot of models). Also, it has a model of the photodiodes, avalanche photodiodes, avalanche transistors, lasers, and many other items. In folder example a lot of good examples.
File is LTspiceIV.zip (34Meg).
Link --->

Bordodynov.


Collection of information about LTspice in English and Russian languages.

 

Hello everyone.
I placed the file hosting us.ua collection of information about LTspice in English and Russian languages.File is LTSPICEDOC.ZIP(98Meg)
Link --->

Bordodynov.


Re: Spice Model

 

Hello Andy,
You wrote :
Download the following file from the group's website:

Files > Tables of Contents > all_files.htm
Should I have to understand you have still problems with opening all_files.htm ?

Regards,
Ph. B.
--- In LTspice@..., Andrew Ingraham <Andrew.Ingraham@...> wrote:

kioskigal@... wrote:

Can i ask someone for a MESFET Spice model Thank you.
Download the following file from the group's website:

Files > Tables of Contents > all_files.htm
()

Then open it in your web browser (usually a double-click works) and
search for "mesfet".

Regards,
Andy


Re: Multistage inverter

 

mario.chillemi wrote:

thank you Mr Bordodynov,the circuit is perfect.Can I use
".AC DEC frequece1 frequence2 frequence3" to make a study in frequence?
Yes. You will need to assign AC values to one or both of the sources,
V3 or V2. Right-click on the voltage source, click the "Advanced"
button, find the "Small signal AC analysis" area, and fill in a
non-zero value for the "AC Amplitude". (Note that AC analysis and
Transient analysis are totally separate from one another, so don't
bother with the PULSE, SINE, etc. area unless you intend to do a
Transient analysis instead.)

You could give AC values to both V3 and V2, in which case you might
want one of them to have AC Phase = 180 degrees (balanced input).

Note that the capacitance values in Bordodynov's version are rather
large. The MOSFETs default to 20 by 20 microns, which is old
technology.

Regards,
Andy


Re: Slow simulation on new version of LTspice

 

--- In LTspice@..., mohd vaseem <vaseem_vlsi@...> wrote:

Hi experts,

I had been using LTspice version - 4.04r (Nov-2009)?to simulate my circuits.
Recently I updated the verion to latest - 4.16i and some of the circuits showed slower simulation speed as compared to previous version.

As an example -? the circuit under? -?? Files-> temp-> dc_dc_pfm.asc? used to take ~50sec to finisn 30ms simulation.
In the latest version it takes ~150sec, which is like 3 times slower.


The circuit is fairly simple having couple of switches to implement PFM.

Any ideas about the reason behind slowness ?
Could?it be due to any?new option added which I need to disable ???

Regards,
Vaseem
Hello Vaseem,

I haven't checked with an old version. I simply looked forward
and changed your circuit. The two AND-gates improved the sim-
speed by a factor of 1.5. The comparator improved it another
factor of 4. Over all it's now 6 times faster. I hope this helps.
Right-mouse-click on my digital devices to see their attributes.

Files > Temp > dc_dc_pfm_and.asc

Best regards,
Helmut


Re: .options meascplxfmt "bode"

 

Nicole Datte <nikkilatte98@...> wrote:

PLEASE STOP THIS IM GETTING SPAMMED
This wasn't spam. You are receiving these emails because you signed
up for the [LTspice] email group. You have the power to turn them off
... not by blasting all 44,000 members with a complaint.

If you don't want to be in the group anymore, unsubscribe yourself
from it. There are instructions at the bottom of every message to
either unsubscribe via email, or to go to the group's website to
change your settings or unsubscribe. If you still want to know about
LTspice but don't want the emails, then change your setting to "No
Mail" or "Special Notices only".

If you actually are being spammed (receiving several copies of every
message), then it may be a Yahoo!groups glitch. Try unsubscribing and
re-subscribing yourself.

Regards,
Andy


Re: How do I import the LMH6629 spice file into LTSpice IV?

 

--- In LTspice@..., "Jesper" <irpheus@...> wrote:

Hi again, Helmut.
I've now tried to download the files from the link you gave but I reckon
I need to step back a bit and understand more basically how I associate
a model (within LTSpice's schematic section) with a symbol - as I guess
that this is the issue.
What I have done is that I:
1. Have added a spice directive .include with the exact file name of the
lmh6629.mod file that I downloaded from this group's file directory.2. I
have saved the lmh6629.mod file in the same directory as the lmh6629.asc
file.3. I have also saved the symbol file xopamp_c1.asy in the same
directory as the lmh6629.asc file4. I have changed the "value" in the
"Component Attribute Editor" dialog to "LMH6629". The "Prefix" is "X".
Still, when I run the simulation I again get an "instance" message
saying: " The instance has fewer connection terminals than the
definition".
Can you help me with which steps I am missing and where/how to set them
up?
Many regards,
Jesper
Hello Jesper,

Sorry, I had forgotten to include a schematic in my original
file LMH6629_test.zip.

I have now uploaded a new zip-file with two examples.
1. Using symbol LMH6629.asy
2. Using symbol xopamp_c1.asy

The first example has the filename in the symbol attributes.
Thus it doesn't need a .lib or .inc command in the schematic.

Files > Lib > LMH6629_test.zip

Best regards,
Helmut


Re: How do I import the LMH6629 spice file into LTSpice IV?

 

Hi again, Helmut.
I've now tried to download the files from the link you gave but I reckon
I need to step back a bit and understand more basically how I associate
a model (within LTSpice's schematic section) with a symbol - as I guess
that this is the issue.
What I have done is that I:
1. Have added a spice directive .include with the exact file name of the
lmh6629.mod file that I downloaded from this group's file directory.2. I
have saved the lmh6629.mod file in the same directory as the lmh6629.asc
file.3. I have also saved the symbol file xopamp_c1.asy in the same
directory as the lmh6629.asc file4. I have changed the "value" in the
"Component Attribute Editor" dialog to "LMH6629". The "Prefix" is "X".
Still, when I run the simulation I again get an "instance" message
saying: " The instance has fewer connection terminals than the
definition".
Can you help me with which steps I am missing and where/how to set them
up?
Many regards,
Jesper


--- In LTspice@..., "Jesper" wrote:>> Hi Helmut,> > Thanks
for such a swift reply and helpful reply ;-) I'll look into it and see
if I can get it to work.> > Greetings,> > Jesper > > --- In
LTspice@..., "Helmut" wrote:> >> > > > > > --- In
LTspice@..., "Helmut" wrote:> > >> > > > > > > > > --- In
LTspice@..., "Jesper" wrote:> > > >> > > > Hi all,> > > > >
I hope you can help with this as I'd like to try out an
inspiration I got... > > > > > > > > But to do so I need to import the
LMH6629 opamp spice file into LTSpice. I've tried to do so using a
regular opamp symbol as the model but LTSpice reports an error saying
that the instances are not identical. So I reckon the LMH6629
functionality doesn't exactly match LTSpice's regular opamp model.> > >
Could it be that one of you know how to do this? The LMH6629's
spice model can be found here:> > > > > > > >
;
om133&fileType=zip> > > > > > > > Best regards,> > > > > > > > Jesper> >
Hello Jesper,> > > > > > You should always look
into the model file (.mod) when you> > > start with a new model.> > > >
* PINOUT ORDER +IN -IN +V -V OUT COMP> > > * PINOUT ORDER 4 3 8
5 7 6> > > .SUBCKT LMH6629 4 3 8 5 7 6> > > > > > It has the same
pin-order as the "opamp2". The only difference> > > is the 6th pin.
Simply add one pin to the "opamp2" symbol and> > > set the netlist order
of this pin to 6. Save this modified > > > symbol with a new name in
your design folder.> > > > > > Best regards,> > > Helmut> > >> > > >
Hello Jesper,> > > > There is already an example in our Files-section.>
Files > Lib > LMH6629_test.zip> > > >
> > > > Best
regards,> > Helmut


Re: [RELAY] Unknown subcircuit called in

 

yilinyamamoto wrote:

it came out this message "Fatal Error: Unknown subcircuit called in:
xu3 n001 n006 n003 n004 n001 rly_name"
In your simulation you apparently created a symbol named "rly_name"
but there is no such subcircuit defined in the "relay.lib" file.

Either change your symbol "rly_name" to one that is in the library, or
edit the library to add a subcircuit named "rly_name".

Regards,
Andy


Re: Spice Model

 

kioskigal@... wrote:

Can i ask someone for a MESFET Spice model Thank you.
Download the following file from the group's website:

Files > Tables of Contents > all_files.htm
()

Then open it in your web browser (usually a double-click works) and
search for "mesfet".

Regards,
Andy


Re: Multistage inverter

 

Thank you Mr Schultz,I understand the mistake and I try to fix.
best regards Mario

--- In LTspice@..., "David W. Schultz" <david.schultz@...> wrote:

On 07/04/2013 06:47 AM, ???????????¡ã?????€ ?`???€?????????????? wrote:
Hi. Your electronic circuit contains many errors and is not
operational. The impression that an attempt to reproduce the
electronic circuit from memory, without having a clue in the design.
Find the original in the book, and change the project. Bordodynov.

04.07.2013, 14:32, "mario.chillemi" <mario.chillemi@...>:
HelloIn section files->examples I update my draw about the
multistage inverter. Con you see if i make some mistake please?
best regards mario

What that looks like is a baldy rendered version of a textbook
comparator and not an inverter.

In my textbook (all transistors except M3 and M4 have their body
connection tied to the power rail. M3 and M4 are connected to their
sources. In this circuit most of the body connections are left floating
which isn't going to work.

Then there is the problem with the current mirrors: M1:M2:M7. The
connection of the M2 body to M7 gate is wrong but explainable. In my
textbook M2 is shown with the base connection going straight through the
symbol. Which is a shorthand way of connecting the base to M7, not
connecting the M2 body to the M7 gate.

All of the transistors tied to the positive voltage rail should be PMOS.

Make all of those changes, increase the power supply to a voltage that
works with the default models, remove the feedback and output loading,
and it works.

--
David W. Schultz

Returned for Regrooving


Re: Multistage inverter

 

thank you Mr Bordodynov,the circuit is perfect.Can I use ".AC DEC frequece1 frequence2 frequence3" to make a study in frequence?
thank you so much to help me.

--- In LTspice@..., ¨¢???????? ?????????¡Á <BordodunovAlex@...> wrote:

Hi.
Look file Draft2new.asc in TEMP.
Bordodynov.

04.07.2013, 15:55, "mario.chillemi" <mario.chillemi@...>:
Thanks for the reply Bordodynov,I update a photo of the circuit in Photos,can you help me?

--- In LTspice@..., ?????¡­???"???????' ?????'?????????????¡ª <BordodunovAlex@> wrote:

Hi.
Your electronic circuit contains many errors and is not operational. The impression that an attempt to reproduce the electronic circuit from memory, without having a clue in the design. Find the original in the book, and change the project.
Bordodynov.

04.07.2013, 14:32, "mario.chillemi" <mario.chillemi@>:
HelloIn section files->examples I update my draw about the multistage inverter. Con you see if i make some mistake please?
best regards mario


Re: diode model with formulas and nodes

 

The simplest case:

Bis is 0 v=v(305)*v(306)
.param K=.... Q=1.6e-19
.param VT=K*(273+v(307))/q
BiDiode 1 0 i=V(is)*(exp(v(1,0)/(N*VT))-1)

You can add the temperature dependence of the initial current is=F(temperature)


Bordodynov.

04.07.2013, 16:36, "hamed" <l0st_l0rd@...>:

yeah your are absolutely right with the formula but the problem is that while I am puting some resistances and diodes in series, I need the arbaitary values which should be derived from the nodes.
do you have any idea to deal with that ? how can I make a model for diode which changes by my variables ?

--- In LTspice@..., ¨¢???????? ?????????¡Á <BordodunovAlex@...> wrote:

Sorry!

ID = IS*(EXP(VD/(N*VT)) - 1 )

and

IS(T) = IS(TNOM)*(T/TNOM )**XTI * EXP( Q*EG/K * (T-TNOM)/(T*TNOM) )


Bordodynov.

04.07.2013, 13:52, "?????????¡ã?????€ ?`???€??????????????" <BordodunovAlex@...>:
You can not use the built-in model. You have to use non-linear sources to simulate the diode currents.
The basic formula for the diode:

........................VD
.ID = IS*(EXP( ---------- ) - 1 )
...................... N*VT
and
...............................T XTI Q*EG T-TNOM
IS(T) = IS(TNOM)*( ------- ) * EXP( ------- * -------------- )
...........................TNOM K T*TNOM

Bordodynov.

04.07.2013, 13:28, "hamed" <l0st_l0rd@...>:
Dear friends

I want to design a diode which could work with variable parameters.
I mean :
this is an example for defined model :

.param iscr=1
.param vocr=1
d1 1 0 diode
.model diode d(is={iscr*vocr}, n=1.1, xti=3)

but I want that it could pick up the parameters from some nodes and become
variable:
for example I bring a part of a circuit and the nodes are not correct just to
show you how I want to work :

eisc 305 300 value={v(302)/1000*(jscr*area+coef_jsc*area*(v(307)-25))}
evoc 306 300 value={if (v(305)>1e-11, vocr+coef_voc*(v(307)-25)+8.66e-5*
+ (v(307)+273)*log(v(305)/(area*jscr)),0)}
d1 1 0 diode
.model diode d(is=v(305)*v(306), n=1.1, xti=3)

problem are errors for the modelbecause of the nodes not parameters or defined
number.
Do you any methode that I could use formulas like that ?

thanks in advance


Re: diode model with formulas and nodes

 

yeah your are absolutely right with the formula but the problem is that while I am puting some resistances and diodes in series, I need the arbaitary values which should be derived from the nodes.
do you have any idea to deal with that ? how can I make a model for diode which changes by my variables ?

--- In LTspice@..., ¨¢???????? ?????????¡Á <BordodunovAlex@...> wrote:

Sorry!

ID = IS*(EXP(VD/(N*VT)) - 1 )

and

IS(T) = IS(TNOM)*(T/TNOM )**XTI * EXP( Q*EG/K * (T-TNOM)/(T*TNOM) )


Bordodynov.

04.07.2013, 13:52, "???????????¡ã?????€ ?`???€??????????????" <BordodunovAlex@...>:
You can not use the built-in model. You have to use non-linear sources to simulate the diode currents.
The basic formula for the diode:

........................VD
.ID = IS*(EXP( ---------- ) - 1 )
...................... N*VT
and
...............................T XTI Q*EG T-TNOM
IS(T) = IS(TNOM)*( ------- ) * EXP( ------- * -------------- )
...........................TNOM K T*TNOM

Bordodynov.

04.07.2013, 13:28, "hamed" <l0st_l0rd@...>:
Dear friends

I want to design a diode which could work with variable parameters.
I mean :
this is an example for defined model :

.param iscr=1
.param vocr=1
d1 1 0 diode
.model diode d(is={iscr*vocr}, n=1.1, xti=3)

but I want that it could pick up the parameters from some nodes and become
variable:
for example I bring a part of a circuit and the nodes are not correct just to
show you how I want to work :

eisc 305 300 value={v(302)/1000*(jscr*area+coef_jsc*area*(v(307)-25))}
evoc 306 300 value={if (v(305)>1e-11, vocr+coef_voc*(v(307)-25)+8.66e-5*
+ (v(307)+273)*log(v(305)/(area*jscr)),0)}
d1 1 0 diode
.model diode d(is=v(305)*v(306), n=1.1, xti=3)

problem are errors for the modelbecause of the nodes not parameters or defined
number.
Do you any methode that I could use formulas like that ?

thanks in advance


Re: Multistage inverter

 

Hi.
Look file Draft2new.asc in TEMP.
Bordodynov.

04.07.2013, 15:55, "mario.chillemi" <mario.chillemi@...>:

Thanks for the reply Bordodynov,I update a photo of the circuit in Photos,can you help me?

--- In LTspice@..., ¨¢???????? ?????????¡Á <BordodunovAlex@...> wrote:

Hi.
Your electronic circuit contains many errors and is not operational. The impression that an attempt to reproduce the electronic circuit from memory, without having a clue in the design. Find the original in the book, and change the project.
Bordodynov.

04.07.2013, 14:32, "mario.chillemi" <mario.chillemi@...>:
HelloIn section files->examples I update my draw about the multistage inverter. Con you see if i make some mistake please?
best regards mario