开云体育

Date

Re: Schematic drawing issues

 

Raise your hand if you feel changing hotkeys was anything short of a dumb idea.
?
It's been said before too.
?
Andy


Re: Schematic drawing issues

 

Sounds like you've got a bad UI problem there.
?
Andy


Re: Schematic drawing issues

 

On Sat, Mar 8, 2025 at 12:41 PM, eewiz wrote:
As for #3 below;
Hit the "S" key.
Drag a box around an entire edge of a rectangle, top to bottom, or right to left.
Drag that edge of the rectangle to a new desired position.
“Drag” is now “Stretch”, hence the “S”. Raise your hand if you felt there is enough distinction between the words “Drag” and “Move”. Feels like one is simply a more specific description of the other.
?
Just to clarify the instructions. There are two points that can be dragged to stretch the rectangle, namely the upper left corner of the rectangle, or the lower right corner. You simply drag a box around either of these two points, no need to select the entire edge.
?
For fun, or not fun, with the Stretch tool active, drag a box around the entire rectangle; the action is now a Move.
?
mike
?
--
Michael Stokowski
LTspice Team
Analog Devices Inc.


Re: Schematic drawing issues

 

On Mon, Mar 10, 2025 at 06:12 AM, John Woodgate wrote:

So I tried. You can't use the word 'schematic' in a question without uploading a schematic! This is not sensible. I worked round it by writing 'circuit diagram' instead. Three cheers for British English!

On 2025-03-10 12:56, John Woodgate wrote:

Thanks, Tony. I will try.

On 2025-03-10 12:50, Tony Casey wrote:
You have to start a discussion and title it "Feature Request, or similar.



--
Regards,Tony
?
?
As someone who has to often ask for schematics, I wish that this was the case. :-) Actually, when you create any Engineer Zone post with LTspice as the product, as soon as you click Post, a pop-up appears asking for any related files — i.e. schematics, symbols, etc — since the vase majority of cases require one for debugging. Obviously, feature requests like this, do not. When you close that pop-up, it does not reappear, assuming you got the message. It is only a message, not a hard stop, though it looks like one. You do not need to remove instances of “schematic”, simply click Post again. Essentially, that is what you did, but you also changed your post to read “circuit diagram”.
?
mike
-
Michael Stokowski
LTspice Team
Analog Devices Inc.


Re: LTspice vs ngspice 12AU7 tube amplifier transient analysis

 

What is 'MNA', please?

Modified Nodal Analysis.
?
No, it is not something everyone ought to know!
?
Andy
?


Re: LTspice vs ngspice 12AU7 tube amplifier transient analysis

 

开云体育

What is 'MNA', please?

On 2025-03-10 16:48, Carlo wrote:
On Mon, Mar 10, 2025 at 09:03 AM, Andy I wrote:
?
But does it start with initial voltages, or with initial currents, as the first step?? I can't even say that much.
From the fact that the MNA system is based on node voltages as unknowns (including currents for voltage sources) and there exists the .NODESET directive for node voltages to aid NR convergence, I believe the first NR iteration is done using hints (or zero) for devices'voltage.
?
Carlo.
?
--
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.


Re: LTspice vs ngspice 12AU7 tube amplifier transient analysis

 

On Mon, Mar 10, 2025 at 09:03 AM, Andy I wrote:
?
But does it start with initial voltages, or with initial currents, as the first step?? I can't even say that much.
From the fact that the MNA system is based on node voltages as unknowns (including currents for voltage sources) and there exists the .NODESET directive for node voltages to aid NR convergence, I believe the first NR iteration is done using hints (or zero) for devices'voltage.
?
Carlo.
?


Re: LTspice vs ngspice 12AU7 tube amplifier transient analysis

 

On 3/4/25 12:36 PM, Carlo wrote:
I've no idea why their ITS solutions are so different though...

* Heater model
*
* Can be operated from AC or DC power sources.
* NB: When operating from DC power sources, "Skip initial transient
* solution" must be checked, to make use of this model.
*

