¿ªÔÆÌåÓý

Date

.measure script

 

Seems there has been quite a bit written about the .meas command which makes it hard to find specific information in previous posts.

Several questions that may have been already answered in the past:

1) Is there an example .meas script posted in the "Files" section that I may have missed?

2) If there is a syntax error in the .meas file, does the whole script fail or only that particular .meas command?

3) Can I parameterize within a .meas command? E.g. can I parameterize the start and end times for an average function.

.param mbegin=5us mend=20us
.meas Pout avg RLOAD6*I(R2)^2 from={mbegin} to={mend}

Also "from=" and "to=" does not seem to be documented in any ltspice help documentation. I had to grab it off hspice documentation.

Thanks.


Re: arbitrary solar cell model

John Woodgate
 

In message <krg4eh+9gdc@...>, dated Tue, 9 Jul 2013, sawreyrw <sawreyrw@...> writes:

No one is interested in a .cir file. If you want help, convert it to an .asc file and post that to the Files>Temp folder of this group.
The file will run and 'Pick visible traces' allows output node voltages to be plotted. Both outputs have serious problems, output 2 is stuck at 0 V but output 1 'blows up' to quasi-infinite voltage.

Some people can read netlists well, but I can't.
--
OOO - Own Opinions Only. See www.jmwa.demon.co.uk
Why is the stapler always empty just when you want it?

John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK


Re: Possible to snap to lowest or highest point of plot?

 

--- In LTspice@..., "uoficowboy" <nleahcim@...> wrote:

Hi - I have been characterizing a couple circuits and have
been manually trying to find the highest and lowest voltages
and currents of a circuit I'm simulation. I'd love it if
there was some sort of "snap" feature that would snap to
the highest or lowest point. Or, similarly, if I could just
get the highest/lowest points of waveforms to be displayed
on the schematic itself.

Does anything like this exist?

Thanks!!

Hello,

You could use the MEASURE functions. The results will be in the
log-file. View -> SPICE Error log

.meas peak1 MAX V(..) ....

There are many examples in the Files section.

Files > Tut > MEASURE



Best regards,
Helmut


Re: inductance with a permeability in dependency of frequency

 

--- In LTspice@..., "Herbert" <afu@...> wrote:

Hi there,

dows anybody have an idea for modelling a inductance with a permeability in dependency of frequency ??

I could not find anything in the messages ?!

Herbert
Herbert,

I'd like to help you, but I don't understand your question. What do you want to know?

Rick


Re: arbitrary solar cell model

 

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

Dear friends

in the file below you can find an arbitrary solar cell.
When I put two cells in parallel the answer is correct and when I put them in
series I see a distortion.
I think the problem is related to the diode behavioral model.

I will be thankful if any of you could help me.



sincerely,
Hamed
Hamed,

No one is interested in a .cir file. If you want help, convert it to an .asc file and post that to the Files>Temp folder of this group.

Rick


Re: OT/Left Field...

 

Nick:

I did not mean to be meen, I just presumed there had been no search done.
I did also notice NGspice, and it does sound like a good option,
especially in conection with google drive. It would allow you to design,
simulate, and store results on line hopefully with minimal processing
requirements.

Tim


On Mon, Jul 8, 2013 at 4:51 PM, Nick <nick@...> wrote:

**


--- In LTspice@..., Tim Jameson <tim@...> wrote:
I have found that Google is my friend. Anytime I start looking for
something, I start at google.com So, with that in mind, I went to
google.com,
and found Droid Tesla[1], another great place to look is wikipedia[2],
the
page on spice lists several implementations with source code[3].
Gosh! I never thought of using Google or Wikipedia. Brilliant idea :)

Sorry for the irony - I write Android apps and am a regular Wiki editor,
so of course, I had done my research.

Its personal recommendations that interest me, from people who understand
SPICE and the technology that surrounds it...



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


Possible to snap to lowest or highest point of plot?

 

Hi - I have been characterizing a couple circuits and have been manually trying to find the highest and lowest voltages and currents of a circuit I'm simulation. I'd love it if there was some sort of "snap" feature that would snap to the highest or lowest point. Or, similarly, if I could just get the highest/lowest points of waveforms to be displayed on the schematic itself.

Does anything like this exist?

Thanks!!


Re: OT/Left Field...

 

