¿ªÔÆÌåÓý

Date

Re: .savebias command commented out

g.moberg
 

Hello Again,

Just to finish this topic out, today I generated the "Skip" file successfully. Since this is an SMPS circuit whose inductor currents are not zero, I edited the "Skip" file to change its .nodeset command to a .ic command, and set the initial conditions of the 2 inductors to their approximate values at the time the .savebias command executed. This changes the inductor characteristics for initial convergence from short circuits to ideal current sources with the specified initial conditions. This must be done to prevent the circuit from converging to a highly erroneous state with 0V across the inductors.

The simulation picked up very close to where I expected it to, and settled quickly so I can do the load transient analysis without waiting minutes to get to a settled condition.

Thanks again for those who looked at this.

Greg Moberg

--- In LTspice@..., "g.moberg" <gregory.moberg@...> wrote:



Hello Rick and All,

Well, it seems to be operating properly now, in that the "Skip" file shows up, though the .savebias command is still commented out in the log file. I spent several hours yesterday trying to make this work without success.

Thanks for looking at this - y'all must have scared it.

Greg


--- In LTspice@..., "Rick" <sawreyrw@> wrote:



--- In LTspice@..., "g.moberg" <gregory.moberg@> wrote:

Hello All,
I have been trying to use the .savebias command to grab a starting point
for a rather lengthy transient simulation of a Linear Tech SMPS circuit.
I believe I have the correct syntax:
.savebias Skip internal time=19.999ms
to write the data to file "Skip", including internal nodes, at time
19.999ms.
However, the file is not created, and upon examination, the SPICE Error
Log shows that the .savebias command is present but is commented out. It
is highlighted in red in the word file of the error log. I have tried
numerous hacking such as deleting "internal", changing the time,
shortening the filename, but to no avail. I have been able to use
.savebias and .loadbias successfully in other circuits.
I have uploaded the required files to the "Temp" folder. Unzip the
archive and run the schematic file. Stop the simulation immediately (it
takes a very long time), and examine the SPICE Error Log near the end of
the file, and you will see the problem.
I have looked in the "files" section of the Yahoo site, and read the
"Help" section several times without discerning what the problem is.
My only thought is that it might have something to do with the encrypted
LT3958 subcircuit.
I would appreciate it if anyone could shed some light on this.
Thanks a lot.
Incidentally, if you are composing a message, don't click to another
part of the yahoo site, or you will lose your message.
Greg Moberg
Greg,

I couldn't dupicate your problem. I did change the .savebias time to 1msec and added internal to it, and it worked fie. Note that the name of the file will be Skip with no extension.

Rick


Re: AD8336 failure

 

Tony,
You are right about the path - I messed up, sorry.
I will follow the check box suggestion from now on.
Thanks again,
STM

--- In LTspice@..., "Tony Casey" <tony@...> wrote:



--- In LTspice@..., "stm6823@" <stevemorris@> wrote:

Tony,
Thanks for answering. I thought FILES&#92;AD8336 in my help request would indicate where all the files were. Is there another way I should have done it?
STM

--- In LTspice@..., "Tony Casey" <tony@> wrote:



--- In LTspice@..., "stm6823@" <stevemorris@> wrote:

When I try to run AD8336-2.asc in FILES&#92;AD8336 I get an error message that contains "Circuit: * C:&#92;Program Files&#92;LTC&#92;AD models&#92;AD8336&#92;AD8336-2.asc

WARNING: Node U1:U4_N24227 is floating."
But checking the .net file I do not find any NC.
Whats wrong?
Thanks in advance,
STM
Hello Steve,

Apologies for the earlier comment. I found your files in Files>Temp>AD8336, but there was no announcement or indication from you that they were there.

You schematic wouldn't run, but not due to the reason you gave. You had hard-coded the absolute path of the model file into the symbol, and of course when it is downloaded by someone else, it will, in general, not have the same path that you used. If you put the .included file into the .asc directory, you don't need any absolute path, as LTspice will always look there.

The error I got was "timestep too small... etc", which sometimes means the model is dodgy, but the schematic is probably at least syntactically OK.

