开云体育

Date

Re: .STEPping a .WAVE file output

 

On Tue, Mar 25, 2025 at 11:42 AM, Andy I wrote:
Version 24.1.6 is not out yet.? Promised for sometime soon, very soon.
?
It's surprising , will this feature '.wave {Stp+".wav"} 16 44.1k V(Out)' be added-on ?
If 'Yes', it's really powerful new generation. Worth to boost high to 24.10.5, higher order in higher level.
?
Thank you very much.
Best regards.


Re: .STEPping a .WAVE file output

 

Version 24.1.6 is not out yet.? Promised for sometime soon, very soon.


Re: .STEPping a .WAVE file output

 

On Tue, Mar 25, 2025 at 09:27 AM, <ericsson.sunshine@...> wrote:
Hi, :
?
I have tested the following methods, plus the *.bat running under Windows OS.
?
"
.step param stp 1 6 1
.param fs {stp*1k}
.wave {stp} 16 44.1k V(out)
" --> it generates the file 1, 2,...,6
?
Then run the batch file, as following: (save it to file & name it to ***.bat)
"
?
?
Oops, I found the ".step + ,wave" method only works in LTspice XVII, not supported in LTspice V24.1.5.
?
In V24.1.5 I , it only creates a file named "{stp}".
?
Best reards.


Re: .STEPping a .WAVE file output

 

Hi, :
?
I have tested the following methods, plus the *.bat running under Windows OS.
?
"
.step param stp 1 6 1
.param fs {stp*1k}
.wave {stp} 16 44.1k V(out)
" --> it generates the file 1, 2,...,6
?
Then run the batch file, as following: (save it to file & name it to ***.bat)
"
@echo off
for %%f in (1 2 3 4 5 6) do (
? ? if exist "%%f" ren "%%f" "%%f.wav"
)
echo Renaming complete!
pause
"
?
Not sure if that's my naive, I tried the website of Analog Device, it doesn't release LTspice 24.1.6 yet.
?
Have a nice day.
Best regards.


Re: Singular matrix

 

Some of the things you can try (no guarantees!) include:
  • Remove voltage sources and replace with "Nortonized" (current) sources.
  • Add a small GSHUNT, perhaps 1e-12 to as much as 1e-10.
  • Add a small CSHUNT, perhaps 1e-15.
  • Use SPICE models for similar (IC or transistor) parts from other manufacturers.
?
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.

Go to the web page: /g/LTspice/topics. Click on Files in the list on the left. Then click on Temp. Then click on New Upload in the blue box at top left. Click on Upload File in the drop-down menu. Then send a message to tell us that you did that.

On 2025-03-24 17:59, pilou via groups.io wrote:
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.
--
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.


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

 

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: .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.?
view the netlist and right click on the netlist and select "generate expanded listing".



On Mon, Mar 24, 2025 at 4:48 AM, Tony Casey
<tony@...> wrote:
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.
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.
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.

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: .STEPping a .WAVE file output

 

Maybe it's the negative values??
?
(Clearly, guessing here.)


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:

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

 

开云体育

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:

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

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

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

?

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


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

On 24/03/2025 00:32, Andy I via groups.io wrote:
If I remember correctly, LTspice 24 v24.1.* screwed around with (messed up) AKO.? Since you are using v24.1.5, those errors might be a side-effect of that.
?
You could run an experiment (probably a DC sweep) to see if it picked up the NJ20 model, or if it fell back to the standard NJF model with defaults.
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:32, Andy I via groups.io wrote:
If I remember correctly, LTspice 24 v24.1.* screwed around with (messed up) AKO.? Since you are using v24.1.5, those errors might be a side-effect of that.
?
You could run an experiment (probably a DC sweep) to see if it picked up the NJ20 model, or if it fell back to the standard NJF model with defaults.
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