开云体育

Date

Compiling and publishing other group's member modified models

 

Hello,
Recently I compiled several models created by another group's member into one single library.
Moreover, I slightly modified them for my need but I think it could be useful for other people here.
I tried to contact the original author on his own email to ask his authorization, but I didn't have his reply yet.
Moreover, it seems that he didn't come on the group since a long time.
His there a rules on the forum for this kind of situation, or am I free to publish here without his authorization (but by mentioning his name however...) ?
Thanks a lot in advance for your advices,
Pascal


Re: How to create IEC 61000-4-5 surge waveform in time & s behavioral ?

 

On Tue, Mar 18, 2025 at 07:28 PM, Tony Casey wrote:
On 17/03/2025 03:40, ericsson.sunshine via groups.io wrote:
Just to note, in the latest LTspice 24.1.5, it will have the following message... It seems 'SCOPEDATA=' is forced to replace the 'file='.
Looks like, compatible issue between newer & older...was used to the older XVII...
?
"Monotonically increasing value expected. You may want to use SCOPEDATA=<filename> instead. (See the LTspice help for more details.)
1.00E-09,0.9088###>
1.00E-09<###,0.9110"
The look-up table has been updated for increased precision. New zip uploaded.

--
Regards,
Tony
Hi, Tony:
?
Thank you for your update. you are so kind.
?
For a little while, I was worried that the new version will bring new issue of those 'Don't look up' problems.
You give me hope.
?
I am grateful.
?
Thank you very much.
?
?


Re: proper way to simulate fluctuating load for voltage regulator

 

I usually just step a parameter:
.step param R list 0.1 1k 1meg
(Type "s" and put this in the "Edit Text on the Schematic" window that pops up)
Now edit the load resistor's resistance value to be "{R}".
Run the simulation. This will step through 3 iterations of the simulation, with load values of 0.1, 1k, and 1meg ohms.
You can also:
.step param R 1 101 10
which steps 1 to 101 by increments of 10, although you will get 10 runs of the sim. You can't go crazy or it will take forever.
This works for practically any editable value in LTspice.


Re: How to create IEC 61000-4-5 surge waveform in time & s behavioral ?

 

开云体育

On 18/03/2025 08:27, emilien.sabard via groups.io wrote:
Same thing with 24.1.4
C:\Users\NAME\Documents\Simulation\ESD\IEC_61000-4-2_Test (1)\IEC_61000-4-2.inc(201): Monotonically increasing value expected.
1.00E-09,0.9088###>
1.00E-09<###,0.9110
The look-up table has been updated for increased precision. New zip uploaded.

--
Regards,
Tony


Re: How to create IEC 61000-4-5 surge waveform in time & s behavioral ?

 

开云体育

On 17/03/2025 03:40, ericsson.sunshine via groups.io wrote:
Just to note, in the latest LTspice 24.1.5, it will have the following message... It seems 'SCOPEDATA=' is forced to replace the 'file='.
Looks like, compatible issue between newer & older...was used to the older XVII...
?
"Monotonically increasing value expected. You may want to use SCOPEDATA=<filename> instead. (See the LTspice help for more details.)
1.00E-09,0.9088###>
1.00E-09<###,0.9110"
The look-up table has been updated for increased precision. New zip uploaded.

--
Regards,
Tony


Re: How to create IEC 61000-4-5 surge waveform in time & s behavioral ?

 

开云体育

On 18/03/2025 10:27, Mathias Born via groups.io wrote:
Your are telling LTspice that you want the y-value to be 0.9088 and 0.9110 simultaneously at time 1ns. What would be the correct behavior here that universally applies to all use cases?
?
Best Regards,
Mathias
?
On Tue, Mar 18, 2025 at 08:27 AM, <emilien.sabard@...> wrote:
Hi,
Same thing with 24.1.4
C:\Users\NAME\Documents\Simulation\ESD\IEC_61000-4-2_Test (1)\IEC_61000-4-2.inc(201): Monotonically increasing value expected.
1.00E-09,0.9088###>
1.00E-09<###,0.9110
This is my fault, my spreadsheet truncated the number of decimal places in the table. I'll upload a fixed version, presently. Interesting that it was previously accepted without error.

--
Regards,
Tony


Sawtooth waveform by simple BJTs, but dips at the top.

 

Hi, :
?
I have uploaded the file named '20250318_bootstrap time-based triangle-wave generator for frequency sweep.asc' at temp.
?
The idea is to generate a sawtooth waveform for jittering in PWM.
?
But at the top peak, Vout dips, it shows flaw of discontinuity. The image showing the phenomenon.
?
If you could share some opinions to fix it, I much appreciate you very well.
?
Wish you all happy & healthy.
?
Best regards.


Re: How to create IEC 61000-4-5 surge waveform in time & s behavioral ?

 

Your are telling LTspice that you want the y-value to be 0.9088 and 0.9110 simultaneously at time 1ns. What would be the correct behavior here that universally applies to all use cases?
?
Best Regards,
Mathias
?
On Tue, Mar 18, 2025 at 08:27 AM, <emilien.sabard@...> wrote:

Hi,
Same thing with 24.1.4
C:\Users\NAME\Documents\Simulation\ESD\IEC_61000-4-2_Test (1)\IEC_61000-4-2.inc(201): Monotonically increasing value expected.
1.00E-09,0.9088###>
1.00E-09<###,0.9110


Re: How to create IEC 61000-4-5 surge waveform in time & s behavioral ?

 

Hi,
Same thing with 24.1.4
C:\Users\NAME\Documents\Simulation\ESD\IEC_61000-4-2_Test (1)\IEC_61000-4-2.inc(201): Monotonically increasing value expected.
1.00E-09,0.9088###>
1.00E-09<###,0.9110


Re: Incandescent lamp model

 

Here is a corrected symbol subckt:
?
* block symbol definitions
.subckt lamp 1 2
.param lamp_voltage_rating = 120
.param lamp_power_rating = 20
.param start_temp = 20

.param Rstart ?= (lamp_voltage_rating*lamp_voltage_rating) / lamp_power_rating
.param Tstart ?= start_temp
.param T ?= temp
.param alpha = 0.004403
BFilament 1 2 R=Rstart*(1+alpha*(T?Tstart)) Rpar=1G
.ends lamp
?
I added an equal sign to each param statement, and separated the user settable params from the internal params used for calculation,? so reading is clearer.
?
Three issues:
1. "alpha" param was defined twice
2. All of the lamp symbol attributes should be empty for a hierarchial block. "Value" was populated with "lamp".
3. I used a B device as a resistor so I could use Rpar to prevent "floating node" message.
?
I didn't check functionality or equations, just corrected problem so it would simulate.
?
eT


Re: Parts Number Re-numbering

 

Thanks for reply quickly.
I tried again a and it works now.
?
Thanks again!
?
Hidehiko.


Re: Incandescent lamp model

 
Edited

On Mon, Mar 17, 2025 at 08:48 PM, Richard Andrews wrote:
?"can't resolve .param r=rstart*(1+alpha*(t-tstart))".?
Is tstart defined?
?
Put curly braces around the expression?
?
Andy
?


Re: Incandescent lamp model

 

I think I am finished for the day.?
I rewrote the device file using just a resistor and some equations, but I can't get passed this error "can't resolve .param r=rstart*(1+alpha*(t-tstart))".?
?
Files are in temp "LampModel-RA.zip".


Re: Incandescent lamp model

 

开云体育

The difficult bit is deriving the temperature from the applied voltage, or? the filament current. However, I think you can use a 'backwards'? trick, by defining the temperature as the initial condition. It should be well above room temperature, but not so high that the filament glows. Try 300 C. I posted some data about the tempco of tungsten a few days ago, which gives you alpha.? Using the equation R=Rcold?(1+alpha?(T?Tcold)), with R0 = room temperature resistance and To is room temperature you can get R at T = 300 C.

On 2025-03-17 23:26, Richard Andrews via groups.io wrote:
I put this together. Hope you need it.
?
R0 = lamp voltage rating^2 / power rating
T0 = start temp
T = temp
alpha = temp coefficient of tungsten/filament material
?
R=R0?(1+alpha?(T?T0))
--
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: Use a TABLE function in a BV to make a custom defined function.

 

Andy
AWESOME !!! ?It works !!
Thank you so very much!
?
So weird that the text function creates a net, so I just mats a net with the OUT4 name and can probe that.
?
This will be useful!
?
Thank you!
JD


Re: Incandescent lamp model

 

I put this together. Hope you need it.
?
R0 = lamp voltage rating^2 / power rating
T0 = start temp
T = temp
alpha = temp coefficient of tungsten/filament material
?
R=R0?(1+alpha?(T?T0))


Re: Incandescent lamp model

 

If you model a filament lamp, I am learning you can model it as a resistor with a defined power capability.


Re: MAX9939 is there any model available for LTspice ?

 

Good point, I just did now :-)


Re: Incandescent lamp model

 

开云体育

Yes, the low Q of the Wien bridge is not good for low distortion. I intend to try out that MFB circuit when I get a chance.

On 2025-03-17 21:45, Tony Casey wrote:
Perhaps you'd entertain a non-Wien Bridge oscillator: MFB_Oscillator. A working example sine wave oscillator schematic using an MFB (multiple feedback) topology. It uses no more parts than the usual Wien bridge and offers significantly better (distortion) performance.
?
--
Regards,
Tony


On 17/03/2025 20:33, Bell, Dave via groups.io wrote:

I was trying for the “classical” hardware implementation (cf. HP201C, e.g.)

?

I got a LTspice model working well, using a diode and filter feedback to adjust a behavioral resistor, but that’s cheating.


--
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: MAX9939 is there any model available for LTspice ?

 

开云体育

Have you asked ADI for one?

On 2025-03-17 21:42, Michael.Baus via groups.io wrote:
Thanks 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.