I changed your schematic to something resembling the ADI application circuit, but still got a convergence error with an .op analysis, so I think the model file is the problem, but I'm afraid I don't have the time or inclination to debug it. Sorry.

Regards,
Tony
Hello STM,

It's possible I looked before the files were actually there, but when I found them they were in Files>Temp>AD8336, not Files>AD8336.

It's also helpful when uploading files, to check the box about making an announcement to the group with a comment, not least because that message will have the correct hyperlink to the uploaded file because it's autogenerated and not prone to user error.

I'm glad Helmut sorted you out, though, as he usually does when others fail.

Regards,
Tony


Re: AD8336 failure

 

I opened the AD8336.asy you had in the zip file with FILE OPEN in LTspice but I don't find any attributes.
When I open it in notepad the only attributes are pin references.

Version 4
SymbolType BLOCK
RECTANGLE Normal -80 -104 80 104
WINDOW 0 0 -104 Bottom 2
WINDOW 3 0 104 Top 2
SYMATTR Value AD8336
SYMATTR Prefix X
SYMATTR SpiceModel ad8336.cir
SYMATTR Value2 AD8336
PIN -80 -64 LEFT 8
PINATTR PinName GNEG
PINATTR SpiceOrder 1
PIN -80 -32 LEFT 8
etc.

How do I open the others to see what you set?
Thanks,
STM

--- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:

--- In LTspice@..., "stm6823@" <stevemorris@> wrote:

Helmut,
Thank you very much for your time and help. So much for me to learn. I integrated all your schematic changes into mine and it works great. I put the changes in one at a time to observe the effect. Lots of subtle stuff like the series resistance in the supplies messing things up that I don't get.
I am curious about your reference to correcting the symbol because I am still using mine and it works OK. I had LTspice make it from the netlist editor. I tried to open yours to see what you changed but it is not editable. What did you change?
Thanks again,
STM
Hello STM,

I made a specific symbol which isn't editable.
All symbol of the LTC-opamps are made this way.
Please open the symbol(.asy) with LTspice to see which
attributes I have set.

Best regards,
Helmut


Re: AD8336 failure

 

--- In LTspice@..., "stm6823@..." <stevemorris@...> wrote:

Helmut,
Thank you very much for your time and help. So much for me to learn. I integrated all your schematic changes into mine and it works great. I put the changes in one at a time to observe the effect. Lots of subtle stuff like the series resistance in the supplies messing things up that I don't get.
I am curious about your reference to correcting the symbol because I am still using mine and it works OK. I had LTspice make it from the netlist editor. I tried to open yours to see what you changed but it is not editable. What did you change?
Thanks again,
STM
Hello STM,

I made a specific symbol which isn't editable.
All symbol of the LTC-opamps are made this way.
Please open the symbol(.asy) with LTspice to see which
attributes I have set.

Best regards,
Helmut


Re: About impedance

 

Tony,

While LTspice may not be the ideal tool for RF design, it can still be quite
useful.

You are correct that it does not have native support for producing a Smith
chart. However, some clever contributor to this group has provided a means to
plot the graticule of a Smth chart and impedance curves with frequency markers
(Files > Examples > Apps > SmithLTspice.zip).

?
With respect to LTspice handling s-parameters, it certainly can. The .NET
command computes network parameters in an AC sweep. The HELP files says in part,

?
"This statement is used with a small signal(.AC) analysis to compute the input
and output admittance, impedance, Y-parameters, Z-parameters, H-parameters, and
S-parameters of a 2-port network. It can also be used to compute the input
admittance and impedance of a 1-port network. This must be used with a .AC
statement, which determines the frequency sweep of the network analysis."
?
There is an entire section in the tutorial section of this groups files devoted
to s-parameters in LTspice (Files> Tut> S-Parameter).
?
All the best,
?
?? - Philip





________________________________
From: Tony Casey <tony@...>
To: LTspice@...
Sent: Thu, September 15, 2011 8:55:18 AM
Subject: [LTspice] Re: About impedance

?


--- In LTspice@..., "keantoken" <keantoken@...> wrote:

What is the purpose of Cartesian plot? I'm sure it makes some things more
convenient than a bode plot. What things?

- keantoken
Hello Keantoken,

If you're doing RF design, on oscillators, for example, it is essential to be
able to see both real and imaginary parts clearly and separately without having
to do mental arithmetic for each frequency displayed. The Cartesian presentation
shows this much better for most people, although a few will claim they can glean
everything they need from a polar plot. But then some people are able to write a
complete GUI in one line of C.

For doing serious RF design, LTspice is not the ideal tool, since it does not
have native Smith chart and cannot handle S-parameters, but it is at least
possible.

Regards,
Tony




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


Re: Hey i am working on a Class D amp project, need help about LT Spice

Tony Casey
 

--- In LTspice@..., "cukkacan" <mustafa_cukka@...> wrote:

Hey, i am sophomore at the university, and i have a circuit sketch and data sheet. However, i dont know how to use LT Spice effectively. i couldnt build the circuit on LT Spice perfectly. Could you help me about this issue ?

Also, advices about Class D amp are welcome. i need a working class-d amp circuit about 10-20W.i have checked on the web, topics are not live.
Hello,

I don't know which web you checked, but there are thousands of links relating to class D amplifiers, many of them on the semiconductor manufacturers' websites, check there first.

In general, you will only find people here keen to help once you have demonstrated a willingness to try. Start but drawing a schematic, try to make it work, then ask for help when it doesn't. So far, there's no evidence that you have done anything at all.

Regards,
Tony


Re: AD8336 failure

 

Helmut,
Thank you very much for your time and help. So much for me to learn. I integrated all your schematic changes into mine and it works great. I put the changes in one at a time to observe the effect. Lots of subtle stuff like the series resistance in the supplies messing things up that I don't get.
I am curious about your reference to correcting the symbol because I am still using mine and it works OK. I had LTspice make it from the netlist editor. I tried to open yours to see what you changed but it is not editable. What did you change?
Thanks again,
STM

--- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:



--- In LTspice@..., "stm6823@" <stevemorris@> wrote:

When I try to run AD8336-2.asc in FILES&#92;AD8336 I get an error message that contains "Circuit: * C:&#92;Program Files&#92;LTC&#92;AD models&#92;AD8336&#92;AD8336-2.asc

WARNING: Node U1:U4_N24227 is floating."
But checking the .net file I do not find any NC.
Whats wrong?
Thanks in advance,
STM

Hello STM,

I have corrected your symbol and the schematic. It has been
also necessary to add some convergence help.
It has required the critical option

.options cshunt=1e-15

I have uploaded a working example.

Files > Temp > AD8336 > AD8336_1.zip.

Best regards,
Helmut


Re: About impedance

Tony Casey
 

--- In LTspice@..., "keantoken" <keantoken@...> wrote:

What is the purpose of Cartesian plot? I'm sure it makes some things more convenient than a bode plot. What things?

- keantoken
Hello Keantoken,

If you're doing RF design, on oscillators, for example, it is essential to be able to see both real and imaginary parts clearly and separately without having to do mental arithmetic for each frequency displayed. The Cartesian presentation shows this much better for most people, although a few will claim they can glean everything they need from a polar plot. But then some people are able to write a complete GUI in one line of C.

For doing serious RF design, LTspice is not the ideal tool, since it does not have native Smith chart and cannot handle S-parameters, but it is at least possible.

Regards,
Tony


Re: AD8336 failure

Tony Casey
 

--- In LTspice@..., "stm6823@..." <stevemorris@...> wrote:

Tony,
Thanks for answering. I thought FILES&#92;AD8336 in my help request would indicate where all the files were. Is there another way I should have done it?
STM

--- In LTspice@..., "Tony Casey" <tony@> wrote:



--- In LTspice@..., "stm6823@" <stevemorris@> wrote:

When I try to run AD8336-2.asc in FILES&#92;AD8336 I get an error message that contains "Circuit: * C:&#92;Program Files&#92;LTC&#92;AD models&#92;AD8336&#92;AD8336-2.asc