--- In LTspice@..., Tim Jameson <tim@...> wrote:
I have found that Google is my friend. Anytime I start looking for
something, I start at google.com So, with that in mind, I went to google.com,
and found Droid Tesla[1], another great place to look is wikipedia[2], the
page on spice lists several implementations with source code[3].
Gosh! I never thought of using Google or Wikipedia. Brilliant idea :)

Sorry for the irony - I write Android apps and am a regular Wiki editor, so of course, I had done my research.

Its personal recommendations that interest me, from people who understand SPICE and the technology that surrounds it...


Re: Feature Request: Option to preserve/reload plot settings after simulation run

 

And that is what I said I did. I did a cc to this thread to document that there is continuing interest in this thread and feature.

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

Hello Al,

You have to send your wish to the email address given in the
Help-About of the LTspice program. Mike normally doesn't
read the messages here.

Best regards,
Helmut


--- In LTspice@..., "Al" <alhastings314@> wrote:

Per John's suggestion, the following email was sent to Mike.

Dear Mr. Engelhard,

LTspice is fantastic! I evaluated many alternatives before I selected it. While the price was definitely a factor, the ease of use was the major issue. The user interface is intuitive, simple yet powerful. Well done.

A feature that would be extremely helpful is the "Option to preserve/reload plot settings after simulation run." The Yahoo! LTspice user group has a thread on this subject. They have explained it better than I can. A work around has been proposed in the thread (assigning reload plot to the space bar) helps but its no substitute for having the feature integrated.

I have LTspice IV, Ver 4.19i, running on Windows 7 Home Premium.

Keep up the good work.

Al

cc: Yahoo! Group LTspice via thread "Feature Request: Option to preserve/reload plot settings after simulation run."





--- In LTspice@..., John Woodgate <jmw@> wrote:

In message <20120106140329.7e86cf4f@svelte>, dated Fri, 6 Jan 2012,
Colin D Bennett <colin@> writes:

As the designer of a product, or even a long-time user, you get
accustomed to the interface, and it can take a fresh perspective to see
where usability improvements can be made.
Well, this is no new proposal, and I'm sure Mike is well aware of the
'want'. But it won't come by discussing it here.

Proposals for changes or additions to the program must be sent by email
to Mike at the address given in the Help -> 'About' panel.
--
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
Some people who are peeling the finch of the financial crisis are thinking of
biting a rook.


Re: OT/Left Field...

 

Ipad fans may be interested in Spicy. See:
<>

Howard

On 7/8/2013 11:55 AM, Nick wrote:

I am getting fed up with lugging a laptop around when I also use a
tablet....

I would love an Android version of LTspice (which I know is highly
unlikely), or failing that, a good SPICE for tablet use...

Thanks

Nick

PS. Anyone know of any decent Android PCB layout/routing packages...?


Re: OT/Left Field...

 

NGSpice Online looks like an interesting approach. See:
<>
The site provides the following sales pitch.

This site allows you to run ngspice simulations from a web browser environment. Whether you are using a Windows, Linux, or Mac computer, a smart phone, or a tablet, you always should be able to run a SPICE simulation

Howard

On 7/8/2013 12:28 PM, Tim Jameson wrote:
Nick:

I have found that Google is my friend. Anytime I start looking for
something, I start at google.com So, with that in mind, I went to google.com,
and found Droid Tesla[1], another great place to look is wikipedia[2], the
page on spice lists several implementations with source code[3].

These links were discovered in under 2 minutes. Please find the links as a
great place to start.


Tim

[1]
[2]
[3]




On Mon, Jul 8, 2013 at 11:55 AM, Nick <nick@...> wrote:

**


I am getting fed up with lugging a laptop around when I also use a
tablet....

I would love an Android version of LTspice (which I know is highly
unlikely), or failing that, a good SPICE for tablet use...

Thanks

Nick

PS. Anyone know of any decent Android PCB layout/routing packages...?




------------------------------------

Yahoo! Groups Links




Re: OT/Left Field...

 

Nick:

I have found that Google is my friend. Anytime I start looking for
something, I start at google.com So, with that in mind, I went to google.com,
and found Droid Tesla[1], another great place to look is wikipedia[2], the
page on spice lists several implementations with source code[3].

These links were discovered in under 2 minutes. Please find the links as a
great place to start.


Tim

[1]
[2]
[3]

