RSRC LVINLBVW ̤`<_zJ^ b_ `anK ُ B~7fw3Br,e&ILVINDcos.viLVINGaussian White Noise.vi78  @error&@@ Gaussian noise pattern @seed@ standard deviation @samplesPTH09Analysis 1siggen.llbGaussian White Noise.vi PL cL P d-`  P   cVP"@P@flg@oRt@eofudfP Tau, secp dfdP txdP oldP ext P   cZP"@P@flg@oRt@eofudfP Frequency, Hzp dfdP txdP oldP ext P   c\P"@P@flg@oRt@eofudfP Sweep Time, secp dfdP txdP oldP ext P c^P"@P@flg@oRt@eofudfPNumber of PointspdfdPtxdPoldPextJ P@@@P0!!! c 6P"@P@flg@oRt@eofudfNP@&P@@ t@@ yDamped Cosine Wave with Noise0x@"P@ @ dfd0P@"P@ @ txd0P@"P@ @ old0P@"P@ @ ext P   c\P"@P@flg@oRt@eofudfP % Random Noisep dfdP txdP oldP extb P         @P b P         @P  cjP"@P@flg@oRt@eofudf"P!Error, Undersampled Waveformx!dfdP!txdP!oldP!extj Pp@fP0@PP!!!!l@bP0   !!!$@P0!!!B@8PP   ` y c c$ c` c40@&P@@ t@@ y!&P@@ t@@ y$P@@ t@ @ y c@ t c@ Frequency, Hz@ Tau, sec c@ Sweep Time, sec c cD@ % Random Noise@Number of Points@ Sweep Time, sec@ Frequency, Hz@ number: 0 to 1@ Sweep Time, sec@ % Random Noise cL c c  c c c c c c c c c c c dP``` d@ Lx   D ^Q ~@?@$@????^@$@??w Noise-Free "5CJLG<- &.22/( !##!                "#&'( * + - . / 3 5 6 8 ? A B C D E J K N O Q R U V Y [ e f q r w  Noise Added$0<KJK:# '2(7((  *                    !"#$&'() *+- ./01 34 567 8:;<=>?AB CDE G HIJK L N OPQRTU VWX Y[\ ]^_ abcde fhijkl nop q rs uvw  Time, sec Amplitudea]f@ !TD-@YB@@@4D@P,pDPXPtV@p\@P@tt @@hDHhDDTX`2@X2"XB@@@fvVVIDSDcos.viVIDSGaussian White Noise.viPTH0fi386@codeXEwdE\EPPUEd$=9= ÐӀ}}E$EEɍHHH HH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DžPTAB((QRud$ZY,Ul$SQRVW}#QRU^d$ZY_^ZY[]ÐUl$SQRVWt$$|$(SQRVWE=EMEE =9E<EEEQRPE$u P$h9d$ ZY=E =EPEEXPEEXPEEXQRhhuhPED$XhҜd$ZY=jEEQRhhuhPED$Xh胜d$ZY=EEm}L_^ZY[ÐuP$P$Rd$ _^ZY[]ÐUl$SQRVWuӰF ԰FF@ְFDQRhU蠗d$ZY_^ZY[]ÐX[x3W   ' v o vM~$   @*R7q-+YOg=t|%& D ^ x !8CODEXK>KSweep Time, sec\ssNumber of PointsHDJWX Z% Random NoiseHxJHJ!.!.HJQ^Q^HJHJHܕJ+=,=hD)*Error, Undersampled Waveformi Damped Cosine Wave with NoiseHD$Jf@sQfAsQUD$uu Time, secU D$^#kM| AmplitudeHDJstW;< Noise AddedHDJHDJ22HDJ""HDxJ$$HD(J  ZD* 7W* 7WTime IncrementsD`'''t = i*dt; y =exp(-t/T)* cos(2*Pi* v*t);MD!("(yMD!!vMDTND,9,9PiMD#S`S`iND#ANANdtHDdJ " "MD#($(tRD&X3y&Y3yBundleRDUvVvBundleSDClusterHDԏJ00MD<C=CyHDАJ+B,BHDȐJkxkxcD2e?2g?Gaussian White Noise.viHDJ2?2? aHeH ac  FPHPDcos.vi&FPHP8J8&LCr&$XL\X7,  @P (4 B  K0  @ 2 @p5p5l9@ 2 o6o6k:0X4D| P@Pp 1h4 BL  (K0 L 1@ 2L @'p5p5l9@ 2L '1o6o6k:0XL|@P=a4 B =L0K0  Na@ 2 @NWp5p5l9@ 2 Wao6o6k:0X,|h0 w &BdA@Pprd(4 BL r8K0 L @ 2L @p5p5l9@ 2L o6o6k:0XLD|~XX̏JJȏJ|'48Uh-rDad;Xi 1;Xi HR "O D' d@P~B4B p 2  4'bC'bC'bC<Sp$P & d p 2  8@'cB'cB'cB0 _ #D0 w P0 W D>g4Q R%4 6 VuK0  RdA0 7  R0  P@ 6VSSR .w.w*{.w*{ p 2hVl9KKKKl9ddl9 ,, h,h   .w.w*{.w*{a;Xi 1;Xi  T h.w.w*{.w*{, \ a;Xi| 1;Xi |01x;Xi 0X("V1;Xi| @Pd4 B @K0  @ 2 @p5p5l9@ 2 o6o6k:0X|=&Xp$8 2 KK, Xld<8  2L /ЈKK8 hB8  2 P_؈KK8 hB, !nhh8 hLB, 0x8 hLB, 0,8  2 KK,,X(d8 2L KK8hB,Xx(,0 J"&  $0L ###$$$d#P@&& (8h"B8h B, @ `8h BDO@4"]f%nf KDO`4"0a"hfat K8hB8v *>uKK<O $8hB<O #8hhB8h B<O 0"8hB<O( H |4 G(pK (<(<(<(<(<YYY0X ,ppT,Tpp8hBL : 0J0J/K.L-MTau is the decay parameter for the exponential decay. The units are in seconds. Tau is the time for the intensity of the decay function to decrease to 1/e of its original value. L :L !-0J0J/K.L-ML : Q]0J0J/K.L-MFrequency, in Hz is the oscillation frequency of the cosine wave. Caution: do not select a frequency higher than the Nyquist frequency or you will get strange results due to undersampling of the waveform. See the text on p. 285pZThis is the total time displayed on the graph. It is the maximum value on the time axis. L : 0J0J/K.L-ML :L 0J0J/K.L-MThe number of data points displayed. The time values are scaled so that the first time point is 0 seconds and the last is the value of the sweep time. Thus the time increments are tfinal/(N-1). Sets the amount of random noise added as a per cent of full scale. Since the maximum value of the cosine function is 1, the random noise is scaled by the percent value times 100. When this light is lit, the waveform is undersampled. Note that the waveform can be severely distorted, for sampling frequencies that are less than 10x the frequency of the cosine. This is an x,y type graph. Two items are plotted: (a) the function without noise (solid line). and (b) the function with added random noise (open circles). Note the peculiarities of forming a multiple x,y graph. See p. 230-231 of the text book. p^uT !| < &PR $$%#4 B"  uK0 o"! p>g0 C" .>g4 6@e?tRuK@ :"J!tf?f?]H@ :"L!tv/v/o6@ :"K!tg>n7g>0 2@(aHfI 0 2@-ad 4 3@^tuK0 2- 4 3^]$luK4 6ruK %%8%h%0 2( 0 " D>g4 $":uK0 " `y VBDHPDcos.viLVINGaussian White Noise.viP$PTH0WԀ@BDHPIďJ8W.DrW,  RpR-0 D&0 @p,t4 B$K0!@p(p! 44! B3,K0"@p0h4" Bh#4K0#@p ,p4# B% 4%D=(!4%D,C . %"(H&4%/D3$SD4j%4%0194N?C9j% %84%0p2C*N4H/j% % <*L4%0/9*C4>/j% %04%D+K . %d$<4% D) 8XKL&Jh*<0K`"'0'@p@*"4' t;.'4'K  3* $K( (@t \ 4(K  7#K) )@H $<4)DTT?,)t) )"( ) @8) ,)# 6) ) 4)K  8K* *@% P(4*/D%Kk0i*'*4*/DXIi.8*N )|9T90* 3 P !tA4*K  :*;2K+ +@ `,+( L; P+ ` +@( `4+ U .+ ` 4+K <QbYK, ,@ 4,DJ` .4,K =?PGK- -@l - 4- B #DK4./DX"B/j.$4.0$>(=*2$j4.K ?!*%K/ /@/$ /$ t4/D 8/4/0$@2=7j/ /$</ /d/ /d// H4//DAa i4/0$H(2-j/ /$@@/Px0AS(C4/ B%W4zK40 B TwK41 47 .41"  BM_VhQc 01 38 0A,1pD8 1 1@px41D9$  41DT8E  41DtK .141D8D .1,1px!814DT t<015 `KTd\ 1@ hD015 @Ql tp 1@ H 1@ ,1t1t141D0Hp .41"`M6? :, 1"(t 1 @1,1#@XL141V .1 1 015 OT d\1 1@ 1D41"`J6?:41LU( . 1"(X 1 @hX1,1#@HNX1 1  hd41/D ,Hh2g41D Dt .814DxV$v4<@ 1Pp1X015PVf^1 1@hX015RV#f^1 1@"4P015$Sn$vr 1@ P 1@ p,1Pp 1@pD410 &8[f`i1  1@|hL,01;|U 81:D3hL 1@|H11,01;|4T 141DGP.01;|V 1 1@||p1,1|41DLGP.1P41DSTP.1,0410DYG\Qi41 B||K 2"d420 GQLi2 H2 2D420l!Q\Vi2d 2@d2 H 2"4!@P420 0XNcX 2"h2 2\!tP2 42/D%hm/|Vq420tXc]g420NXSg2(@2PizMp02 3! iz42DC 420 NXSg42DTFl 42D$ :,  42/D#`@`(2tv82#2$2#$420##84KV%P8420##L5K VP8 2#"#x# 2#"#d2 $ 2 @(&2&L(42 B1tK3d 3Ph3$<(3))* 3! + )43/D$Jj1j3'%*3(L3*L43&W, 3&L(3&',( 3 (3& 3"(%(l430%4|Ze_j3&L 43" 0_hc)L<3 h0.| 3 .*.|3',43/D'.N 2"#3(L*L430'`%4I># 3! +T' 3 ()x(,3%Ht 3'` '*L43" $\-_hc,3( 3 @,t(l3%43D$A 3(3),3#@.&430 (Q[Vi 3%4&l) 3%40,@),3 ` 3%4 ,, 3* 3'` ,**L,3 $<(430'`%4I># 3! ,(430 'LQ[Vi430! (s}xq430! }q<3 ` d&L3(L,3X&(l430%4*8PZUj430%4)8+PZUj43D)A$ 3*,3#%,(l430! , s}xq|3. ,0,t(\"""4D hHh@8 @3P.P)DN3.|43 J- ;DxK04 3- )D,4p-- 4@p..P.|4.|',44D.@x M4; Di 1; Di 1; Di ,4If the acual sample frequency is greater than the minimum sampling frequency, then this function is false and the indicator light remains off. If the actual sample frequency is less than the minimum sampling frerquency, then the function is true and the error light is light. L4 :- %+0J0J/K.L-M4wThe frequency of the operator set cosine wave is multiplied by 2 to determine the lowest possible sampling frerquency. 4yThe actual sampling frequency is determined by the number of data points chosen divided by the total sweep time chosen. d4MOne is subtracted from the total data points for calcultion of the interval. x4cConverts the floating point number to a 32 bit integer as required by the gaussian noise generator.|4fThe array containing the random noise is added to the the array contining the values of the function. 4sIn order to plot two waveforms on the same graph we must follow the procedure given in your text book on page 231. L4 :! kw0J0J/K.L-Mh4RThe time (X array) and the amplitude (Y array) are bundled together for plotting. L4 :8 2>0J0J/K.L-Md4PThe time increments used in the for loop are = sweep time/(no. of data pts.-1). D4-This is the for loop structure that calculates the various values of the dependent variable (amplitude) as a function of a sequence of values of the independent variable, which is time. To the value is added a user selected value of random noise. Note the scaling factors applied. To simulate noise, we use the simple random number generator (dice) that generates random numbers between 1 and 0. Note that real-world randomness seldom follows this pattern. Instead the noise is more likely to follow "the bell shaped curve", i.e. is Gaussian in nature. 4GQcQG\47884DqUUVV\4LXL4\SH|HHH4"PQQ4Hc4 XXY4This is where the calculations are performed. (1) The ith time is calculated as i*dt. dt is the time increment calculated from the total time an the total number of data points. (2) the noise-free function is calculated. 44x_kkx4x`kkxL4 ,ggA A > EV El  V U > >4.6VFF4,tcL4( cVVLL40>/>U4"4^ J ^]J]]]L4 \N\ : N  S C C K K4 PlP:2$2:4"Z\Zl[\P*[*P4rr4H  pL4h \H\H:^H^4~DXLd؏JďJE;>F-r48QcQHC9CH4 H!aa!>H/4@- "" -4@ $1@ )0+&% T,0DDL$ h83t L0,\|&H&% ! 0T1M; Di ,4N3"OlW; Di 1; Di 1; Di 1; Di =./L/@MMMM,N842- *CKK,6-N0. O4862! jyKK 88h-B88h!B8P48 CP$1d@K$9PhPQ$QxS9Q$D91DOO@d`WF 9P$PPh493P$OG@tPH| 9P$\PP9Qx493P$$IPt`X| 9P$"Q#493P$PEKdUtPl 9P$ QD493P$QA@dKtEl9S493P$PFUd`tZl\9p $#'`%4 ! P$ ||9P$! .| %4'`# |0 $\h9P 9P$ ,Q,9T4HT9hVV  9#Q$9 T9$Qx,9 S*L*8928 1@KK8;h8B8;h PB;:%11; 211;t : $ 0 0;%c ( @UUAoHH(*>>n>>@?    ̀ π 0TahomaTahomaTahoma010RSRC LVINLBVW ̤ 4RSID`}>T}?HH}?<} ?􀓣 @@ }@|@yA$ApLAȟBL\{ByB\~CP~ C!Cz"DD#D0$Dܸy%E(l&Et\'E(FL{)Fxt*FЅ+GH,GȄ-G.HDH/H؛0H$1I<2I3I젦4J8}5Jt7J؜9K$:KKظK,ۣKLLL4$zrsDlHxHDcos.vi