| case | Configuration example |
|---|---|
| SPIGOT/BCPM/GASP | example1 |
| BCPM/CGSR2 | example2 |
| SPIGOT/BCPM/CGSR2 | example3 |
(Warning: these combinations will not work if you are using multi-beam receivers, ie 12 GHz or above.)
setnoise( noiseval, receivername)
Astrid configuration script
#----------------------------------------------------------------
# revised Astrid configuration script for Ingrid's SPIGOT/BCPM/GASP case.
# just for instance source catalog -- replace with your objects.
Catalog(pulsars_brightest_GBT)
# Import cal-control and multi-backend config scripts
execfile("/users/gbpulsar/python/psrset.py")
# Setup the system for SPIGOT/BCPM/GASP
con1 ="""
receiver = 'Rcvr1_2'
restfreq = 1390.0 # this will be the center sky frequency for the Spigot
beam = 'B1'
pol = 'Linear'
obstype = 'Spectroscopy'
backend = 'SPIGOT/BCPM/GASP'
nwin = 1
deltafreq = 0
bandwidth = 50
swmode = "tp"
swtype = "none"
swper = 0.04
swfreq = 0.0, 0.0
tint = 5
vlow = 0
vhigh = 0
vframe = "topo"
vdef = "Radio"
noisecal = "lo"
nchan = 'medium'
#
# ACS settings
spect.levels = 3
spect.numbanks = 2
#
# BCPM settings
bcpm.ch_bw = 0.5
bcpm.sample_time = 'X2'
bcpm.sum_pol = 'Yes'
bcpm.submanager = 'bcpm2'
bcpm.source_name = 'test'
bcpm.hardware = 'bcpm1'
"""
#-----Remember to first start the BCPM control screens,
# then cycle the BCPM manager -- do this before running the Configuration!
SetValues("BCPM", {"state": "Off"})
Break("Check that BCPM has finished shutting down.")
SetValues("BCPM", {"state": "On"})
Break("Check that BCPM has finished initializing")
#-----now run the configuration.
Configure(con1)
#---this just illustrates the setnoise function
setnoise("off", 'Rcvr1_2' )
Break("Check that the cals are OFF in the receiver now.", None)
setnoise("lo-ext", 'Rcvr1_2' )
Break("Check that the cals are ON in the receiver now.", None)
#------put the Spectrometer into the scan coordinator so that we can balance
SetValues("ScanCoordinator", {"subsystemSelect,Spectrometer":1} )
#------remove the DCR from the scan coordinator so it is not driven crazy
SetValues("ScanCoordinator", {"subsystemSelect,DCR":0} )
# IF sky frequency for Spigot, BCPM, and GASP are all the same,
# no more is needed.
# if not, then if BCPM center freq = 1400 and GASP will be 1410,
# then do the following:
psrset('Rcvr1_2', bcpm=1400, gasp=1410)
# Move to test pulsar
Slew("B1937+21")
Balance()
Balance("Spectrometer")
Break("Check that spectrometer is balanced")
#-----remove Spectrometer and turn off before proceeding with Spigot setup
SetValues("ScanCoordinator", {"subsystemSelect,Spectrometer":0} )
SetValues("Spectrometer", {"state": "Off"})
#----------------------------------------------------------------
#----------------------------------------------------------------
Astrid script for running the BCPM in monitor mode
#------------------------------------------
# block to run the BCPM in monitor mode
Catalog(pulsars_brightest_GBT)
# designate test pulsar
src = "B1937+21"
SetValues("BCPM", {"target_name" : src} )
SetValues("BCPM", {"base_name" : src } )
SetValues("BCPM", {"operating_mode" : "monitor"} )
Slew(src)
Balance()
Comment("Tracking source -- run setpower")
Track(src, None, 300)
#--------------------------------------------
#--------------------------------------------
Astrid script for running the BCPM in search mode
# block to run the BCPM in search mode
execfile("/users/gbpulsar/python/psrset.py")
Catalog(pulsars_brightest_GBT)
# designate test pulsar
src = "B1937+21"
SetValues("BCPM", {"target_name" : src} )
SetValues("BCPM", {"base_name" : src} )
SetValues("BCPM", {"data_storage" : "Tape"} )
SetValues("BCPM", {"file_size" : 720} )
# note : desired center sky frequency should agree with what you set with psrset.
SetValues("BCPM", {"center_frequency,2" : 1400} )
SetValues("BCPM", {"operating_mode" : "search"} )
setnoise("off", 'Rcvr1_2' ) # turn off noise cals (if desired)
Comment("Tracking source -- one minute scan ")
Track(src, None, 60)
#------------------------------------------------
#------------------------------------------------
-------------------------------------------------------------------
#-------Example for BCPM and CGSR2 setups
#
#-------load the psrset and setnoise functions
execfile("/users/gbpulsar/python/psrset.py")
configure = """
receiver = 'Rcvr1_2'
restfreq = 1373.0, 1433.0
obstype = 'Pulsar'
backend = 'BCPM/CGSR2'
pol = 'Circular'
#swmode = "tp"
swmode = "tp_nocal"
swtype = "none"
swper = 0.04
swfreq = 0.0, 0.0
nwin = 2
deltafreq = 0,0
bandwidth = 190 # do not set to 200 when using CGSR2 !!
tint = 5
vlow = 0
vhigh = 0
vframe = "topo"
vdef = "Radio"
noisecal = "lo"
nchan = 'low'
# BCPM specific
bcpm.ch_bw = 1.0
bcpm.sample_time = 'X2'
bcpm.sum_pol = 'Yes'
bcpm.submanager = 'bcpm2'
bcpm.source_name = 'test'
bcpm.hardware = 'bcpm1'
"""
#-----Remember to first start the BCPM control screens,
# then cycle the BCPM manager -- do this before running the Configuration!
SetValues("BCPM", {"state":"off"})
Break("Wait until BCPM power-down sequence is complete!")
SetValues("BCPM", {"state":"on"})
Break("Wait until BCPM initialize sequence is complete!")
Configure(configure)
# in this example, set the sky freq for the BCPM to 1400 MHz
#
psrset("Rcvr1_2", bcpm=1400)
Balance()
Break("Check Balance")
#
# ----note that this balance just adjusts levels in the IF Rack.
# the user must set power levels for the CGSR2 by hand,
# by adjusting attenuators in Converter Modules 9,13,10,14.
# ------- remove DCR from scan coordinator
SetValues("ScanCoordinator", {"subsystemSelect,DCR":0} )
------------------------------------------------------------
---------------------------------------------------------------
# Example for SPIGOT, BCPM, and CGSR2 setups
#
# load the psrset and setnoise functions
execfile("/users/gbpulsar/python/psrset.py")
configure = """
receiver = 'Rcvr1_2'
restfreq = 1410
obstype = 'Spectroscopy'
backend = 'SPIGOT/BCPM/CGSR2'
pol = 'Circular'
swmode = "tp_nocal"
swtype = "none"
swper = 0.04
swfreq = 0.0, 0.0
nwin = 1 # note nwin must be 1 when using the Spigot.
deltafreq = 0,0
bandwidth = 200
tint = 5
vlow = 0
vhigh = 0
vframe = "topo"
vdef = "Radio"
noisecal = "lo"
nchan = 'low'
#
# spectrometer
spect.levels=3
#
# BCPM specific
bcpm.ch_bw = 1.0
bcpm.sample_time = 'X2'
bcpm.sum_pol = 'Yes'
bcpm.submanager = 'bcpm2'
bcpm.source_name = 'test'
bcpm.hardware = 'bcpm1'
"""
# ------FIRST cycle BCPM off and on, Then do the config
SetValues("BCPM", {"state":"off"})
Break("Wait until BCPM power-down sequence is complete!")
SetValues("BCPM", {"state":"on"})
Break("Wait until BCPM initialize sequence is complete!")
Configure(configure)
# put Spectrometer into scan coordinator so we can balance
SetValues("ScanCoordinator", {"subsystemSelect,Spectrometer":1} )
# tweak for BCPM and CGSR2
# in this example, set the sky freq for the BCPM to 1400 MHz
#
psrset("Rcvr1_2", cgsra=1373, cgsrb=1433, bcpm=1400)
Balance()
Balance("Spectrometer")
Break("Check Balance")
#
# note that this balance just adjusts levels in the IF Rack.
# the user must set power levels for the CGSR2 by
# adjusting attenuators in Converter Modules 9,13,10,14.
# note that the attenuators in the Converter rack must
# be set by hand
# remove Spectrometer from scan coordinator
SetValues("ScanCoordinator", {"subsystemSelect,Spectrometer":0} )
# remove DCR from scan coordinator
SetValues("ScanCoordinator", {"subsystemSelect,DCR":0} )
---------------------------------------------------------------
| Topic AstridPulsarAdvice . { Edit | Attach | Ref-By | Printable | Diffs | r1.5 | > | r1.4 | > | r1.3 | More } |
|
Revision r1.5 - 10 Apr 2006 - 15:34 GMT - FrankGhigo Parents: TWikiUsers > FrankGhigo |
Content copyright © 1999-2007 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. |