RSRC LVINLBVW}8 }D<Ts߀&aEimD ُ B~Se}6^ LVINMoving_Average.vixxP* c8 P+ c RP"@P@flg@oRt@eofudf P!stopx!dfdP!txdP!oldP!ext c~P"@P@flg@oRt@eofudfP  xP  dfdPP  txdPP  oldPP  ext P @vP0@PP@P!!!!l@bP0   !!!    $@P0!!!B@8PPjP*P@P  000*P@P  b P         @P b P         @P  cTP"@P@flg@oRt@eofudf PAveragepdfdPtxdPoldPext P` y`millisecond multipleh y c c$@@ y@ y @!stopP  @millisecond multiple c@ number: 0 to 1  @Average@ y @Average! c cH c c c h PvPvPvP P c cXtdZ0rdJCurrent measurement BMoving Average B 4b6@Y@$@?8v$@$$@??i@$dlH( @ & g 4H@  T@&  H@(f(fLP<8~@0z  @4 VIDSMoving_Average.vii386if~codeHEw$f~E\EPPUEd$=t1=Ð)Ӏ}t}uE$EE48tQRU۝d$ZYɍ`Hƅ\thhUEPd$ZYƅlfxƅp݅(݅ݝ(ƅpfxƅtLLƅtfxƅxHL9ȸ|Pƅxfx"ƅ|PtPHR<ZXPL<Xƅ|fx&ƅH8t+=t&PЙX)=t 1Ãy1 uո8ƅfx*ƅ@ t 689vkVW_^PQYXƅfx.ƅ݅݅@ݝƅfx2ƅ݅(݅ݝƅVW0_^fx6ƅ݅0ۅ<ݝ0ƅfx:ƅ( t?89vkVW_^ƅfx>{ƅVW?(_^VW0_^ƅ}$u ƅhhUEP8d$ fxBOƅ QR6ZYƒRZRZQRSQuh.bd$ ZY=rl~E\EPQRPQhAcd$ZY}vuQR߽d$ZYÐQR蛲ZYaTQRPEP$Q鳢d$ ZYÐQR.d$ZYQR˲d$ZYÐQRfd$ZYÐ l~E\EPQRPyKcd$ZYÐ}vƅfxF/EhxHP<Xu"T=-Txƅdfx48tQRUBd$ZY}t}uH}v}+uvQRPE@$bxd$ZY==t p h搐ÐEw |m~E\EPPUEd$=t=t=t=tEw Ew‰ppVLFX@'PUEd$=uÐP$m~뱸n~Ðx&p4n~p @'PUEd$=uÐP$Rn~PZ$n~^P$n~$P9$ n~Pl$ 7o~P$ qo~vP$ o~QfJQ      R Wf~  8 P h . r '/7?G%u} )CODEHD%6.1Oldest compatible LabVIEW.H(MD),DDp>PP*P @AverageP  @!stopfbMoving average, This program calculates and displays the moving average, with a pre-selected number. First of all, the program initialized two shift registers. The top shift register is initialized with one element and this register continiously adds the previous value with the new value. This shift register keeps the total of the last xx measurements. When dividing the results of the add function with the pre-selected value, we can calculate the moving average value. The bottom shift register contains an array with the dimension "Average". This shift register keeps all values of the measurement. The replacement function replaces every loop the new value. This method is very efficent and fast, because we using the replace element function inside the loop and before we enter the while loop we initialzes the array. This VI was created in LabVIEW 6.1.GH$P""򐁂3030303030303003033333333333033333333333333333333333333333333030ff`f````````f`fff```````f`################################################################################################################################|DTHPD(F88t{~t! @ number: 0 to 1 @ y@@ y @AverageP  zjP*P@P     *P@P   @!stop(@millisecond timer value*@millisecond multiple = 0D00 D`00D0`DD0D00```    `  00x  xx  `$LLL` PDstopH$dF  NDO \O \ H(E5<6<HDD)w0w 0ZCPCPMoving AverageSD`m`mAverageH:q~q~D T T~~~Select the moving average and then run the VI. The chart will show the current measurement and the resulting moving average.`D++Quotient & RemainderMDZgZgyHDH jwjwHDD:R_R_HD4.<I<I`D  millisecond multipleHD,  MD  yHDP HD$$!!^DuFuEIinitialize two shift registers. The top shift register is initialized with one element, then continuously adds the previous value with the new value. This shift register keeps the total of the last x measurements. Divide the results of the add function with the preselected value (Average) to calculate the moving average value. The bottom shift register contains an array with the dimension "Average". This shift register keeps all values of the measurement. The replacement function replaces the new value after every loop. STOPSTOPSTOPSTOP  88  i i }1}5 35 FPHPMoving_Average.vi tFPHP &8  s8h|BXL L ,8  l 80|<3P|p4O ! 24 OP<  rP PD P! ! ! ! ! 0|1(| p^0 ! /0p4 +lg4 N N ]0 C 0Z@ 8J!;FJW@ 8L!)Z8k@ 8K!)F8W0 k! &CMn0 J& &6X0  h7 x@`00 44 4 P0 2( 89 0 2- ij 4 24=@O@4b6$@b6 @p0 2(}1~6 0 2-36 4 6v1|0  _ !4 $BQ0 |h |l |"@ P8_ @4 F| _n4  2| p@ 2| @nwphphll@ 2| woioikm0 | n7,  ~|H GE(F 2lj*G< , xL :| q}00/.-,$d D8hB8hPBL @t$d @ |4 |U,  8 BDHPMoving_Average.vi;hBDHP#D8;;g8h!B,;@*<D|4T, d @#h !H0EP4D< @#d0EDTLd @""0E4D< @)` @)#hT` @)d @)#Ld  @)"",),,<:4/T9YWrp@  (p40 5?T Irp  P40 ,=ITNr  7`40 <?IDr@4/9Y; d4 40P4;+V8H1 P40+NV+R$d (p40 DN+I$ 7T40;D+?$44/>^!"P P40<:DYN" xpP40;DYN"P4/"/l $l40X6" l407"l!H`,#h"#84 T`q , p @  05  ,`qh @  @  ,05  \-`hd @ h 05  .hpl p , 4/ @`g <   \`40 $P[Ug <   `40 #FPKg   ,40 `"FPKg 4/  *h ,  t `40 t (%h  t D L@40 t )h ,  tp `40 t *h 4/0jL  hl40 %jL  40 &j  <40 p'j<D`@ @ 0E, @ D`@0E@ @<0E`!4/P0 l p@ p40  +%lp <40, l 7`40 +%l@ x40 l4 J,C4/xTt id D40DZodi D t40DPdoii D840DZd_id4/Pp. 8440hUj_01 @|x0$)|" @|/D0p0%)`K [S @| t,| t@Phy)X4 J YhC4  2 ix0 3 hy |`8()% @T |pT44')k{w4` | d8()%L | Ld4')k{w, "|7"4")!k*t%o0@| `ph<4 J Q`C0@|/D pJZR4 Bp;JCd @|,| 84@P %9A4 J4  C4  24  0 34  -;`#>`;4l2  d43 d4 84\1T!p4+tP4*l4L*Q  47 L p4(6d  4 9  <4)4`45 4 49H  4',5   4 x7 @ ,4(2 4 3 t0|0 @!#h!h!H,!!!!H@P!h!$4 J! !C4  2!  0 3! !0@!"8"! "4 B""C4|/'4|#L0@ d4|-  ~|H2 8MD2nTV$<xL :! 00/.-,!"$8"PD'H&&8h4BL :4  00/.-,@@4D'h;[$&d',t%$0`%&0 ;KC&D @%<&0%& K[S& @% &d' 0%& ;KC @%&,'H @% ','H&' &D0%$;KC" <+ +%o%+&,' 8hBL : jv00/.-,H) |(`!|,Bke%Hq_, 0'&D!)hhxNNL|D  t % l% p  t tD,`@#h+<+wwL7 %o % D D %  9 9 D  ? ?$,"4/x/!p/DSRR#wLw!H"L t p4,(II$" kkSH8__ piipNR$NZZRN<C wwCpwdC2K2dd2 D4%d- hllH||H1KUkkl7/D8(xh<p  D 4 |tGC,; )"!H %nlprinsbWritten by Bart Prins( =((@UUAn *>>*>>@qX  _  f  m o TahomaTahomaTahoma01RSRC LVINLBVW}8 } 4RSIDlLVSRBDPWLIviCPTMDSTMDFDSLIdsVICD vers DLDR4FPTDHCPMp\STRGpICONicl4icl8DTHPTRecCPSTdPICCxLIfpFPHPLIbdBDHPHBINHBUF,HIST@PRT TFTABhNHP|Kt"\:K(TR H# l T dS8!X D H" I 8"p8&C* 0N*t