Download - GBT Control System

Transcript
Page 1: GBT Control System

Atacama Large Millimeter/submillimeter Array

Karl G. Jansky Very Large ArrayRobert C. Byrd Green Bank Telescope

Very Long Baseline Array

GBT Control System

Richard Prestage

Page 2: GBT Control System

Requirements of a Single Dish Telescope• Flexibility!• Multiple Receivers

– GBT has 11 current, 1 retired, more planned• Multiple Backends

– Three Spectrometers– Two heterodyne continuum + one bolometer array– Multiple pulsar backends (many visitor instruments)

• Multiple Observing Modes– Line, Pulsar, Continuum, VLBI, FSSW, PSSW, BMSW, OTF

Mapping…• Continually being upgraded• Software must be flexible and agile

also…

2

Page 3: GBT Control System

3

Requirements of the Control System• Support the above flexibility• Allow novice users to think about astronomy, rather than

device settings• Allow expert users to manipulate and use every capability

of the hardware• Create a laboratory of instruments, rather than a monolithic

telescope– Allow for expansion and upgrades– Minimize interdependencies

• Systems implemented as autonomous units, coordinated by time– Consistent metaphor for devices– Consistent device state machine

Page 4: GBT Control System

4

Page 5: GBT Control System

5

Areas I will cover today

• Monitor and Control System (“Managers”)

• Configuration Logic

• Observation Control

• Queue Control

Page 6: GBT Control System

6

• Monitor and Control System (“Managers”)

• Configuration Logic

• Observation Control

• Queue Control

Page 7: GBT Control System

7

Page 8: GBT Control System

8

Monitor and Control System

• Each separate piece of hardware is controlled by a separate process -– “Device Manager”

• Base class “Manager” provides a common control interface and implements core functionality required by all devices.

• Derived class adds methods specific to the needs of the device

• Control or “set-up” variables which define the operation of a device are encapsulated in the class “Parameter”– Primitive data types– Arrays– C-structures

• “setParameter” method can set any Parameter of any type.

Manager

off

on

setParameter

recalculate

activtate

stop

start

arm

complete

getEGST

reportParameter

Page 9: GBT Control System

9

Monitor and Control System

Scan Coordinator

Antenna Coordinator

LO1 Manager

Spectrometer Manager

Antenna Manager

Active Surface Manager

• Can have a hierarchy of “coordinators” and “managers”

Page 10: GBT Control System

Monitor and Control System

Standby

Ready

Stopping

Running

Activating

Committed

Aborting

Off

• Basic unit of data acquisition is a “scan”• Contiguous period of telescope motion and data

acquisition• One “On” of an On-Off observation or point map• One “row” of an on-the-fly map.• Managers are independent state machines• Coordinated by Start Time

Page 11: GBT Control System

11

• Monitor and Control System (“Managers”)

• Configuration Logic• Observation Control

• Queue Control

Page 12: GBT Control System

12

Configuration Logic• The GBT has had over 10 receivers and over 10 backends

available for use during the 10 years since its commissioning.

• Each receiver to backend must be routed through a complicated IF chain.

• If any part of the configuration is incorrectly setup, the observation will fail and telescope time will be lost.

• A typical configuration results in over 125 individual settings to at least 7 different hardware devices.

• The ‘configuration tool’ is an api that allows an observer to specify how they want to use the telescope without having to understand the details of the hardware or the M&C software system.

• The observer specifies what they want to do and the configuration tool maps this into GBT specific hardware settings.

Page 13: GBT Control System

13

Configuration Logic

Page 14: GBT Control System

14

Configuration LogicConfigure(""" receiver = 'Rcvr12_18' beam = 'B12' obstype = 'Continuum' backend = 'DCR' nwin = 1 restfreq = 15000 deltafreq = 0 bandwidth = 320 swmode = 'tp' swtype = 'none' swper = 0.2 swfreq = 0.0, 0.0 tint = 0.2 vlow = 0 vhigh = 0 vframe = 'topo' vdef = 'Radio' noisecal = 'lo' pol = 'Circular' iftarget = 3 """)

Page 15: GBT Control System

15

Configuration Logic

• Configuration Tool:– Does what?– How?

Page 16: GBT Control System

16

• Monitor and Control System (“Managers”)

• Configuration Logic

• Observation Control• Queue Control

Page 17: GBT Control System

17

Observation Control• Typical Observation:

– Calibrate the Telescope (Peak, Focus)– Configure the instrumentation (as discussed above)– Balance the IF system– Slew to a target source (specified in a catalog)– Perform the observation

• GBT Observation Control System executes simple scripts, written in python, to execute the above steps.

• All of the power of python is available to the observer.

Page 18: GBT Control System

Simple Observing ScriptsExample 1:AutoPeakFocus()

Example 2:mySource = “3C48”myOffset = Offset(“J2000”, 1.0, 1.0)

Catalog(flux_cal)Configure(“/home/users/ashelton/myConfigure.py”)

Slew(mySource)Balance()

Track(mySource, myOffset, 60.0, “1”)

Page 19: GBT Control System

19

More Complex ExampleoffsetList = [0,1,-1,2,-2,3,-3,4,-4,0]for nOffset in offsetList: # Calculate total offset, place into servo totOffset = offset0 + delOffset*nOffset SetSubrOffset("y3", totOffset)

# Compensate LPC's a = (az0LPC+delOffset*nOffset*azLPCScale) e = (el0LPC+delOffset*nOffset*elLPCScale) f = focus0LPC+delOffset*nOffset*focusLPCScale SetValues("Antenna",{"localPointingOffsets,azOffset2":a}) SetValues("Antenna",{"localPointingOffsets,elOffset":e}) SetValues("Antenna",{"local_focus_correction,Y":f}})

# Add some annotation to the observing process Annotation("Y3FFSET",str(totOffset))

# Do the measurements AutoPeak(source=src, configure=False, balance=False)

Python list, loop

Call a Python function

Python arithmetic

Set values in hardware

Page 20: GBT Control System

20

• Monitor and Control System (“Managers”)

• Configuration Logic

• Observation Control

• Queue Control

Page 21: GBT Control System

21

Queue Control

Page 22: GBT Control System

22

Queue Control

Page 23: GBT Control System

23

Queue Control

Page 24: GBT Control System

24

The National Radio Astronomy Observatory is a facility of the National Science Foundation

operated under cooperative agreement by Associated Universities, Inc.

www.nrao.edu • science.nrao.edu


Top Related