Maker Pro
Maker Pro

Adding B-mode (parameterized) to existing subcircuit. LTSpice

  • Thread starter Mike Rocket J. Squirrel Elliott
  • Start date
M

Mike Rocket J. Squirrel Elliott

Jan 1, 1970
0
I'd like to add a little more "realism" to Mike's example of a neon bulb
by adding a noise to its output using a modified version of yesterday's
random noise generator behavioral model which was posted by Mike:

V=amplitude*(random(100*time))

In series with Mike's neonbulb.sub:

* Copyright © Linear Technology Corp. 1998, 1999, 2000, 2001, 2002,
2003. All rights reserved.
*
.subckt neonbulb 1 2
S1 1 2 2 N001 G
S2 2 1 N001 2 G
R1 1 N001 100Meg
C1 N001 2 {Tau/100Meg}
.model G SW(Ron={Zon} Roff=1T Vt={.5*(Vstrike+Vhold)}
Vh={.5*(Vstrike-Vhold)} Vser={Vhold-Ihold*Zon})
.param Vstrike=100 Vhold=50 Zon=2K Ihold=200u Tau=100u
.ends neonbulb

And have the b-model's time and amplitude variables parameterized like
the bulb's parameters?
 
Top