Learning about oscillators in LTSpice

Mike has installed a gaussian function, called white()

Just like rand and random, it replicates and does not reseed.

However, somehow he has a very decent gaussian distribution, but the range is limited to +/- 0.5 [I think it is] Have NO idea how he does that. The distribution just has a small 'cutoff' with no long tails extending out.

Reply to
RobertMacy
Loading thread data ...

That's interesting; I'll try it.

--

John Larkin         Highland Technology, Inc 

jlarkin att highlandtechnology dott com 
http://www.highlandtechnology.com
Reply to
John Larkin

noise() is peculiar. You have to say V = noise(something).

If 'something' = K*TIME, it seems to work and give a new value K times per second. But if K is large, it sort of runs out of steam pretty soon. Crest factor is only about 2.

If 'something' is K * V(VA) where VA is a sine wave source of some frequency, to keep 'something' from getting too big, weird things happen again.

I haven't quite figured it out, but it seems to run slow.

--

John Larkin                  Highland Technology Inc 
www.highlandtechnology.com   jlarkin at highlandtechnology dot com    

Precision electronic instrumentation
Reply to
John Larkin

it,

Please, Please put forth the effort to resolve that. Everyone will be happier.

?-)

Reply to
josephkk

'noise' is just too weird.

This is pretty good:

It runs fast, the output *looks* like noise, crest factor is good, and it's very tolerant of changes in time step size. Has slight DC bump at startup, easily fixed with a little more work if it matters.

Version 4 SHEET 1 1044 680 WIRE 208 64 128 64 WIRE 256 64 208 64 WIRE 416 64 336 64 WIRE 480 64 416 64 WIRE 528 64 480 64 WIRE 128 96 128 64 WIRE 416 112 416 64 WIRE 128 208 128 176 WIRE 416 208 416 176 FLAG 128 208 0 FLAG 208 64 RAW FLAG 416 208 0 FLAG 480 64 OUT SYMBOL bv 128 80 R0 WINDOW 0 34 107 Left 2 WINDOW 3 -80 188 Left 2 SYMATTR InstName B1 SYMATTR Value V= VS * ( rand(K1*time) + rand(K2*time) + rand(K3*time) + rand(K4*time) - 2 ) SYMBOL res 352 48 R90 WINDOW 0 63 52 VBottom 2 WINDOW 3 68 54 VTop 2 SYMATTR InstName R1 SYMATTR Value 1 SYMBOL cap 400 112 R0 WINDOW 0 85 22 Left 2 WINDOW 3 63 55 Left 2 SYMATTR InstName C1 SYMATTR Value 1.6e-4 TEXT 704 -24 Left 2 !.tran 0 1 0 5u TEXT 88 -64 Left 2 ;1 volt RMS 1 KHz Time-domain Noise Generator TEXT 240 -16 Left 2 ;J Larkin July 29, 2014 TEXT 664 72 Left 2 !.PARAM K2 = {6582} TEXT 664 32 Left 2 !.PARAM K1 = {3435} TEXT 664 112 Left 2 !.PARAM K3 = {5678} TEXT 664 152 Left 2 !.PARAM K4 = {7777} TEXT 664 192 Left 2 !.PARAM VS = {2.74}

(does that leading space fix the wrap problem?)

--

John Larkin                  Highland Technology Inc 
www.highlandtechnology.com   jlarkin at highlandtechnology dot com    

Precision electronic instrumentation
Reply to
John Larkin

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.