On Mon, Jul 8, 2013 at 11:55 AM, Nick <nick@...> wrote:

**


I am getting fed up with lugging a laptop around when I also use a
tablet....

I would love an Android version of LTspice (which I know is highly
unlikely), or failing that, a good SPICE for tablet use...

Thanks

Nick

PS. Anyone know of any decent Android PCB layout/routing packages...?



Re: OT/Left Field...

 

Hi Nick


On 07/08/2013 12:55 PM, Nick wrote:
I am getting fed up with lugging a laptop around when I also use a
tablet....
I would love an Android version of LTspice (which I know is highly
unlikely), or failing that, a good SPICE for tablet use...

Yes, meetoo!!!

As for an android "spice",
theres Everycircuit:



It works very well, though
its not a traditional compatible spice.
The gui is pretty slick.

Other trade offs are that
it has limited ckt space and
its 10$ for the enhanced version.

Its quite usable for smaller things.
I do like it.

Al D.


--


AC2CL

I do not think there is any thrill that
can go through the human heart like that felt by the inventor as
he sees some creation of the brain unfolding to success...
Such emotions make a man forget food, sleep, friends, love, everything.

- Nikola Tesla


OT/Left Field...

 

I am getting fed up with lugging a laptop around when I also use a tablet....

I would love an Android version of LTspice (which I know is highly unlikely), or failing that, a good SPICE for tablet use...

Thanks

Nick

PS. Anyone know of any decent Android PCB layout/routing packages...?


Re: Feature Request: Option to preserve/reload plot settings after simulation run

 

Hello Al,

You have to send your wish to the email address given in the
Help-About of the LTspice program. Mike normally doesn't
read the messages here.

Best regards,
Helmut

--- In LTspice@..., "Al" <alhastings314@...> wrote:

Per John's suggestion, the following email was sent to Mike.

Dear Mr. Engelhard,

LTspice is fantastic! I evaluated many alternatives before I selected it. While the price was definitely a factor, the ease of use was the major issue. The user interface is intuitive, simple yet powerful. Well done.

A feature that would be extremely helpful is the "Option to preserve/reload plot settings after simulation run." The Yahoo! LTspice user group has a thread on this subject. They have explained it better than I can. A work around has been proposed in the thread (assigning reload plot to the space bar) helps but its no substitute for having the feature integrated.

I have LTspice IV, Ver 4.19i, running on Windows 7 Home Premium.

Keep up the good work.

Al

cc: Yahoo! Group LTspice via thread "Feature Request: Option to preserve/reload plot settings after simulation run."





--- In LTspice@..., John Woodgate <jmw@> wrote:

In message <20120106140329.7e86cf4f@svelte>, dated Fri, 6 Jan 2012,
Colin D Bennett <colin@> writes:

As the designer of a product, or even a long-time user, you get
accustomed to the interface, and it can take a fresh perspective to see
where usability improvements can be made.
Well, this is no new proposal, and I'm sure Mike is well aware of the
'want'. But it won't come by discussing it here.

Proposals for changes or additions to the program must be sent by email
to Mike at the address given in the Help -> 'About' panel.
--
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
Some people who are peeling the finch of the financial crisis are thinking of
biting a rook.


arbitrary solar cell model

 

Dear friends

in the file below you can find an arbitrary solar cell.
When I put two cells in parallel the answer is correct and when I put them in
series I see a distortion.
I think the problem is related to the diode behavioral model.

I will be thankful if any of you could help me.



sincerely,
Hamed


Re: Feature Request: Option to preserve/reload plot settings after simulation run

 

Per John's suggestion, the following email was sent to Mike.

Dear Mr. Engelhard,

LTspice is fantastic! I evaluated many alternatives before I selected it. While the price was definitely a factor, the ease of use was the major issue. The user interface is intuitive, simple yet powerful. Well done.

A feature that would be extremely helpful is the "Option to preserve/reload plot settings after simulation run." The Yahoo! LTspice user group has a thread on this subject. They have explained it better than I can. A work around has been proposed in the thread (assigning reload plot to the space bar) helps but its no substitute for having the feature integrated.

I have LTspice IV, Ver 4.19i, running on Windows 7 Home Premium.

Keep up the good work.

Al

cc: Yahoo! Group LTspice via thread "Feature Request: Option to preserve/reload plot settings after simulation run."

--- In LTspice@..., John Woodgate <jmw@...> wrote:

In message <20120106140329.7e86cf4f@svelte>, dated Fri, 6 Jan 2012,
Colin D Bennett <colin@...> writes:

As the designer of a product, or even a long-time user, you get
accustomed to the interface, and it can take a fresh perspective to see
where usability improvements can be made.
Well, this is no new proposal, and I'm sure Mike is well aware of the
'want'. But it won't come by discussing it here.

Proposals for changes or additions to the program must be sent by email
to Mike at the address given in the Help -> 'About' panel.
--
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
Some people who are peeling the finch of the financial crisis are thinking of
biting a rook.


Re: "Edit Plot Defs File" not working.

 

--- In LTspice@..., "Al" <alhastings314@...> wrote:

I have been successfully using "Save Plot Settings" and "Reload
Plot Settings" on this version. But I'd really like to change
the default settings if there is a means of getting the feature
to work.
You are forehead-slappingly confused. Read the Help topic about
the Plot Defs file. It is quite different from a Plot Settings
file (completely different formats and purposes). It also has
nothing to do with the default settings for the Waveform Viewer.

By the way, in Windows 7 there is no need to be an Admin to be
able to edit and save the PlotDefs file. Just use your file and
folder explorer (part of Windows) to locate the file and then
right mouse button click on it and change its properties to allow
access to all users.


Re: "Edit Plot Defs File" not working.

John Woodgate
 

In message <krctfq+i7jg@...>, dated Sun, 7 Jul 2013, Al <alhastings314@...> writes:

but now LTspice is not using the plot.defs file I created.
You have to re-load it, as you describe in the last line of your message. Plot settings menu => Open plot settings file. A good idea is to assign the spacebar as the shortcut key for this operation.

Autoranging cannot be disabled for the first display of the plot window.
--
OOO - Own Opinions Only. See www.jmwa.demon.co.uk
Why is the stapler always empty just when you want it?

John Woodgate, J M Woodgate and Associates, Rayleigh, Essex UK


Re: "Edit Plot Defs File" not working.

 

Hello Al,

Have you really edited the plot_defs file with LTspice?

Is the plot-function correct? What is the error message?

Best regards,
Helmut

--- In LTspice@..., "Al" <alhastings314@...> wrote:

Helmut,

Edit Plot Defs File works when I open LTspice as Administrator in Windows 7. Thanks... but now LTspice is not using the plot.defs file I created.

I edit the file using the Edit Plot Defs File. After making changes to the file, I save, close and reopen the file. The changes are all there but LTspice is not using the file when I Run a simulation. It appears to be using the Autoranging EVERY TIME I Run a simulation, even though I have unchecked Plot Settings&#92;Autorange.

I have looked through the menus to see some master toggle for Autoranging feature but can't find anything.

I verified that the code in the file actually works copying the file to another name. It runs fine when I use Plot Settings/Open Plot Settings File and the selecting the file.

FYI, the code looks like this:
[Transient Analysis]
{
Npanes: 1
{
traces: 1 {268959746,0,"V(n001)"}
X: ('n',1,0,5e-010,6e-009)
Y[0]: (' ',1,-4,0.2,4)
Y[1]: ('_',0,1e+308,0,-1e+308)
Volts: (' ',0,0,1,-4,0.2,4)
Log: 0 0 0
GridStyle: 1
}
}





Thank you for your expertise!
Al


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



--- In LTspice@..., "Al" <alhastings314@> wrote:

I'm using LTspice version 4.19i and can not get "Edit Plot Defs File" to work. I don't know if this feature existed or worked on earlier versions or not.

After I Run a simulation, I click on the .raw window to activate the window. Click "Plot Settings" and then "Edit Plot Defs File." Get error message, "Trouble creating file: C:&#92;PROGRA~2&#92;LTC&#92;LTSPIC~1&#92;plot.defs."

I did a search on my harddrive for plot.defs. Not found. Everything on else on the LTspice seems to be working fine. I just hate the default settings for the plots (including FFT plots).

Yes I have been successfully using "Save Plot Settings" and "Reload Plot Settings" on this version. But I'd really like to change the default settings if there is a means of getting the feature to work.

Cheers!

Hello Al,

I think there is an acceptable workaround.
Run LTspice as an administrator when you want edit plotdefs.
Later you can run it normally when you only want execute a plot
function.

Best regards,
Helmut