¿ªÔÆÌåÓý

Date

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

 

I added two photos that show how to construct the waveform both in Simulink and
SPICE. ( Photos directory /g/LTspice/album?id=301365 )

The key problem is that neither Simulink nor LTspice allow to construct the Laplace transform of a waveform.
They only provide a way to construct a transfer function.
For LTspice it was an interesting learning moment as I had never before needed to manipulate the two parameters
of the Laplace function (Window and NFFT). They still work in 17.1.5.

-marcel


Re: Compiling and publishing other group's member modified models

 

¿ªÔÆÌåÓý

On 18/03/2025 21:47, pilou via groups.io wrote:
Recently I compiled several models created by another group's member into one single library.
Do you mean the original author did not belong to this group, but to another group? Or did you mean another member of this group? I understand English is not your native language.
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.
This group has been around a long time. It is possible the author (if they were a member of this group) is either no longer an active member, or has passed on.
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,
If you are not able to make contact, you can publish what you have done, but it is good etiquette to acknowledge the original author in notes in your library, and also mention their name in any announcement (message or upload description) you make.

You can also contact the moderators, as already suggested, for further information that may be available.

--
Regards,
Tony


Re: Compiling and publishing other group's member modified models

 

¿ªÔÆÌåÓý

Hi, Andy. I think you may have misunderstood:

"Recently I compiled several models created by another group's member into one single library."

"group's" is how you would write it in French, but in English it would be 'group' so that 'another' relates to 'member', not to 'group'. In other words, the member is a member of this group, not another group.

On 2025-03-18 21:49, Andy I via groups.io wrote:
On Tue, Mar 18, 2025 at 04:47 PM, <pilou@...> wrote:
(H)is 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...) ?
Do the other models have a copyright of any kind?? Is there anything either in the models or on the page for downloading them, that says they are copyrighted?
?
I think that would be where to start.
?
Do you know that this person actually created the models, or did they collect models from other sources?? That's another consideration.
?
If the other group is readily accessible by the public, maybe the simplest solution with the smallest risk, would be to announce the location of their models in the other group.? But that might not be optimum.
?
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: Compiling and publishing other group's member modified models

 

¿ªÔÆÌåÓý

You can send the email address of the member confidentially to the moderators at: LTspice moderators <[email protected]>, so that you can be advised on this subject.

On 2025-03-18 20:47, pilou via groups.io wrote:
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
--
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: Compiling and publishing other group's member modified models

 

On Tue, Mar 18, 2025 at 04:47 PM, <pilou@...> wrote:
(H)is 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...) ?
Do the other models have a copyright of any kind?? Is there anything either in the models or on the page for downloading them, that says they are copyrighted?
?
I think that would be where to start.
?
Do you know that this person actually created the models, or did they collect models from other sources?? That's another consideration.
?
If the other group is readily accessible by the public, maybe the simplest solution with the smallest risk, would be to announce the location of their models in the other group.? But that might not be optimum.
?
Andy
?


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