¿ªÔÆÌåÓý

Date

Re: Stepping MOSFETs

 

This is a good example for how ADI is indeed paying attention to the valuable feedback from this group.
In LTspice 24.1.4, numeric parameters implicitely convert to strings. As a result, the old way of using numeric parameters as model names works again.
However, the new string type is better, because it eliminates the need to rename any models.
?
Best Regards,
Mathias
?
On Thu, Feb 27, 2025 at 09:25 AM, Tony Casey wrote:

On 27/02/2025 04:45, Andy I via groups.io wrote:
But it was temporarily broken when V24.1 was first introduced.
Is it still broken?
As of 24.1.4, it is still broken. I tried the original method, which failed, before adding the modification suggested by Matthias.

An equally serious issue, IMHO, is that the new method is not supported by older versions of LTspice. Obviously, there is a workaround by including both options on a new schematic, with a note to enable only one of them, but that is no help for people with old schematics wanting to use the new LTspice version.

--
Regards,
Tony


Re: LTspice 24.1.4 - Limit function

 

One of the exciting new features of LTspice 24.1 (which is the best thing since the invention of sliced bread :-) is that it compiles the math expressions of behavioral sources into highly optimized machine code matching the host machine. In this process, the limit() function is decomposed into more primitive operations to allow the optimizer to "see through it". It's the result of this decomposition that you see in the expanded netlist.
Performance measurements have shown that this new approach consistently cuts the time spent for behavioral source down to 50% (!)
?
Best Regards,
Mathias
?
On Sun, Mar 2, 2025 at 06:27 PM, eetech00 wrote:

If I run a schematic with limit function in 24.0.12:
?
b:u1:g_abmii22 u1:32b 0 i=v(u1:32)*(limit(((v(u1:31vdd1)-v(u1:vde))/(v(u1:31vdd1)-v(u1:31vdd2))), 0, 1))
?
If I run the same schematic with limit function in 24.1.4:
?
u1:BG_ABMII22 u1:32B 0 I=v(u1:32)*if(((v(u1:31vdd1)-v(u1:vde))/(v(u1:31vdd1)-v(u1:31vdd2)))<0,0,if(((v(u1:31vdd1)-v(u1:vde))/(v(u1:31vdd1)-v(u1:31vdd2)))>1,1,(v(u1:31vdd1)-v(u1:vde))/(v(u1:31vdd1)-v(u1:31vdd2))))
?
Both simulations were run with expanded netlist turned on.
?
I guess the expanded netlist format changed.
But did the "Limit" function change too?
?


Re: Transferring opamps and other libraries

 

Carlos,
Andy I is correct when he mentions locations for different versions of LTspice.
?
I still have both LTspiceIV and LTspiceXVII on my computer system.
Both versions are in their factory default locations.
?

C:\Program Files (x86)\LTC\LTspiceIV\scad3.exe

C:\Program Files (x86)\LTC\LTspiceIV\examples

C:\Program Files (x86)\LTC\LTspiceIV\lib

?

C:\Program Files\LTC\LTspiceXVII\XVIIx64.exe

C:\Users\(user name)\Documents\LTspiceXVII\examples

C:\Users\(user name)\Documents\LTspiceXVII\lib

?

Mike


Re: Transferring opamps and other libraries

 

Adding one more thought -
?
On Sun, Mar 2, 2025 at 04:46 PM, Carlos E. Mart¨ªnez wrote:
For instance, opamps and discrete active parts models, like transistors, that are available in version 4.23 is not available in version 24.0.12.
Would I be correct to say that the "missing" parts models were devices that you had previously added to LTspice?
?
LTspice should not have removed any models that had previously come with any older version of LTspice.? That being said, there are some device models that Analog Devices did remove from LTspice.? The JFET models were one example.? They should never have done that.? Other than that, all transistors and op-amps should still be there if they came with an older version of LTspice.
?
Most people inquire about the models they added to LTspice.
?
But it's also true that some LTspice users forget that they added a model, and then incorrectly assume that it came with LTspice.
?
Andy
?


Re: Creating My Own Library

 

