Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hysteresis for the SW in LTspice question

547 views
Skip to first unread message

Maynard A. Philbrook Jr.

unread,
Dec 25, 2013, 2:31:42 PM12/25/13
to


I am trying to emulate a spark gap effect using the SW component in
LTspice and the parameter Vh = xxx seems to allude me !

The help file leaves a lot to be desired and network searches
simply point me to the same help file or youtube videos with no sound
and very blurry images.

Is the value for the hysteresis absolute below the trigger or is an
offset from the trigger?

I will say this, after experimenting with the values, I find that in
this circuit I am playing with, if I don't get the Vh very close to the
Vt value, Ltspice will never complete the simulation run, it just sits
there and loops on some calculation that it never comes out of.. I
Suppose I can change the step point, I using the default for now.

P.S.
The load this is shorting is from a secondary side of a HV
transformer, much like a car coil would be.

Jamie

Lasse Langwadt Christensen

unread,
Dec 25, 2013, 3:16:53 PM12/25/13
to
http://ltwiki.org/index.php?title=S_Voltage_Controlled_Switch

would the neonbulb with changed voltages work ?

-Lasse

Jim Thompson

unread,
Dec 25, 2013, 3:34:41 PM12/25/13
to
Often you need to force a maximum time step to get LTspice to find a
solution... its defaults are too loose for negative resistance
situations.

...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.
Message has been deleted
Message has been deleted

Maynard A. Philbrook Jr.

unread,
Dec 25, 2013, 4:50:36 PM12/25/13
to
In article <a02bb965-53de-4e70...@googlegroups.com>,
lang...@fonz.dk says...
I got it, it appears that the Vh parameter plays two roles here.

- numbers creates arc intersection, much like an arc-cardinal function
which can form an arc wave in the load effect of the switch. Setting
the Vt and Vh -0..-1 sets the arc and offset for the Vt. I guess one
could use that to make selectable raise/fall rates.

Using positive numbers does the OFFSET of the Vt (trigger). This means
If i would to do this, Vh = 1, that would put the Vt at Vt+1 and Vt-1
etc, which makes sense. but the help file does not explain this to you.

Jamie



Message has been deleted

Jim Thompson

unread,
Dec 25, 2013, 7:12:50 PM12/25/13
to
On Wed, 25 Dec 2013 13:24:13 -0800, Fred Abse
<excret...@invalid.invalid> wrote:

>On Wed, 25 Dec 2013 14:31:42 -0500, Maynard A. Philbrook Jr. wrote:
>
>>
>>
>> I am trying to emulate a spark gap effect using the SW component in
>> LTspice and the parameter Vh = xxx seems to allude me !
>
>Level 1 Vh positive:
>
>Switches abruptly at Vt-Vh and Vt+Vh
>Hence Vt=1 and Vh=0.5 will switch at 0.5 and 1.5
>Vt midway between switching points.
>
>Level 1 Vh negative:
>
>Switches smoothly (polynomial fit) at Vt-Vh and Vt+Vh
>
>/Examples/Educational/Vswitch.asc demonstrates this. You need to play with
>the .model directive to see the two modes As it comes, it uses Vh negative.
>Play with it to see how it works. This is what most people ever need.
>
>Putting "level=2" in the .model line, with Vh negative gives a function
>dependent on log(Roff/Ron)/pi, and log(1/(Roff*Ron))/2, with a tanh limit
>function. Jim would like that ;-)

Yes, indeed!

>You probably never need worry about level 2.
>
>It's all in the help file, just not either intuitive, or well explained.
>
>LTspice also appears to honor Pspice switch syntax, which is different,
>too.
>
>>
>> The help file leaves a lot to be desired
>
>Yup
>
>> and network searches
>> simply point me to the same help file or youtube videos with no sound and
>> very blurry images.
>
>Par for the course.
>
>>
>> Is the value for the hysteresis absolute below the trigger or is an
>> offset from the trigger?
>
>See above
>
>>
>> I will say this, after experimenting with the values, I find that in
>> this circuit I am playing with, if I don't get the Vh very close to the
>> Vt value, Ltspice will never complete the simulation run, it just sits
>> there and loops on some calculation that it never comes out of.. I Suppose
>> I can change the step point, I using the default for now.
>
>Post the relevant .asc, and let's see what can be done.
>
>>
>> P.S.
>> The load this is shorting is from a secondary side of a HV
>> transformer, much like a car coil would be.
>>
> Like a spark plug?
Message has been deleted
0 new messages