WARNING: Node U1:U4_N24227 is floating."
But checking the .net file I do not find any NC.
Whats wrong?
Thanks in advance,
STM
Hello Steve,

Apologies for the earlier comment. I found your files in Files>Temp>AD8336, but there was no announcement or indication from you that they were there.

You schematic wouldn't run, but not due to the reason you gave. You had hard-coded the absolute path of the model file into the symbol, and of course when it is downloaded by someone else, it will, in general, not have the same path that you used. If you put the .included file into the .asc directory, you don't need any absolute path, as LTspice will always look there.

The error I got was "timestep too small... etc", which sometimes means the model is dodgy, but the schematic is probably at least syntactically OK.

I changed your schematic to something resembling the ADI application circuit, but still got a convergence error with an .op analysis, so I think the model file is the problem, but I'm afraid I don't have the time or inclination to debug it. Sorry.

Regards,
Tony
Hello STM,

It's possible I looked before the files were actually there, but when I found them they were in Files>Temp>AD8336, not Files>AD8336.

It's also helpful when uploading files, to check the box about making an announcement to the group with a comment, not least because that message will have the correct hyperlink to the uploaded file because it's autogenerated and not prone to user error.

I'm glad Helmut sorted you out, though, as he usually does when others fail.

Regards,
Tony


Re: Simple model for diffin-diffout amp

ehydra
 

Indeed, and that is the reason why I just use the datasheet and the universalopamp symbol to get rid of the problems. Most times the universalopamp makes a better job.

- Henry

--
ehydra.dyndns.info

RobertTalty schrieb:

The Microchip opamp spic models are very complex and attempt to model all types of errors and their Temp variations, but in the end these models cause convergence problems, so what is the point of a complex model that causes beginners convergence problems. Convergence can be hard for experienced spice users to solve, so it is the last thing that beginners need.
So if you want to see some complex models go to Microchip and download some of their spice models.


Re: AD8336 failure

 

Tony,
Thanks for answering. I thought FILES&#92;AD8336 in my help request would indicate where all the files were. Is there another way I should have done it?
STM

--- In LTspice@..., "Tony Casey" <tony@...> wrote:



--- In LTspice@..., "stm6823@" <stevemorris@> wrote:

When I try to run AD8336-2.asc in FILES&#92;AD8336 I get an error message that contains "Circuit: * C:&#92;Program Files&#92;LTC&#92;AD models&#92;AD8336&#92;AD8336-2.asc

WARNING: Node U1:U4_N24227 is floating."
But checking the .net file I do not find any NC.
Whats wrong?
Thanks in advance,
STM
Hello Steve,

Apologies for the earlier comment. I found your files in Files>Temp>AD8336, but there was no announcement or indication from you that they were there.

You schematic wouldn't run, but not due to the reason you gave. You had hard-coded the absolute path of the model file into the symbol, and of course when it is downloaded by someone else, it will, in general, not have the same path that you used. If you put the .included file into the .asc directory, you don't need any absolute path, as LTspice will always look there.

The error I got was "timestep too small... etc", which sometimes means the model is dodgy, but the schematic is probably at least syntactically OK.

I changed your schematic to something resembling the ADI application circuit, but still got a convergence error with an .op analysis, so I think the model file is the problem, but I'm afraid I don't have the time or inclination to debug it. Sorry.

Regards,
Tony


Diode Model Request for 1N5811 and 1N6628

 

Could someone let me know where I can find spice models for both 1N5811 and 1N6618? I was unable to locate them in the on-line library.

Thanks,

Dan


Diode Model Request for 1N5811 and 1N6628

 

Could someone let me know where I can find spice models for both 1N5811 and 1N6618?
?
Thanks,
?
Dan

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


Re: adding noise to the model of a sensor

 

--- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:



--- In LTspice@..., "rug_rossi" <rrossi@> wrote:

I need to add a noise generator to the model of a sensor
(simply a behavioral source), in order to perform some
noise analysis.

Noise is described by a noise density and a 1/f corner.

which is the best way to do that?
Add to my model a voltage follower made with the
Universal OP amp level 1, or there is a better way?

best regards,

Ruggero Rossi
Hello Ruggero,

