Trace collected at: 2010-11-10 10:09:43.180000 ---------------------------------------------------------------------- ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[49]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[50]: log('DFB_4 - Test Packet Timing ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[51]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[52]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[53]: errcnt = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[55]: log('1. Increasing TM Rate, Clear Start ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[56]: cmd.EFW_TMPKTRATE( 4, 1 ) #Set APID 267 to 1Hz ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[57]: cmd.EFW_CLEAR() ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[58]: packets = 5 #Packets for Each one ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[59]: log('1.1 Enabling SRAM loading, Disable Scan ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[60]: cmd.EFW_SRMWRTCTL( 0 ) # Enable Writing to the SRAM ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[61]: cmd.EFW_DISARM(3) # Disable SRAM Scanner ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[63]: log('2.1 Enabling MAG Telemetry (AP245) ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[64]: cmd.EFW_SSR_ROUTE(SEGMENT=1, APID=5) #Route 245 to RT ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[66]: log('2.2 Speeding Up SOL to 16 sec/pkt ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[67]: cmd.EFW_DFB_SWD(SWD_RPT_RT=0, SWD_CHAN_ENA=1, SWD_CHAN_SEL=0) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[68]: cmd.EFW_DFBCONFIG(APID=0xd) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[70]: log('2.3 Checking Real-Time Packets ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[71]: 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]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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[31]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[36]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: 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[46]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[72]: 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]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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[31]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[36]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: 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[46]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[73]: 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]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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[31]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[36]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: 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[46]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[74]: 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]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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[31]: avgperiod = avgperiod/points ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[36]: sos = 0.0 #Sum of Squares ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[38]: period = met[pkt]-met[pkt-1] #Period ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[39]: sos = sos + (avgperiod-period)**2 #add up squared diffs ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[37]: for pkt in range(1,N): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[40]: stddev = sqrt( sos ) / sqrt( N-1 ) #Divide roots to finish ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[41]: if( stddev < .00033 ): # 1 msec (3 Sigma)? ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[42]: result = 0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[45]: 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[46]: return( result ) ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[75]: errcnt= errcnt + evaltimetags( APID_24D, "APID_24D", 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]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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]: if(pkt>0): ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[27]: period = met[pkt]-met[pkt-1] # Get delta time ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[28]: if(period>0): # If Burst2, maybe wrapped ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[29]: avgperiod= avgperiod + period # Normally period>0 ../../GSEOS_scripts/FSW_scripts\TEST_DFB_4.py[30]: 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) Script killed by user.