Exemplo n.º 1
0
                print "    %s" % b
            print "  init defaults:"
            for p in sorted(initlist[m].items()):
                print "   ", p
            print
        else:
            print m
    sys.exit()

# Validate arguments
if opt.mode != None and opt.mode not in modelist.keys():
    print "Requested mode '%s' does not exist" % opt.mode
    sys.exit()

# Connect to guppi client
c = Client()

# Check clock rate
clock_current = c.get('SYNTH/CFRQ/VALUE')
clock_current = clock_current.strip("MHZmhz")
if opt.query == 'clock':
    print clock_current
    sys.exit()
elif opt.query == None:
    print "Current clock rate is %s" % clock_current

# Check currently loaded mode
bofs_current = c.unload()
bofs_current.sort()
if bofs_current in modelist.values():
    for (k, v) in modelist.iteritems():
Exemplo n.º 2
0
#! /usr/bin/env python
from guppi.client import Client
cicada = Client()
import guppi.interpreter

# Check to see if observations are running
do_arm = False
daqstate = cicada.get("DAQ/DAQSTATE")
gpudaqstate = cicada.get("GPU1/DAQ/DAQSTATE")
print "DAQ state = %s" % daqstate
print "GPU DAQ state = %s" % gpudaqstate
if (daqstate=="stopped" and gpudaqstate=="stopped"):
    do_arm = True

if (do_arm==False):
    print """
    WARNING:  Observations appear to be currently running, so the HW will
    not be re-armed.  This means data displayed here may not be current.
    """

if (do_arm):
    cicada.arm()

print "\nADC Power level info:"
guppi.interpreter.plot_adc_hist()
Exemplo n.º 3
0
#! /usr/bin/env python
from guppi.client import Client

cicada = Client()
import guppi.interpreter

# Check to see if observations are running
do_arm = False
daqstate = cicada.get("DAQ/DAQSTATE")
gpudaqstate = cicada.get("GPU1/DAQ/DAQSTATE")
print "DAQ state = %s" % daqstate
print "GPU DAQ state = %s" % gpudaqstate
if (daqstate == "stopped" and gpudaqstate == "stopped"):
    do_arm = True

if (do_arm == False):
    print """
    WARNING:  Observations appear to be currently running, so the HW will
    not be re-armed.  This means data displayed here may not be current.
    """

if (do_arm):
    cicada.arm()

print "\nADC Power level info:"
guppi.interpreter.plot_adc_hist()
Exemplo n.º 4
0
                print "    %s" % b
            print "  init defaults:"
            for p in sorted(initlist[m].items()):
                print "   ", p
            print
        else:
            print m
    sys.exit()

# Validate arguments
if opt.mode != None and opt.mode not in modelist.keys():
    print "Requested mode '%s' does not exist" % opt.mode
    sys.exit()

# Connect to guppi client
c = Client()

# Check clock rate
clock_current = c.get("SYNTH/CFRQ/VALUE")
clock_current = clock_current.strip("MHZmhz")
if opt.query == "clock":
    print clock_current
    sys.exit()
elif opt.query == None:
    print "Current clock rate is %s" % clock_current

# Check currently loaded mode
bofs_current = c.unload()
bofs_current.sort()
if bofs_current in modelist.values():
    for (k, v) in modelist.iteritems():
Exemplo n.º 5
0
                print "    %s" % b
            print "  init defaults:"
            for p in sorted(initlist[m].items()):
                print "   ", p
            print
        else:
            print m
    sys.exit()

# Validate arguments
if opt.mode != None and opt.mode not in modelist.keys():
    print "Requested mode '%s' does not exist" % opt.mode
    sys.exit()

# Connect to guppi client
c = Client()

# Check clock rate
clock_current = c.get('SYNTH/CFRQ/VALUE')
clock_current = clock_current.strip("MHZmhz")
if opt.query == 'clock':
    print clock_current
    sys.exit()
elif opt.query==None:
    print "Current clock rate is %s" % clock_current

# Check currently loaded mode
bofs_current = c.unload()
bofs_current.sort()
if bofs_current in modelist.values():
    for (k,v) in modelist.iteritems():
Exemplo n.º 6
0
#! /usr/bin/env python
from guppi.client import Client
cicada = Client()
import guppi.interpreter

# Check to see if observations are running
do_arm = False
daqstate = cicada.get("DAQ/DAQSTATE")
print "DAQ state = %s" % daqstate
if (daqstate=="stopped"):
    do_arm = True

if (do_arm==False):
    print """
    WARNING:  Observations appear to be currently running, so the HW will
    not be re-armed.  This means data displayed here may not be current.
    """

if (do_arm):
    cicada.arm()

print "\nADC Power level info:"
guppi.interpreter.plot_adc_hist()