Trace collected at: 2010-12-06 12:57:24.660000 ---------------------------------------------------------------------- ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[51]: log('DFB_4 - Test Packet Timing ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[52]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[53]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[54]: errcnt = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[56]: log('1. Increasing TM Rate, Clear Start ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[57]: cmd.EFW_TMPKTRATE( 4, 1 ) #Set APID 267 to 1Hz ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[58]: cmd.EFW_CLEAR() ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[59]: packets = 5 #Packets for Each one ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[60]: log('1.1 Enabling SRAM loading, Disable Scan ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[61]: cmd.EFW_SRMWRTCTL( 0 ) # Enable Writing to the SRAM ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[62]: cmd.EFW_DISARM(3) # Disable SRAM Scanner ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[64]: log('2.1 Enabling MAG Telemetry (AP245) ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[65]: cmd.EFW_SSR_ROUTE(SEGMENT=1, APID=5) #Route 245 to RT ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[66]: log('2.1 Enabling E Telemetry (AP249) ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[67]: cmd.EFW_SSR_ROUTE(SEGMENT=3, APID=9) #Route 249 to B2 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[69]: log('2.3 Checking Real-Time Packets ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[70]: errcnt= errcnt + evaltimetags( APID_241, "APID_241", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[71]: errcnt= errcnt + evaltimetags( APID_243, "APID_243", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[72]: errcnt= errcnt + evaltimetags( APID_244, "APID_244", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[73]: errcnt= errcnt + evaltimetags( APID_245, "APID_245", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[74]: errcnt= errcnt + evaltimetags( APID_24E, "APID_24E", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[75]: errcnt= errcnt + evaltimetags( APID_24F, "APID_24F", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[77]: log("3.1 Set up for Burst1 & 2 recording ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[78]: SET_TESTVALUE0( 0 ) #CLear TESTVALUE 0 & 1 ../../GSEOS_scripts\util.py[112]: POKE( 0XDDF9, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[79]: SET_TESTVALUE1( 0 ) ../../GSEOS_scripts\util.py[115]: POKE( 0XDDFa, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[80]: cmd.EFW_ACTESTLOW( 0 ) #Stop ACTEST line if enabled ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[81]: cmd.EFW_ACTESTHIGH( 0,0,0 ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[82]: cmd.EFW_CLEAR() #Clear Errors ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[83]: cmd.EFW_EVTMAX( 1 ) #Event packets have 1/packet ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[84]: cmd.EFW_WRITELEDS( 0 ) #Clear LEDS display ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[85]: cmd.EFW_SSR_OPTIONS( 0,0,0,0 ) #Disable B1/B2 record & play ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[86]: cmd.EFW_TABLE( 9, 0 ) #Load SSR Control Table ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[87]: cmd.EFW_LOAD( 7 ) #Burst1 Trigger = TEST1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[88]: cmd.EFW_LOAD( 7 ) #Burst2 Trigger = TEST1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[89]: cmd.EFW_LOAD( 8 ) #Burst2 N ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[90]: cmd.EFW_LOAD( 0xc0 ) #Search Percent = 3/4th ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[91]: cmd.EFW_LOAD( 0x80 ) #BSIZE = 678 (0x280) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[92]: cmd.EFW_LOAD( 0x02 ) # ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[94]: log("3.2 Checking Flash write pointer valid", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[95]: wait(APID_263, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[95]: wait(APID_263, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[96]: if(APID_263.B1_RECPTR == 0): #If on a real ETU, wear level. ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[99]: flash_wrt_start = APID_263.B1_RECPTR ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[101]: log("3.3 Boosting Telemetry Limit to 60 kbps", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[102]: cmd.EFW_TMKBPS( 60 ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[103]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[105]: log("3.4 Enabling Burst1 & 2 recording", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[106]: cmd.EFW_SSR_CONFIG() #Clear all the Burst2s ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[107]: sleep(2) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[108]: cmd.EFW_SSR_ENABLE(OPTION=0) #Enable B1 Recording ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[109]: cmd.EFW_SSR_ENABLE(OPTION=2) #Enable B2 Recording ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[111]: log("3.5 Awaiting Flash Record Pointer Movement", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[112]: try: ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[118]: flash_wrt_start = APID_263.B1_RECPTR ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[119]: log("Flash Started at 0x%06x" % flash_wrt_start ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[120]: fwblks = 2 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[121]: flash_wrt_target = flash_wrt_start+fwblks ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[123]: log("3.5 Triggering Burst2 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[124]: SET_TESTVALUE1( 170 ) #Trigger B2 @ 0xAA ../../GSEOS_scripts\util.py[115]: POKE( 0XDDFa, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[125]: sleep(1) #Delay for reaction ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[126]: SET_TESTVALUE1( 0 ) #Untrigger ../../GSEOS_scripts\util.py[115]: POKE( 0XDDFa, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[129]: log("3.6 Stopping Recordings ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[130]: cmd.EFW_SSR_OPTIONS( 0,0,0,0) #Disable Recording ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[131]: wait(APID_263, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[95]: wait(APID_263, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[132]: flash_wrt_end = APID_263.B1_RECPTR ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[133]: log("Flash Ended at 0x%06x" % flash_wrt_end ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[135]: log("4.1 Playing Burst1 Packets ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[136]: SET_B1PLAYBACK( flash_wrt_start, fwblks ) #Play Burst1 a no. of blocks ../../GSEOS_scripts\util.py[47]: cmd.EFW_B1_SETPLAYPTRL( block & 0xff ) ../../GSEOS_scripts\util.py[48]: cmd.EFW_B1_SETPLAYPTRH((block >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[49]: cmd.EFW_B1_SETPLAYPTRE((block >> 16)& 0xff ) ../../GSEOS_scripts\util.py[50]: cmd.EFW_B1_SETPLAYCTRL( leng & 0xff ) ../../GSEOS_scripts\util.py[51]: cmd.EFW_B1_SETPLAYCTRH((leng >> 8 )& 0xff ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[137]: wait(APID_263, lambda: APID_263.B1_PLAYCTR > 0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[137]: wait(APID_263, lambda: APID_263.B1_PLAYCTR > 0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[137]: wait(APID_263, lambda: APID_263.B1_PLAYCTR > 0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[137]: wait(APID_263, lambda: APID_263.B1_PLAYCTR > 0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[138]: cmd.EFW_SSR_ENABLE(OPTION=1) #Enable Burst1 Playback ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[140]: log("4.2 Checking Burst1 Packets", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[141]: errcnt= errcnt + evaltimetags( APID_246, "APID_246", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[142]: errcnt= errcnt + evaltimetags( APID_247, "APID_247", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[143]: errcnt= errcnt + evaltimetags( APID_248, "APID_248", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[144]: wait(APID_263, lambda: APID_263.B1_PLAYCTR == 0, flTimeout=60) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[144]: wait(APID_263, lambda: APID_263.B1_PLAYCTR == 0, flTimeout=60) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[147]: log("5.1 Playing Burst2 (10-12 mins)", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: cmd.EFW_SSR_ENABLE(OPTION=3) #Enable Burst2 Playback ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[150]: log("5.2 Checking Burst2 Packets", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[151]: errcnt= errcnt + evaltimetags( APID_249, "APID_249", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: result = 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[152]: errcnt= errcnt + evaltimetags( APID_24A, "APID_24A", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[153]: errcnt= errcnt + evaltimetags( APID_24B, "APID_24B", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[155]: wait(APID_263, lambda: APID_263.B2PLAYSTATE == 2, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[155]: wait(APID_263, lambda: APID_263.B2PLAYSTATE == 2, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[156]: cmd.EFW_SSR_DISABLE(OPTION=3) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[157]: wait(APID_263, lambda: APID_263.B2PLAYSTATE < 2, flTimeout=800) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[157]: wait(APID_263, lambda: APID_263.B2PLAYSTATE < 2, flTimeout=800) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[157]: wait(APID_263, lambda: APID_263.B2PLAYSTATE < 2, flTimeout=800) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[157]: wait(APID_263, lambda: APID_263.B2PLAYSTATE < 2, flTimeout=800) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[159]: log("6.0 Disabling Bursts,etc", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[160]: cmd.EFW_SSR_OPTIONS( 0,0,0,0) #Disable Recording ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[161]: cmd.EFW_SRMWRTCTL( 1 ) # Disable Writing to the SRAM ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[162]: cmd.EFW_DISARM(3) # Enable SRAM Scanner ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[164]: log('DFB_4 - Packet Times : %s ' % PF[errcnt==0], color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[165]: log('================END=====================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[166]: return(errcnt) Trace collected at: 2010-12-06 13:39:00.488000 ---------------------------------------------------------------------- ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[51]: log('DFB_4 - Test Packet Timing ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[52]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[53]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[54]: errcnt = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[56]: log('1. Increasing TM Rate, Clear Start ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[57]: cmd.EFW_TMPKTRATE( 4, 1 ) #Set APID 267 to 1Hz ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[58]: cmd.EFW_CLEAR() ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[59]: packets = 5 #Packets for Each one ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[60]: log('1.1 Enabling SRAM loading, Disable Scan ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[61]: cmd.EFW_SRMWRTCTL( 0 ) # Enable Writing to the SRAM ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[62]: cmd.EFW_DISARM(3) # Disable SRAM Scanner ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[64]: log('2.1 Enabling MAG Telemetry (AP245) ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[65]: cmd.EFW_SSR_ROUTE(SEGMENT=1, APID=5) #Route 245 to RT ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[66]: log('2.1 Enabling E Telemetry (AP249) ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[67]: cmd.EFW_SSR_ROUTE(SEGMENT=3, APID=9) #Route 249 to B2 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[69]: log('2.3 Checking Real-Time Packets ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[70]: errcnt= errcnt + evaltimetags( APID_241, "APID_241", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[71]: errcnt= errcnt + evaltimetags( APID_243, "APID_243", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[72]: errcnt= errcnt + evaltimetags( APID_244, "APID_244", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[73]: errcnt= errcnt + evaltimetags( APID_245, "APID_245", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[74]: errcnt= errcnt + evaltimetags( APID_24E, "APID_24E", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[75]: errcnt= errcnt + evaltimetags( APID_24F, "APID_24F", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[77]: log("3.1 Set up for Burst1 & 2 recording ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[78]: SET_TESTVALUE0( 0 ) #CLear TESTVALUE 0 & 1 ../../GSEOS_scripts\util.py[112]: POKE( 0XDDF9, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[79]: SET_TESTVALUE1( 0 ) ../../GSEOS_scripts\util.py[115]: POKE( 0XDDFa, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[80]: cmd.EFW_ACTESTLOW( 0 ) #Stop ACTEST line if enabled ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[81]: cmd.EFW_ACTESTHIGH( 0,0,0 ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[82]: cmd.EFW_CLEAR() #Clear Errors ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[83]: cmd.EFW_EVTMAX( 1 ) #Event packets have 1/packet ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[84]: cmd.EFW_WRITELEDS( 0 ) #Clear LEDS display ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[85]: cmd.EFW_SSR_OPTIONS( 0,0,0,0 ) #Disable B1/B2 record & play ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[86]: cmd.EFW_TABLE( 9, 0 ) #Load SSR Control Table ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[87]: cmd.EFW_LOAD( 7 ) #Burst1 Trigger = TEST1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[88]: cmd.EFW_LOAD( 7 ) #Burst2 Trigger = TEST1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[89]: cmd.EFW_LOAD( 8 ) #Burst2 N ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[90]: cmd.EFW_LOAD( 0xc0 ) #Search Percent = 3/4th ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[91]: cmd.EFW_LOAD( 0x80 ) #BSIZE = 678 (0x280) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[92]: cmd.EFW_LOAD( 0x02 ) # ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[94]: log("3.2 Checking Flash write pointer valid", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[95]: wait(APID_263, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[95]: wait(APID_263, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[96]: if(APID_263.B1_RECPTR == 0): #If on a real ETU, wear level. ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[99]: flash_wrt_start = APID_263.B1_RECPTR ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[101]: log("3.3 Boosting Telemetry Limit to 60 kbps", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[102]: cmd.EFW_TMKBPS( 60 ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[103]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[105]: log("3.4 Enabling Burst1 & 2 recording", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[106]: cmd.EFW_SSR_CONFIG() #Clear all the Burst2s ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[107]: sleep(2) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[108]: cmd.EFW_SSR_ENABLE(OPTION=0) #Enable B1 Recording ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[109]: cmd.EFW_SSR_ENABLE(OPTION=2) #Enable B2 Recording ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[111]: log("3.5 Awaiting Flash Record Pointer Movement", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[112]: try: ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[113]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[118]: flash_wrt_start = APID_263.B1_RECPTR ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[119]: log("Flash Started at 0x%06x" % flash_wrt_start ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[120]: fwblks = 2 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[121]: flash_wrt_target = flash_wrt_start+fwblks ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[123]: log("3.5 Triggering Burst2 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[124]: SET_TESTVALUE1( 170 ) #Trigger B2 @ 0xAA ../../GSEOS_scripts\util.py[115]: POKE( 0XDDFa, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[125]: sleep(1) #Delay for reaction ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[126]: SET_TESTVALUE1( 0 ) #Untrigger ../../GSEOS_scripts\util.py[115]: POKE( 0XDDFa, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[129]: log("3.6 Stopping Recordings ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[130]: cmd.EFW_SSR_OPTIONS( 0,0,0,0) #Disable Recording ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[131]: wait(APID_263, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[95]: wait(APID_263, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[132]: flash_wrt_end = APID_263.B1_RECPTR ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[133]: log("Flash Ended at 0x%06x" % flash_wrt_end ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[135]: log("4.1 Playing Burst1 Packets ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[136]: SET_B1PLAYBACK( flash_wrt_start, fwblks ) #Play Burst1 a no. of blocks ../../GSEOS_scripts\util.py[47]: cmd.EFW_B1_SETPLAYPTRL( block & 0xff ) ../../GSEOS_scripts\util.py[48]: cmd.EFW_B1_SETPLAYPTRH((block >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[49]: cmd.EFW_B1_SETPLAYPTRE((block >> 16)& 0xff ) ../../GSEOS_scripts\util.py[50]: cmd.EFW_B1_SETPLAYCTRL( leng & 0xff ) ../../GSEOS_scripts\util.py[51]: cmd.EFW_B1_SETPLAYCTRH((leng >> 8 )& 0xff ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[137]: wait(APID_263, lambda: APID_263.B1_PLAYCTR > 0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[137]: wait(APID_263, lambda: APID_263.B1_PLAYCTR > 0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[137]: wait(APID_263, lambda: APID_263.B1_PLAYCTR > 0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[137]: wait(APID_263, lambda: APID_263.B1_PLAYCTR > 0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[138]: cmd.EFW_SSR_ENABLE(OPTION=1) #Enable Burst1 Playback ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[140]: log("4.2 Checking Burst1 Packets", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[141]: errcnt= errcnt + evaltimetags( APID_246, "APID_246", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[142]: errcnt= errcnt + evaltimetags( APID_247, "APID_247", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[143]: errcnt= errcnt + evaltimetags( APID_248, "APID_248", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[144]: wait(APID_263, lambda: APID_263.B1_PLAYCTR == 0, flTimeout=60) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[144]: wait(APID_263, lambda: APID_263.B1_PLAYCTR == 0, flTimeout=60) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[147]: log("5.1 Playing Burst2 (10-12 mins)", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: cmd.EFW_SSR_ENABLE(OPTION=3) #Enable Burst2 Playback ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[150]: log("5.2 Checking Burst2 Packets", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[151]: errcnt= errcnt + evaltimetags( APID_249, "APID_249", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: result = 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[152]: errcnt= errcnt + evaltimetags( APID_24A, "APID_24A", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[153]: errcnt= errcnt + evaltimetags( APID_24B, "APID_24B", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[47]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[155]: wait(APID_263, lambda: APID_263.B2PLAYSTATE == 2, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[155]: wait(APID_263, lambda: APID_263.B2PLAYSTATE == 2, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[156]: cmd.EFW_SSR_DISABLE(OPTION=3) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[157]: wait(APID_263, lambda: APID_263.B2PLAYSTATE < 2, flTimeout=800) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[157]: wait(APID_263, lambda: APID_263.B2PLAYSTATE < 2, flTimeout=800) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[157]: wait(APID_263, lambda: APID_263.B2PLAYSTATE < 2, flTimeout=800) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[157]: wait(APID_263, lambda: APID_263.B2PLAYSTATE < 2, flTimeout=800) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[159]: log("6.0 Disabling Bursts,etc", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[160]: cmd.EFW_SSR_OPTIONS( 0,0,0,0) #Disable Recording ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[161]: cmd.EFW_SRMWRTCTL( 1 ) # Disable Writing to the SRAM ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[162]: cmd.EFW_DISARM(3) # Enable SRAM Scanner ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[164]: log('DFB_4 - Packet Times : %s ' % PF[errcnt==0], color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[165]: log('================END=====================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[166]: return(errcnt) Trace collected at: 2010-12-06 13:57:40.332000 ---------------------------------------------------------------------- ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[53]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[54]: log('DFB_4 - Test Packet Timing ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[55]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[56]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[57]: errcnt = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[59]: log('1. Increasing TM Rate, Clear Start ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[60]: cmd.EFW_TMPKTRATE( 4, 1 ) #Set APID 267 to 1Hz ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[61]: cmd.EFW_CLEAR() ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[62]: packets = 5 #Packets for Each one ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[63]: log('1.1 Enabling SRAM loading, Disable Scan ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[64]: cmd.EFW_SRMWRTCTL( 0 ) # Enable Writing to the SRAM ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[65]: cmd.EFW_DISARM(3) # Disable SRAM Scanner ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[67]: log('2.1 Enabling MAG Telemetry (AP245) ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[68]: cmd.EFW_SSR_ROUTE(SEGMENT=1, APID=5) #Route 245 to RT ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[69]: log('2.1 Enabling E Telemetry (AP249) ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[70]: cmd.EFW_SSR_ROUTE(SEGMENT=3, APID=9) #Route 249 to B2 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[72]: log('2.3 Checking Real-Time Packets ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[73]: errcnt= errcnt + evaltimetags( APID_241, "APID_241", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: points = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[44]: stddev = sqrt( sos ) / sqrt( points ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: if( stddev < .00033 ): # 1 msec (3 Sigma) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[74]: errcnt= errcnt + evaltimetags( APID_243, "APID_243", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: points = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[44]: stddev = sqrt( sos ) / sqrt( points ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: if( stddev < .00033 ): # 1 msec (3 Sigma) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[75]: errcnt= errcnt + evaltimetags( APID_244, "APID_244", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: points = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[44]: stddev = sqrt( sos ) / sqrt( points ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: if( stddev < .00033 ): # 1 msec (3 Sigma) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[76]: errcnt= errcnt + evaltimetags( APID_245, "APID_245", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: points = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[44]: stddev = sqrt( sos ) / sqrt( points ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: if( stddev < .00033 ): # 1 msec (3 Sigma) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[77]: errcnt= errcnt + evaltimetags( APID_24E, "APID_24E", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: points = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[44]: stddev = sqrt( sos ) / sqrt( points ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: if( stddev < .00033 ): # 1 msec (3 Sigma) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[78]: errcnt= errcnt + evaltimetags( APID_24F, "APID_24F", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: points = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[44]: stddev = sqrt( sos ) / sqrt( points ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: if( stddev < .00033 ): # 1 msec (3 Sigma) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[80]: log("3.1 Set up for Burst1 & 2 recording ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[81]: SET_TESTVALUE0( 0 ) #CLear TESTVALUE 0 & 1 ../../GSEOS_scripts\util.py[112]: POKE( 0XDDF9, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[82]: SET_TESTVALUE1( 0 ) ../../GSEOS_scripts\util.py[115]: POKE( 0XDDFa, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[83]: cmd.EFW_ACTESTLOW( 0 ) #Stop ACTEST line if enabled ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[84]: cmd.EFW_ACTESTHIGH( 0,0,0 ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[85]: cmd.EFW_CLEAR() #Clear Errors ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[86]: cmd.EFW_EVTMAX( 1 ) #Event packets have 1/packet ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[87]: cmd.EFW_WRITELEDS( 0 ) #Clear LEDS display ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[88]: cmd.EFW_SSR_OPTIONS( 0,0,0,0 ) #Disable B1/B2 record & play ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[89]: cmd.EFW_TABLE( 9, 0 ) #Load SSR Control Table ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[90]: cmd.EFW_LOAD( 7 ) #Burst1 Trigger = TEST1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[91]: cmd.EFW_LOAD( 7 ) #Burst2 Trigger = TEST1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[92]: cmd.EFW_LOAD( 8 ) #Burst2 N ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[93]: cmd.EFW_LOAD( 0xc0 ) #Search Percent = 3/4th ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[94]: cmd.EFW_LOAD( 0x80 ) #BSIZE = 678 (0x280) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[95]: cmd.EFW_LOAD( 0x02 ) # ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[97]: log("3.2 Checking Flash write pointer valid", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[98]: wait(APID_263, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[98]: wait(APID_263, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[99]: if(APID_263.B1_RECPTR == 0): #If on a real ETU, wear level. ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[102]: flash_wrt_start = APID_263.B1_RECPTR ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[104]: log("3.3 Boosting Telemetry Limit to 60 kbps", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[105]: cmd.EFW_TMKBPS( 60 ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[106]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[108]: log("3.4 Enabling Burst1 & 2 recording", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[109]: cmd.EFW_SSR_CONFIG() #Clear all the Burst2s ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[110]: sleep(2) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[111]: cmd.EFW_SSR_ENABLE(OPTION=0) #Enable B1 Recording ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[112]: cmd.EFW_SSR_ENABLE(OPTION=2) #Enable B2 Recording ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[114]: log("3.5 Awaiting Flash Record Pointer Movement", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[115]: try: ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[116]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[116]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[116]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[116]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[116]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[116]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[116]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[116]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[116]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[116]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[116]: wait(APID_263, lambda: APID_263.B1_RECPTR > flash_wrt_start, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[121]: flash_wrt_start = APID_263.B1_RECPTR ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[122]: log("Flash Started at 0x%06x" % flash_wrt_start ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[123]: fwblks = 2 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[124]: flash_wrt_target = flash_wrt_start+fwblks ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[126]: log("3.5 Triggering Burst2 ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[127]: SET_TESTVALUE1( 170 ) #Trigger B2 @ 0xAA ../../GSEOS_scripts\util.py[115]: POKE( 0XDDFa, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[128]: sleep(1) #Delay for reaction ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[129]: SET_TESTVALUE1( 0 ) #Untrigger ../../GSEOS_scripts\util.py[115]: POKE( 0XDDFa, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[130]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[130]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[130]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[130]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[130]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[130]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[130]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[130]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[130]: wait(APID_263, lambda: APID_263.B1_RECPTR >= flash_wrt_target, flTimeout=30) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[132]: log("3.6 Stopping Recordings ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[133]: cmd.EFW_SSR_OPTIONS( 0,0,0,0) #Disable Recording ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[134]: wait(APID_263, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[98]: wait(APID_263, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[135]: flash_wrt_end = APID_263.B1_RECPTR ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[136]: log("Flash Ended at 0x%06x" % flash_wrt_end ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[138]: log("4.1 Playing Burst1 Packets ", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[139]: SET_B1PLAYBACK( flash_wrt_start, fwblks ) #Play Burst1 a no. of blocks ../../GSEOS_scripts\util.py[47]: cmd.EFW_B1_SETPLAYPTRL( block & 0xff ) ../../GSEOS_scripts\util.py[48]: cmd.EFW_B1_SETPLAYPTRH((block >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[49]: cmd.EFW_B1_SETPLAYPTRE((block >> 16)& 0xff ) ../../GSEOS_scripts\util.py[50]: cmd.EFW_B1_SETPLAYCTRL( leng & 0xff ) ../../GSEOS_scripts\util.py[51]: cmd.EFW_B1_SETPLAYCTRH((leng >> 8 )& 0xff ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[140]: wait(APID_263, lambda: APID_263.B1_PLAYCTR > 0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[140]: wait(APID_263, lambda: APID_263.B1_PLAYCTR > 0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[140]: wait(APID_263, lambda: APID_263.B1_PLAYCTR > 0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[140]: wait(APID_263, lambda: APID_263.B1_PLAYCTR > 0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[141]: cmd.EFW_SSR_ENABLE(OPTION=1) #Enable Burst1 Playback ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[143]: log("4.2 Checking Burst1 Packets", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[144]: errcnt= errcnt + evaltimetags( APID_246, "APID_246", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: points = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[44]: stddev = sqrt( sos ) / sqrt( points ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: if( stddev < .00033 ): # 1 msec (3 Sigma) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[145]: errcnt= errcnt + evaltimetags( APID_247, "APID_247", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: points = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[44]: stddev = sqrt( sos ) / sqrt( points ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: if( stddev < .00033 ): # 1 msec (3 Sigma) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[146]: errcnt= errcnt + evaltimetags( APID_248, "APID_248", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: points = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[44]: stddev = sqrt( sos ) / sqrt( points ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: if( stddev < .00033 ): # 1 msec (3 Sigma) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[147]: wait(APID_263, lambda: APID_263.B1_PLAYCTR == 0, flTimeout=60) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[147]: wait(APID_263, lambda: APID_263.B1_PLAYCTR == 0, flTimeout=60) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[148]: wait(APID_267, lambda: APID_267.B1R_OUTPTR == 0, flTimeout=180) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[150]: log("5.1 Playing Burst2 (10-12 mins)", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[151]: cmd.EFW_SSR_ENABLE(OPTION=3) #Enable Burst2 Playback ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[153]: log("5.2 Checking Burst2 Packets", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[154]: errcnt= errcnt + evaltimetags( APID_249, "APID_249", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: points = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[44]: stddev = sqrt( sos ) / sqrt( points ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: if( stddev < .00033 ): # 1 msec (3 Sigma) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[155]: errcnt= errcnt + evaltimetags( APID_24A, "APID_24A", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: points = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[44]: stddev = sqrt( sos ) / sqrt( points ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: if( stddev < .00033 ): # 1 msec (3 Sigma) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[156]: errcnt= errcnt + evaltimetags( APID_24B, "APID_24B", packets ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[15]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[16]: met=[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0] ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[17]: avgperiod = 0.0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[18]: if( N > 10): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[22]: points=0 #Points in average ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[24]: wait( ap, lambda: True, flTimeout=300) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[25]: met[pkt] = ap.SUBSECONDS/65536.0 + ap.CCSDS_MET ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[26]: log("%s : Packet[ %d ] Time : %15.5f " % (name,pkt,met[pkt])) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[31]: points = points+1 # Count how many ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[23]: for pkt in range(N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[32]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: points = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if(period>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[43]: points += 1 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[44]: stddev = sqrt( sos ) / sqrt( points ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: if( stddev < .00033 ): # 1 msec (3 Sigma) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[46]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log("%s : Period %10.5f, StdDev %8.5f sec : %s" % (name,avgperiod,stddev,PF[result==0]), color=BROWN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[158]: wait(APID_263, lambda: APID_263.B2PLAYSTATE == 2, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[158]: wait(APID_263, lambda: APID_263.B2PLAYSTATE == 2, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[159]: cmd.EFW_SSR_DISABLE(OPTION=3) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[160]: wait(APID_263, lambda: APID_263.B2PLAYSTATE < 2, flTimeout=800) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[160]: wait(APID_263, lambda: APID_263.B2PLAYSTATE < 2, flTimeout=800) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[160]: wait(APID_263, lambda: APID_263.B2PLAYSTATE < 2, flTimeout=800) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[160]: wait(APID_263, lambda: APID_263.B2PLAYSTATE < 2, flTimeout=800) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[162]: log("6.0 Disabling Bursts,etc", color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[163]: cmd.EFW_SSR_OPTIONS( 0,0,0,0) #Disable Recording ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[164]: cmd.EFW_SRMWRTCTL( 1 ) # Disable Writing to the SRAM ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[165]: cmd.EFW_DISARM(3) # Enable SRAM Scanner ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[167]: log('DFB_4 - Packet Times : %s ' % PF[errcnt==0], color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[168]: log('================END=====================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[169]: return(errcnt)