Download presentation
Presentation is loading. Please wait.
1
differentiate double pulse
2
part 1
3
pulse start from zero
4
before find shoulder pulse
5
after find shoulder pulse
6
skip find shoulder pulse when pulse start from zero
7
part2
8
fail
9
peak and valley
11
Center TDC * 1 left -1 right condition set slope1 slope2 Set
left or right Δ ADC12 <0. Δ ADC23 >0. * Δ ADC12 >0. Δ ADC23 <0. Δ ADC23 =0. 1 left -1 Δ ADC12 =0. right condition Center TDC Slope1>0 Slope2<0 (Right-left)/2 Slope1<0 Slope2>0
12
code for find MinTDC and MaxTDC
if ([diffADC12]>0.).and.([diffADC23]<0.) then ..…. elseif ([diffADC12]<0.).and.([diffADC23]>0.) then …… elseif ([diffADC12]>0.) then elseif ([diffADC12]<-1.) then elseif ([diffADC23]<0.) then ……. elseif ([diffADC23]>0.) then endif
13
fail
14
fail input right input left (67-54)/2=59.5 54 59.5 67
15
code for find MinTDC and MaxTDC
if ([diffADC12]>0.).and.([diffADC23]<0.) then ..…. elseif ([diffADC12]<0.).and.([diffADC23]>0.) then …… elseif( ([diffADC12]>0.) .and.([diffADC23]=0.))then elseif (([diffADC12]<0.) .and.([diffADC23]=0.))then elseif (([diffADC23]<0.) .and.([diffADC12]=0.))then ……. elseif (([diffADC23]>0.) .and.([diffADC12]=0.))then endif
16
fail
17
fail input right input left ( )/2=118 120 113 114 118
18
code for find MinTDC and MaxTDC
if ([diffADC12]>0.) then …… elseif ([diffADC12]<-1.) then endif if ([diffADC23]<0.) then ……. elseif ([diffADC23]>0.) then if ([diffADC12]>0.).and.([diffADC23]<0.) then ..….; slope1=0;slope2=0; elseif ([diffADC12]<0.).and.([diffADC23]>0.) then
20
if ([slope1]>0).and.([slope2]<0.) then
...... if ([valley]=1) then if ([tmpADC2] > [prevMaxADC]) then ve/input tmpMaxTDC[ipart]([ipulse]) [tmpTDC2] ve/input tmpMaxADC[ipart]([ipulse]) [tmpADC2] prevMaxTDC = [tmpTDC2] prevMaxADC = [tmpADC2] else endif if ([slope1]<0).and.([slope2]>0.) then ...... if ([valley]=1) then ve/input tmpMaxTDC[ipart]([ipulse]) [tmpTDC2] ve/input tmpMaxADC[ipart]([ipulse]) [tmpADC2] prevMaxTDC = [tmpTDC2] prevMaxADC = [tmpADC2] endif
21
ok
22
ok
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.