The 1/f noise is implemented in diodes. Thus diode noise may be
the natural choice for an 1/f noise source.

Files > Tut > noisegen
Files > Tut > noisegen_with_subcircuits
Files > Tut > new_diode_noise.asc


You already mentioned the "universalopamp". It contains
parameters en and enk to set noise value and corner frequency.

Best regards,
Helmut
Thank you,

noisegen.asc + noisegen.asy is what I needed!

Ruggero


Re: About impedance

 

What is the purpose of Cartesian plot? I'm sure it makes some things more convenient than a bode plot. What things?

- keantoken


Re: About impedance

 

Dear Helmut,
?
Thank you very much for your quick response.
Yes, I was doing .AC simulation.
?
Sincerely,
?
Mahmudul Kabir, Japan?


--- In LTspice@..., Mahmudul Kabir <nilonjana@...> wrote:

Dear Members,
?
Is there any chance to calculate of real or imaginary part
of impedance while doing a simulation?with any AC voltage?
?
Or is it possible to draw?a trace of real part or imaginary
part of impedace in LTspice?
?
Thank you in advance,
?
Mahmudul Kabir, Japan
Hello Mahmudul Kabir,

I assume you use .AC simulation. In this case you can plot
in Cartesian format which shows the real part with a solid
line and the imaginary part with a dashed line.

Best regards,
Helmut




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


Re: Hey i am working on a Class D amp project, need help about LT Spice

John Woodgate
 

In message <j4sde1+lkfq@...>, dated Thu, 15 Sep 2011, cukkacan <mustafa_cukka@...> writes:

Hey, i am sophomore at the university, and i have a circuit sketch and data sheet. However, i dont know how to use LT Spice effectively. i couldnt build the circuit on LT Spice perfectly. Could you help me about this issue ?
Study the examples and tutorials available on the list's web site. Read the Help. Upload your non-working schematic to the web site Files -> Temp and tell us you've done it.

Also, advices about Class D amp are welcome. i need a working class-d amp circuit about 10-20W.i have checked on the web, topics are not live.
This list is not a general design help list. A web search for 'Class D' will provide you with hundreds of good hits (and some bad ones, but you can't win them all).
--
OOO - Own Opinions Only. Try www.jmwa.demon.co.uk and www.isce.org.uk
John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK
When I point to a star, please look at the star, not my finger. The star will
be more interesting.


Re: About impedance

 

--- In LTspice@..., Mahmudul Kabir <nilonjana@...> wrote:

Dear Members,
?
Is there any chance to calculate of real or imaginary part
of impedance while doing a simulation?with any AC voltage?
?
Or is it possible to draw?a trace of real part or imaginary
part of impedace in LTspice?
?
Thank you in advance,
?
Mahmudul Kabir, Japan
Hello Mahmudul Kabir,

I assume you use .AC simulation. In this case you can plot
in Cartesian format which shows the real part with a solid
line and the imaginary part with a dashed line.

Best regards,
Helmut


Re: adding noise to the model of a sensor

 

--- In LTspice@..., "rug_rossi" <rrossi@...> wrote:

I need to add a noise generator to the model of a sensor
(simply a behavioral source), in order to perform some
noise analysis.

Noise is described by a noise density and a 1/f corner.

which is the best way to do that?
Add to my model a voltage follower made with the
Universal OP amp level 1, or there is a better way?

best regards,

Ruggero Rossi
Hello Ruggero,

The 1/f noise is implemented in diodes. Thus diode noise may be
the natural choice for an 1/f noise source.

Files > Tut > noisegen
Files > Tut > noisegen_with_subcircuits
Files > Tut > new_diode_noise.asc


You already mentioned the "universalopamp". It contains
parameters en and enk to set noise value and corner frequency.

Best regards,
Helmut


About impedance

 

Dear Members,
?
Is there any chance to calculate of real or imaginary part of impedance while doing a simulation?with any AC voltage?
?
Or is it possible to draw?a trace of real part or imaginary part of impedace in LTspice?
?
Thank you in advance,
?
Mahmudul Kabir, Japan
?

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