Hi Andy,
Re: .... /g/LTspice/message/157845 .....? Great Post ... thanks.
Ian
?
?


Re: Transferring opamps and other libraries

 

Carlos,
?
Since version 24.0.xx is not the newest version, did you try just installing it, effectively as an upgrade to your previous version?? It might leave everything in place including your user-provided models.? That is how LTspice upgrades used to work.
?
Today, with the latest versions (24.1.x), it probably won't be that simple.? But with 24.0.xx it might be, if you are lucky.? Maybe it's a bit of a stretch since your LTspice IV was quite old and I think the system library area did move when going from that to LTspice XVII.
?
Andy
?


Re: Transferring opamps and other libraries

 

Thanks John and Andy.

I thought there might be an easier way that I was missing. But from my
Google research and the tutorials I saw I started to guess my desire
was hopeless.

Carlos

On Sun, Mar 2, 2025 at 7:16?PM Andy I via groups.io
<AI.egrps+io@...> wrote:

On Sun, Mar 2, 2025 at 05:09 PM, John Woodgate wrote:

Probably you can, but it would make your version of LTspice unique and might compromise updates. ...

What John is talking about, is moving your models into LTspice's own symbol and model directories. Doing that is frowned upon and generally should not be used anymore. Maybe that is what you did previously. Newer versions of Windows and/or LTspice will try to stop you from doing that.

But it is easy to put your models where LTspice will find them but where they are not in LTspice's own directories.

Keep in mind that many devices in LTspice need two parts: a symbol, and a model. The symbol is not the model, and vice-versa. The symbol file MIGHT be one that comes with LTspice, or it might be one that you created.

Andy


Re: Transferring opamps and other libraries

 

On Sun, Mar 2, 2025 at 05:09 PM, John Woodgate wrote:

Probably you can, but it would make your version of LTspice unique and might compromise updates. ...

What John is talking about, is moving your models into LTspice's own symbol and model directories.? Doing that is frowned upon and generally should not be used anymore.? Maybe that is what you did previously.? Newer versions of Windows and/or LTspice will try to stop you from doing that.
?
But it is easy to put your models where LTspice will find them but where they are not in LTspice's own directories.
?
Keep in mind that many devices in LTspice need two parts: a symbol, and a model.? The symbol is not the model, and vice-versa.? The symbol file MIGHT be one that comes with LTspice, or it might be one that you created.
?
Andy
?


Re: Transferring opamps and other libraries

 

On Sun, Mar 2, 2025 at 04:46 PM, Carlos E. Mart¨ªnez wrote:
Is it possible to transfer previous LTspice libraries from previous versions and add to newer LTspice versions?
Yes, of course.
?
Copy them to a location visible to LTspice.? Preferably it should be either the working directory with your schematics, or one of your user-defined Sym. and Lib. Search Paths, if you defined any.
?
Now, if you did either of these:
  • LTspice symbols with the full path to the model file embedded in the symbol
  • Direct references on your schematic to the full path to the model file
then you might find the job challenging, as you might need to fix the direct references (full paths).? If you used LTspice's dreaded feature to auto-generate a symbol from a library file, and did not "fix" the symbol it created, then be prepared to do some extra work.
?
For instance, opamps and discrete active parts models, like transistors, that are available in version 4.23 is not available in version 24.0.12.
Transistor models defined by .MODEL statements can go into your user.bjt or user.mos (or whatever) file.
?
More sophisticated IC models such as op-amps, will use .SUBCKT blocks, which do not go in any particular file but could be in any file (.lib, .sub, .mod, .txt, etc.).? See the general instructions at the top of this message.
?
Beyond this, it could be a case-by-case thing.? Many LTspice users seem to have a way of creating complicated setups that need extra attention.
?
Andy
?


Re: Transferring opamps and other libraries

 

¿ªÔÆÌåÓý

Probably you can, but it would make your version of LTspice unique and might compromise updates. Instead, make your own 'MyLibraries' folder, under C:\ or Documents, and put the libraries you want into it.