You can beat your brain in as much as you want but you might want a different model. Maybe even the NH12AU7 model which doesn't include the heater.

Connect the LM317 to a resistor stand in for the heater.

--

David Schultz
"The cheeper the crook, the gaudier the patter." - Sam Spade


Re: LTspice vs ngspice 12AU7 tube amplifier transient analysis

 

On Mon, Mar 10, 2025 at 06:33 AM, Carlo wrote:
... Without any .NODESET statement I believe the NR initial "guess/hint" for devices' voltage is actually zero.
?
Can you confirm my understanding?
Not being intimately familiar with the inner workings, I can not confirm anything.
?
But I will agree with the assumption that the initial guess about every node voltage - except for those actually driven by independent voltage sources - probably is zero.? I think it would not be sensible to start with voltages other than zero, would it?
?
But does it start with initial voltages, or with initial currents, as the first step?? I can't even say that much.
?
Andy
?


Re: Schematic drawing issues

 

开云体育

So I tried. You can't use the word 'schematic' in a question without uploading a schematic! This is not sensible. I worked round it by writing 'circuit diagram' instead. Three cheers for British English!

On 2025-03-10 12:56, John Woodgate wrote:

Thanks, Tony. I will try.

On 2025-03-10 12:50, Tony Casey wrote:
You have to start a discussion and title it "Feature Request, or similar.



--
Regards,
Tony


On 10/03/2025 12:51, John Woodgate wrote:
It is black if the background is set to white, as I have it, but the default background is black. The white dots are no more visible. How do I ask ADI to consider a larger dot option, or a grid option? I looked on EZ, but I don't see anything but discussions.

--
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.
--
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


Re: Schematic drawing issues

 

开云体育

Thanks, Tony. I will try.

On 2025-03-10 12:50, Tony Casey wrote:
You have to start a discussion and title it "Feature Request, or similar.



--
Regards,
Tony


On 10/03/2025 12:51, John Woodgate wrote:
It is black if the background is set to white, as I have it, but the default background is black. The white dots are no more visible. How do I ask ADI to consider a larger dot option, or a grid option? I looked on EZ, but I don't see anything but discussions.

--
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.


Re: Schematic drawing issues

 

开云体育

You have to start a discussion and title it "Feature Request, or similar.



--
Regards,
Tony


On 10/03/2025 12:51, John Woodgate wrote:

It is black if the background is set to white, as I have it, but the default background is black. The white dots are no more visible. How do I ask ADI to consider a larger dot option, or a grid option? I looked on EZ, but I don't see anything but discussions.


Re: Schematic drawing issues

 

开云体育

It is black if the background is set to white, as I have it, but the default background is black. The white dots are no more visible. How do I ask ADI to consider a larger dot option, or a grid option? I looked on EZ, but I don't see anything but discussions.

On 2025-03-10 11:19, Tony Casey wrote:
On 10/03/2025 11:42, Alan Pearce via groups.io wrote:
I thought there was an option to change the dot size, but maybe there isn't. Don't have a copy handy to check at the moment.
No there isn't, but there is an option to set the dot colour, but I think the default is black, anyway.

--
Regards,
Tony

--
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.


Re: Schematic drawing issues

 

开云体育

On 10/03/2025 11:42, Alan Pearce via groups.io wrote:
I thought there was an option to change the dot size, but maybe there isn't. Don't have a copy handy to check at the moment.
No there isn't, but there is an option to set the dot colour, but I think the default is black, anyway.

--
Regards,
Tony


Re: Schematic drawing issues

 

I thought there was an option to change the dot size, but maybe there isn't. Don't have a copy handy to check at the moment.


On Mon, 10 Mar 2025 at 09:00, John Woodgate via <jmw=[email protected]> wrote:

Thanks, Andy. I have to print to .JPG, and doing that directly from LTspice doesn't produce a good output, so I Print Screen and copy to Irfanview, crop and print from there. I think I will ask for an option to make the dots actually visible.

