# zstartup # # Run once at beginning of session. Mainly sets attenuator values in # atten[0-3], also cwsigsproj and cwsigsfile # # 2008.11.01 AB Adapted from zpec07-config-totpwr. # 2009.02.19 AB Adapted from zpec08-config-totpwr. # # INSTRUCTIONS: # (1) Set the cwsigsproj and cwsigsfile parameters once the first # cwsigs file has been taken. # (2) Set the attenuation values that are appropriate for a given night. # *** Set parameters as appropriate for the most recent cwsigs file: cwsigsproj="AGBT11A_027_11" cwsigsfile="2011_10_22_16:04:15.fits" # # *** Set attenuation values: atten0=3 atten1=6 atten2=7 atten3=5 ## DO NOT MODIFY BELOW # *** Comments from fall 2006: # *** The only paramaters which matter are # *** receiver, beam, vframe, and vdef. # *** The restf requency should be left at 36000. # *** Combined with the IF center, this gives # *** LO1A commanded = 14.6167. Configure(""" receiver = 'Rcvr26_40' beam = 'B1' obstype = 'Continuum' backend = 'DCR' nwin = 1 restfreq = 36000 deltafreq = 0 bandwidth = 800 swmode = "sp" swtype = "bsw" swper = 0.2 swfreq = 0.0, 0.0 tint = 10 vlow = 0 vhigh = 0 vframe = "topo" vdef = "Radio" noisecal = "L" pol = "Circular" """) SetValues('Rcvr26_40', {'diff1_bypassHybrid': 'swOn', 'sum1_bypassHybrid': 'swOn', 'diff1_toZpectrometer': 'swOn', 'sum1_toZpectrometer': 'swOn'}) SetValues('Rcvr26_40',{'calState':'ctlZpectrometer','phaseModState':'ctlZpectrometer'}) SetValues('Rcvr26_40',{'sigRefd1PhaseSwitch':'swOn','sigRefs1PhaseSwitch':'swOn'}) SetValues('Rcvr26_40',{'state':'prepare'}) SetValues('LO1',{'ifCenterFreq':7850,'S8':4}) SetValues('LO1',{'loConfig':'TrackA_BNotUsed','testToneFreq':12000}) SetValues('LO1',{'testTonePowerLevel':-110}) SetValues('LO1',{'state':'prepare'}) #SetValues("ScanCoordinator", {"subsystemSelect,Zpectrometer": 1, "subsystemSelect,DCR": 0}) #SetValues("ScanCoordinator", {"subsystemSelect,IFRack": 0, "subsystemSelect,SwitchingSignalSelector": 0}) #SetValues("ScanCoordinator", {"state": "prepare"}) SetValues("Zpectrometer",{"state":"on"}) SetValues("Zpectrometer",{"obsProgram":"totpwr","cwsigsLoc,projDir":cwsigsproj,"cwsigsLoc,fileName":cwsigsfile}) # *** Uncomment the next line if you want to produce raw tpr files: #SetValues("Zpectrometer",{"genericKeyword,key":"diagout", "genericKeyword,value":"true"}) # *** Uncomment the next line if you do NOT want to produce raw tpr files: SetValues("Zpectrometer",{"genericKeyword,key":"diagout", "genericKeyword,value":"false"}) SetValues("Zpectrometer",{"atten,1":atten0}) SetValues("Zpectrometer",{"atten,2":atten1}) SetValues("Zpectrometer",{"atten,3":atten2}) SetValues("Zpectrometer",{"atten,4":atten3}) #SetValues("Zpectrometer",{"quadsw":qswstate}) SetValues("Zpectrometer",{"state":"prepare"})