On 2025-03-02 21:46, Carlos E. Mart¨ªnez via groups.io wrote:
Is it possible to transfer previous LTspice libraries from previous versions and add to newer LTspice versions?
?
For instance, opamps and discrete active parts models, like transistors, that are available in version 4.23 is not available in version 24.0.12.
?
--
OOO - Own Opinions only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion

Virus-free.


Transferring opamps and other libraries

 

Is it possible to transfer previous LTspice libraries from previous versions and add to newer LTspice versions?
?
For instance, opamps and discrete active parts models, like transistors, that are available in version 4.23 is not available in version 24.0.12.
?


Re: LTspice 24.1.4 - Directory for temp files

 

On Sun, Mar 2, 2025 at 01:30 PM, Andy I wrote:
Check your settings > Waveforms tab.? Have you set a "Directory for .raw and .log data files"?? That is the setting that controls where those files go.
?
Most people leave that setting blank, and all older versions of LTspice would leave them saved in the schematic's directory.? Has that now changed in the newest version so that a blank (or un-checked) entry causes them to be saved to an alternate location anyway?? If so, then that's a bug and should be reported.
?
If I remember correctly, a while back this same topic came up. The raw files wanted to be saved in a different directory for "speed" purposes. Changing the value of the temp file location relocated the raw files, but it also inconveniently relocated the log and net files. There were a few members that didn't like that, including me.
Yes, and that appears to be intentional.? ("Directory for .raw and .log data files")
?
I remember some of that discussion, and I think it involved .plt files too, but I might be remembering incorrectly.

