Keyboard Shortcuts
Likes
- LTspice
- Messages
Search
Re: Singular matrix
Some of the things you can try (no guarantees!) include:
?
Andy
?
? |
Re: .STEPping a .WAVE file output
开云体育NICE! ? From: [email protected] <[email protected]>
On Behalf Of Mathias Born via groups.io
Sent: Monday, March 24, 2025 10:39 AM To: [email protected] Subject: EXTERNAL: Re: [LTspice] .STEPping a .WAVE file output ? Hi, ? Since this seems like a nice feature, I extended the grammar. Starting with LTspice 24.1.6, you can just say: ? .wave {Stp+".wav"} 16 44.1k V(Out) ? Best Regards, Mathias |
Re: Singular matrix
开云体育There are indeed infinitely many reasons for
that error. We can't help much unless you let us see more of
what you are doing. Upload your .ASC file AND all the other
files required to run the simulation, but not .RAW? and .LOG
files or pictures,? in a ZIP archive to Files => Temp. On 2025-03-24 17:59, pilou via
groups.io wrote:
--
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 |
Singular matrix
Hello everybody, I'm working on a schematic and encounter a "singular matrix" error. I know there are as many cause than people in the mankind, but I would like to have advices to avoid this sort of things. I'm aware that there are a lot of maths in the background too :'( Thanks a lot in advance for your help. |
Re: .STEPping a .WAVE file output
开云体育T does work, as you suggested, with *just* the number as filenemae. OK for a few files to rename, like this, but if I wanted to make a lot of runs, it would be a pain. ? Thanks, Dave ? From: [email protected] <[email protected]>
On Behalf Of Andy I via groups.io
Sent: Monday, March 24, 2025 9:36 AM To: [email protected] Subject: EXTERNAL: Re: [LTspice] .STEPping a .WAVE file output ? Maybe it's the negative values?? ? (Clearly, guessing here.) |
Re: LTspice AKO
View the extended netlist.?
toggle quoted message
Show quoted text
view the netlist and right click on the netlist and select "generate expanded listing".
|
Re: .STEPping a .WAVE file output
开云体育The failing stoi function expects an integer during parsing. Maybe 44.1k should be 44100 ?Or the file contains non-integer values where a integers are 'required' (expected). Arie On 2025-03-24 17:03, Bell, Dave via
groups.io wrote:
|
Re: .STEPping a .WAVE file output
开云体育Well, that is a very significant error
message, isn't it? Thank you for sharing.(;-) On 2025-03-24 16:03, Bell, Dave via
groups.io wrote:
--
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: .STEPping a .WAVE file output
开云体育I haven’t tried that, Andy, will do. Running XVII ? “A C++ exception with the message: ‘invalid .stoi argument was thrown during simulation, which indicates a bug in LTspice. Please report this incident.”
(Can’t copy the text, can’t attach a screenshot!) ? Dave ? From: [email protected] <[email protected]>
On Behalf Of Andy I via groups.io
Sent: Monday, March 24, 2025 8:53 AM To: [email protected] Subject: EXTERNAL: Re: [LTspice] .STEPping a .WAVE file output ? It might depend on your LTspice version.? What's yours? ? Did you try ".wave {stp} 16 ..."?? That is, remove the ".wav" extension from that command.? Then add it manually, in Windows. ? What error message(s) did you get? ? Andy |
Re: .STEPping a .WAVE file output
开云体育Exactly what error message do you get? On 2025-03-24 15:42, Bell, Dave via
groups.io wrote:
--
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 |
.STEPping a .WAVE file output
开云体育I want make multiple runs of a model which will output? a waveform to a .wav file. Each run will step a parameter, all of which works as intended, except, I need to change the filename each time. This illustrates the intent, but not? surprisingly, errors off on the last line: ? .step param stp 1 6 1 .param Vcon table({stp}, 1,-2, 2, -1, 3, 0, 4, 1, 5, 2, 6,3) .wave {Stp}.wav 16 44.1k V(Out) ? Any suggested better syntax? I’ve tried several… Thanks! ? Dave ? |
Re: LTspice AKO
Unfortunately, in this specific case it is screwed up. It's a bug that will be fixed in 24.1.6 (coming this week).
?
Best Regards,
Mathias ?
On Mon, Mar 24, 2025 at 09:55 AM, Tony Casey wrote:
|
Re: LTspice AKO
开云体育On 24/03/2025 00:32, Andy I via
groups.io wrote:
To clear, V24.1.x didn't screw up the AKO feature, as such - it still worked. The actual problem was with the model name not being recognised when AKO was being used with the resulting numeric "name" that was being .STEPed. --
Regards, Tony |
Re: LTspice AKO
开云体育On 24/03/2025 00:18, eetech00 via
groups.io wrote:
The simulation runs but I'm not confident its using the proper JFET parameters because it doesn't show them when it produces the error. It may be using JFET defaults.I had already checked that it does work even when an error is reported. 24.1.4 gave the same current as 24.0.12 in a .OP analysis, even when it reported the error. I doubled-checked by changing one of NJ20 model parameters (Beta) - the current changed accordingly. The result was the same whether or not the actual original model was used or the AKO name.It works in 24.1.4 and 24.0.12. In 24.1.4, you get an error message in the logfile, but it still works. I don't have 24.1.5 installed yet. The NJF() is superfluous. You already have defined NJ20 as an NFT.Yes, I know. But I had to that for BJT AKO to work so I tried useing it here.Do you have braces in the instantiation? Try removing them. There are plenty of nuances here.Already did. Doesn't help. The error is being wrongly reported. Errors should be terminal, preventing analysis. If that doesn't happen, it should be reported as a warning, if "strict" syntax rules are not being followed. The classic "questionable curly braces" warning doesn't (normally) seem to affect the analysis. I don't ever remember having to use the intrinsic model type (D, Q, MN, NJF, etc) when using the AKO syntax. It shouldn't be necessary. If you found that it was for BJT, it suggests that the base model you used wasn't in standard.bjt, and LTspice then fell back to the default BJT when the the AKO was used. -- Regards, Tony |
Re: Sawtooth waveform by simple BJTs, but dips at the top.
I'm using ako: with a trailing (field) separator, as written in "General Form" in MicroSim's PSpice reference manual (as far as I remember, MicroSim introduced ako:).
But in the corresponding example, MicroSim omitted the space. I hope LTspice will continue to accept ako: with and without trailing separators. Excerpt from MicroSim PSpice A/D 7 Reference Manual: Commands: ... .MODEL (Model) ... General Form: .MODEL <model name> [AKO: <reference model name>] + ... ... Example: ... .MODEL QDR2 AKO:QDRIV NPN (BF=50 IKF=50m) (from Berkeley SPICE3: Field separators are blanks, comma, equal (’=’) sign, left or right parenthesis; extra separators are ignored) Bernhard |
Re: Sawtooth waveform by simple BJTs, but dips at the top.
On Mon, Mar 24, 2025 at 12:31 PM, Andy I wrote:
Yes, You are right, changing Cje from 8pf to 0p will shorten the depth of this glitch from -39.6mV to = 36.7mV. Contribute about 2.9mV improved.
?
I take AKO example for reference from the following:
?
Just some info to note.
?
Thank you for the discussion.
?
Best regards. |
Re: Sawtooth waveform by simple BJTs, but dips at the top.
On Sun, Mar 23, 2025 at 10:03 PM, <ericsson.sunshine@...> wrote:
According to , the format is like this:
So you could write:
Parentheses around "Cje=0" should be optional.? Also, I might be mistaken but you might need to remove?the space between "AKO:" and the original model name "2N3904":
In any event, add that line as a SPICE Directive anywhere on your schematic.? Or add it into a separate text file that has your model definitions, if you prefer doing it that way.??Then change the transistor's value to "2N3904_mod" and it should use that Cje value.
?
The keyword "NPN" is not needed when using a .MODEL definition with AKO.? It is not shown in the LTwiki, and my assumption is that the "NPN" is neither needed nor desired.? Since you are picking up the original 2N3904 model definition, and that model already has the "NPN' in it, it is not needed to add "NPN" a second time, and it might not work correctly if you happened to type anything other than "NPN".? But I have not experimented with that.? My advice would be to stick to the format shown in LTwiki and leave "NPN" out of that .MODEL command (SPICE Directive) with AKO.
?
Andy
?
? |