# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # import sys import pylab import time from os import system from time import sleep from CCL.IFProc import IFProc ifp_0 = IFProc("PM03",0) ifp_1 = IFProc("PM03",1) try: span = float(sys.argv[1]) except: span = 60 if0_volts_axis_band0 = [] if0_volts_axis_band1 = [] if0_volts_axis_band2 = [] if0_volts_axis_band3 = [] if1_volts_axis_band0 = [] if1_volts_axis_band1 = []
nAnt=len(antennaList2) print "" print " circles = noisy TP channels. Blue:>5sigma, Circle>10sigma (size = rms)" print " left mouse click on screen = time series plot. right mouse click = second plot. Other key options:" print " H(help), +/-(expand/contract time range), z(zoom to fixed y range), F(fast update), S(slow update), C(colour table), R(color range), q(quit)" pylab.ion() if0=[] if1=[] antennaListOP=[] # creates list of objects, excluding those which have IFP in non-operational state: for i in range(0,nAnt): if0_i=IFProc(antennaList2[i],0) if1_i=IFProc(antennaList2[i],1) ifst0=if0_i.getHwState() ifst1=if1_i.getHwState() # remove antennas with unresponsive IFPs: # print antennaList2[i],ifst0,ifst1 if str(ifst0)=="Operational" and str(ifst1)=="Operational": if0.append(if0_i) if1.append(if1_i) antennaListOP.append(antennaList2[i]) else: ant_noIFP=antennaList2[i] print "Dropping", ant_noIFP,"IFP not operational." #print nAnt, "antenna IFPs being polled "
# but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # import sys from os import system from time import sleep from CCL.IFProc import IFProc ifp_0 = IFProc("PM03",0) ifp_1 = IFProc("PM03",1) try: delay = float(sys.argv[1]) except: delay = 0.5 while(1): clean = system("clear") ifproc0 = ifp_0.getSBPower() ifproc1 = ifp_1.getSBPower() print "Side Bands: 0,1" print "IFProc 0" print ifproc0[0][0] print ifproc0[0][1] print " "