So when you write "temp files" what are you referring to? I didn't think that ADI meant only down loaded update files.
They do, according to LTspice's Help.? Temporary files do not mean the regular output data files.? Those are not temporary.
?
I think you just remembered the wrong setting.? No problem about that.? Go to the Waveforms tab to find the one you want.
?
Andy
?
?
Ok....you are correct....I was looking at the wrong tab.?? :-(
?
Mystery solved...
?
Thank you sir...
?


Re: LTspice 24.1.4 - Directory for temp files

 

On Sun, Mar 2, 2025 at 04:17 PM, eetech00 wrote:
I've selected "Reset to default values'. The field shows "C:\Users\user01\AppData\Local\Temp".
My recollection about "Reset to Default Values" is that might apply only to the tab that is currently selected when you click that button.
?
Thus, clicking "Reset to Default Values" when you are in the Operations tab, would not affect the settings in the Waveforms tab.
?
But my memory might be faulty.
?
Andy
?


Re: LTspice 24.1.4 - Directory for temp files

 

On Sun, Mar 2, 2025 at 04:17 PM, eetech00 wrote:
I've selected "Reset to default values'. The field shows "C:\Users\user01\AppData\Local\Temp".
I then shut down LTspice, re-started LTspice, ran the sim.
The .LOG and .RAW files are now saved to:
?
C:\Users\user01\AppData\Local\LTspice\temp
?
Which is not what is shown in the field.
But those are not Temporary Files.? Therefore, they are unaffected by that setting.
?
Check your settings > Waveforms tab.? Have you set a "Directory for .raw and .log data files"?? That is the setting that controls where those files go.
?
Most people leave that setting blank, and all older versions of LTspice would leave them saved in the schematic's directory.? Has that now changed in the newest version so that a blank (or un-checked) entry causes them to be saved to an alternate location anyway?? If so, then that's a bug and should be reported.
?
If I remember correctly, a while back this same topic came up. The raw files wanted to be saved in a different directory for "speed" purposes. Changing the value of the temp file location relocated the raw files, but it also inconveniently relocated the log and net files. There were a few members that didn't like that, including me.
Yes, and that appears to be intentional.? ("Directory for .raw and .log data files")
?
I remember some of that discussion, and I think it involved .plt files too, but I might be remembering incorrectly.

So when you write "temp files" what are you referring to? I didn't think that ADI meant only down loaded update files.
They do, according to LTspice's Help.? Temporary files do not mean the regular output data files.? Those are not temporary.
?
I think you just remembered the wrong setting.? No problem about that.? Go to the Waveforms tab to find the one you want.
?
Andy
?


Re: LTspice 24.1.4 - Directory for temp files

 

On Sun, Mar 2, 2025 at 12:44 PM, Andy I wrote:
On Sun, Mar 2, 2025 at 12:01 PM, eetech00 wrote:
The option to save temp files in schematic directory has disappeared.
I am a little confused why this matters to you.
?
According to LTspice's Help, the files that would be temporarily saved in the "Directory for Temporary Files", are files that are downloaded during a Sync Release update.? And only for that.? I can't see any good reason for wanting them saved in the current schematic's folder.
?
Agreed.
?
?
As far as I know, LTspice does not do temporary files while running a simulation.? It saves a .NET file before the simulation begins (which you might call temporary), and it saves the .LOG and .RAW and .FFT and .PLT files, but all these are always saved in the schematic's directory anyway - unless overridden by a different setting in the Waveforms tab.
?
Agreed. But it not in 24.1.4
I've selected "Reset to default values'. The field shows "C:\Users\user01\AppData\Local\Temp".
I then shut down LTspice, re-started LTspice, ran the sim.
The .LOG and .RAW files are now saved to:
?
C:\Users\user01\AppData\Local\LTspice\temp
?
Which is not what is shown in the field.
?
?
?
Do you really need to change the "Directory for Temporary Files"?? I suggest probably not - and almost definitely not changing it to the current schematic's directory.
?
Andy
?
?
If I remember correctly, a while back this same topic came up. The raw files wanted to be saved in a different directory for "speed" purposes. Changing the value of the temp file location relocated the raw files, but it also inconveniently relocated the log and net files. There were a few members that didn't like that, including me.
So when you write "temp files" what are you referring to? I didn't think that ADI meant only down loaded update files.
?
But...right now I need to figure out how to reset the destination back to saving them into the current schematic directory.
?


Re: LTspice 24.1.4 - Directory for temp files

 

On Sun, Mar 2, 2025 at 03:35 PM, eetech00 wrote:
It is saved, but it is ignored.
How can you tell?? You would need to catch it right after starting a Sync Update, and then hope that the temporary files it creates are visible.? IIRC, Windows is apt to create temporary files that you normally can not see from Windows Explorer, even with the "Show hidden files" setting enabled.? There's "hidden", and then there is "really hidden".
?
The log file is still saved in:
C:\Users\(username)\AppData\Local\LTspice\Temp
Hmm.? Well, that is new behavior.
?
Also the .LOG file is not a "temporary" file, at least not by my definition.? So it would not be affected by that setting anyway.
?
Andy
?


Re: LTspice 24.1.4 - Directory for temp files

 

On Sun, Mar 2, 2025 at 12:01 PM, eetech00 wrote:
The option to save temp files in schematic directory has disappeared.
I am a little confused why this matters to you.
?
According to LTspice's Help, the files that would be temporarily saved in the "Directory for Temporary Files", are files that are downloaded during a Sync Release update.? And only for that.? I can't see any good reason for wanting them saved in the current schematic's folder.
?
As far as I know, LTspice does not do temporary files while running a simulation.? It saves a .NET file before the simulation begins (which you might call temporary), and it saves the .LOG and .RAW and .FFT and .PLT files, but all these are always saved in the schematic's directory anyway - unless overridden by a different setting in the Waveforms tab.
?
Do you really need to change the "Directory for Temporary Files"?? I suggest probably not - and almost definitely not changing it to the current schematic's directory.
?
Andy
?


Re: LTspice 24.1.4 - Directory for temp files

 

On Sun, Mar 2, 2025 at 12:00 PM, Andy I wrote:
Hmm.
?
Not saved?? Not used?
?
It is saved, but it is ignored.
?
The log file is still saved in:
C:\Users\(username)\AppData\Local\LTspice\Temp


Re: LTspice 24.1.4 - Directory for temp files

 

Hmm.
?
Not saved?? Not used?


Re: LTspice 24.1.4 - Directory for temp files

 

On Sun, Mar 2, 2025 at 11:31 AM, Andy I wrote:
Can you type .\ ?
?
?
Yes....but no effect.