On 2025-03-09 23:59, Andy I via wrote:
On Sun, Mar 9, 2025 at 06:07 PM, John Woodgate wrote:

1. I have the background colour for both schematics and waveforms set to white, because that saves a lot of toner when printing out.

The on-screen background color does not affect the printed output, in my experience.? That is true whether or not I have "Print Monochrome" selected, at least when printing to PDF.? I suppose Your Mileage May Vary.
?

I wonder what I should see, with the grid enabled.

For schematic grids, you should see dots, not lines.? They are so tiny, I can barely see them.? Changing the on-screen colors does not seem to help me see them better.? Perhaps LTspice uses a size of 1 pixel, making them less apparent with high-res displays.? As far as I know, the schematic grid dots are on-screen only, not in the Printed output.? As you might notice (if you can see them), the on-screen dot spacing is not the functional grid spacing when you zoom out.? That is, it may show you one grid dot for every 2 or 4 or X functional grids - presumably so that the screen does not become filled with dots.
?
In contrast, the waveform grids are dotted lines, and they are much more visible.? I have to tone-down their color so that they don't overwhelm the waveform lines.
?
Andy
?
--
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


Re: LTspice vs ngspice 12AU7 tube amplifier transient analysis

 

I'd like to ask how Newton-Raphson iterations actually work in SPICE/LTspice.
?
I'm aware of SPICE uses, whenever possible, voltage-controlled representation of devices' I/V characteristic, i.e. the form i=f(v).
?
Therefore I believe the initial "guess/hint" to start Direct NR iterations from (including homotopies like gmin and source stepping) is about devices' voltage or actually node voltages themselves.
?
That should be what .NODESET= directive is supposed to set/work. Without any .NODESET statement I believe the NR initial "guess/hint" for devices' voltage is actually zero.
?
Can you confirm my understanding?
?
Carlo.
?


Re: Stepping MOSFETs

 

开云体育

On 10/03/2025 10:41, Mathias Born via groups.io wrote:
Thanks for providing this case. In a nicely condensed form, it demonstrates the problems of legacy LTspice and how they are addressed by 24.1.
You have two models:
?
.model 0 AKO: BSP89
.model 1 AKO: BSS145
?
and the line
?
M1 D G 0 0 {M}
?
Legacy LTspice (aka the version that you assumed "works") interprets the the second "0" as the model name. That's because there is a model with the name "0" defined. However, the actual intent for this "0" is to label the substrate node. (As documented in the help.) It then goes on and finds "{M}" which resolves to "0". This is interpreted as a parameter to M1, but a single "0" is not a valid parameter. It keeps going, at the end you get a visible error message in the log:
?
Error on line 4 : m1 d g 0 0 ?0?
? ? Error: ?No unlabeled parameter permitted for MOSFET's
?
If you changed the M1 line into:
?
M1 D G 0 1 {M}
?
you'd expect the substrate node to be connected to node "1" and model "{M}" be used. Instead, legacy LTspice will use model "1" and again ignore "{M}" as invalid parameter. Still, it keeps going.
?
LTspice 24.1 behaves in exactly the same way, except that it aborts with a hard error and a much better error message. This is the only acceptable behavior, because there is no point running a sim that obviously doesn't work out as the user intended.
?
All this boils down to the fact that the spice netlist format is poorly designed.
?
LTspice 24.1 introduces string parameters and thereby eliminates the need to name models like numbers, thus greatly reducing the likelihood of problems.
I understand your desire to add more features and improve performance. But I worry about backwards compatibility and portability. I am concerned that this is the tip of an iceberg of broken models. I haven't had the time check very many, but I know that quite a few long standing examples in the Files area of the group website are now broken because of the line-by-line syntax checker we discussed in the thread beginning #158931.

Adding new features to 24.1.x to address "problems of legacy LTspice" also introduces forward compatibility issues for people still using older versions of LTspice. There are lots of corporate users of LTspice who are not able to update to the "latest version" because of permissions restrictions placed by IT departments. This is a declining problem, but it still exists.

I am happy for new features and "improved" syntax to be added, but you should consider alongside this, "compatibility options", preferably at schematic level by directive so that "old" syntax remains acceptable. This is a common feature of compilers and Windows itself (even if 16 bit code cannot run any more, if anyone can still remember that).

--
Regards,
Tony


Re: Stepping MOSFETs

 

Hi Tony,
?
Thanks for providing this case. In a nicely condensed form, it demonstrates the problems of legacy LTspice and how they are addressed by 24.1.
You have two models:
?
.model 0 AKO: BSP89
.model 1 AKO: BSS145
?
and the line
?
M1 D G 0 0 {M}
?
Legacy LTspice (aka the version that you assumed "works") interprets the the second "0" as the model name. That's because there is a model with the name "0" defined. However, the actual intent for this "0" is to label the substrate node. (As documented in the help.) It then goes on and finds "{M}" which resolves to "0". This is interpreted as a parameter to M1, but a single "0" is not a valid parameter. It keeps going, at the end you get a visible error message in the log:
?
Error on line 4 : m1 d g 0 0 ?0?
? ? Error: ?No unlabeled parameter permitted for MOSFET's
?
If you changed the M1 line into:
?
M1 D G 0 1 {M}
?
you'd expect the substrate node to be connected to node "1" and model "{M}" be used. Instead, legacy LTspice will use model "1" and again ignore "{M}" as invalid parameter. Still, it keeps going.
?
LTspice 24.1 behaves in exactly the same way, except that it aborts with a hard error and a much better error message. This is the only acceptable behavior, because there is no point running a sim that obviously doesn't work out as the user intended.
?
All this boils down to the fact that the spice netlist format is poorly designed.
?
LTspice 24.1 introduces string parameters and thereby eliminates the need to name models like numbers, thus greatly reducing the likelihood of problems.
?
Best Regards,
Mathias
?
?
On Tue, Mar 4, 2025 at 11:38 AM, Tony Casey wrote:

I have uploaded an example schematic that shows 3 options for stepping MOSFET models: Stepping_Models_pre-V24.1_workaround.
Option 1: works only in 24.1
Option 2: works in all versions
Option 3: fails completely in 24.1; fails 1st step, but works for 2nd step in pre-24.1

--
Tony


Re: Schematic drawing issues

 

开云体育

Thank you.

On 2025-03-10 03:24, Ryu via groups.io wrote:
What I meant to say is of course "lasso one of the anchor points", depending on the direction in which you want to enlarge the rectangle.
?
Ryu
--
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.


Re: Schematic drawing issues

 

开云体育

Thanks, Andy. I have to print to .JPG, and doing that directly from LTspice doesn't produce a good output, so I Print Screen and copy to Irfanview, crop and print from there. I think I will ask for an option to make the dots actually visible.

On 2025-03-09 23:59, Andy I via groups.io wrote:
On Sun, Mar 9, 2025 at 06:07 PM, John Woodgate wrote:

1. I have the background colour for both schematics and waveforms set to white, because that saves a lot of toner when printing out.

The on-screen background color does not affect the printed output, in my experience.? That is true whether or not I have "Print Monochrome" selected, at least when printing to PDF.? I suppose Your Mileage May Vary.
?

I wonder what I should see, with the grid enabled.

For schematic grids, you should see dots, not lines.? They are so tiny, I can barely see them.? Changing the on-screen colors does not seem to help me see them better.? Perhaps LTspice uses a size of 1 pixel, making them less apparent with high-res displays.? As far as I know, the schematic grid dots are on-screen only, not in the Printed output.? As you might notice (if you can see them), the on-screen dot spacing is not the functional grid spacing when you zoom out.? That is, it may show you one grid dot for every 2 or 4 or X functional grids - presumably so that the screen does not become filled with dots.
?
In contrast, the waveform grids are dotted lines, and they are much more visible.? I have to tone-down their color so that they don't overwhelm the waveform lines.
?
Andy
?
--
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