Gemini Health Gemini Health Status Display Status Display Travis Prose Travis Prose University of Hawai‘i - Hilo University of Hawai‘i - Hilo Mentor Angelic Ebbers Mentor Angelic Ebbers
Jan 17, 2016
Gemini Health Gemini Health Status DisplayStatus Display
Travis ProseTravis Prose
University of Hawai‘i - University of Hawai‘i - HiloHilo
Mentor Angelic EbbersMentor Angelic Ebbers
Gemini ObservatoryGemini Observatory
Gemini North is a very large 8 meter telescope located on the summit of Mauna Kea which rises to nearly 14,000 feet
Mauna Kea is one of the world’s best locations for observing the night time sky in the world
What is the ProblemWhat is the Problem
There is only so much time in which to There is only so much time in which to take data so any faults or errors use take data so any faults or errors use up timeup time
It costs Gemini 120 dollars per minute It costs Gemini 120 dollars per minute of operationof operation
Therefore it is important not only for Therefore it is important not only for time on the sky but cost as well to time on the sky but cost as well to find and fix problems as soon as find and fix problems as soon as possiblepossible
What is the ProblemWhat is the Problem
Observers first need to realize that a Observers first need to realize that a problem exists and then find where problem exists and then find where the problem is locatedthe problem is located
The observers need to search through The observers need to search through numerous engineering screens to numerous engineering screens to find the problemfind the problem
Gemini Health Status Gemini Health Status DisplayDisplay
GHSD is a program that monitors over GHSD is a program that monitors over 170 subsystem needed to run the 170 subsystem needed to run the telescopetelescope
The appearance should be simple and The appearance should be simple and easily readable from 4 feet awayeasily readable from 4 feet away
The GHSD will be located on the The GHSD will be located on the summit for use by both the summit for use by both the observers and the observing observers and the observing assistantsassistants
Tcl/TkTcl/Tk
Tcl/Tk otherwise known as “Tickle” is Tcl/Tk otherwise known as “Tickle” is a scripting languagea scripting language
Allows for rapid developmental of Allows for rapid developmental of Graphical User Interfaces like the Graphical User Interfaces like the Gemini Health Status DisplayGemini Health Status Display
EPICSEPICS
EPICS is a language that allows EPICS is a language that allows communication between high level communication between high level programs like the GHSD and the programs like the GHSD and the hardware on the telescopehardware on the telescope
EPICS allows the Gemini Health EPICS allows the Gemini Health Status Display to monitor channels Status Display to monitor channels and update the monitor with the and update the monitor with the latest datalatest data
Object Oriented Object Oriented ProgrammingProgramming
Allows for the simplification of code by Allows for the simplification of code by writing one instance of it and then writing one instance of it and then using it multiple timesusing it multiple times
For instance by using five basic For instance by using five basic classes the entire Gemini Health classes the entire Gemini Health Status Display can be built to Status Display can be built to monitor over 170 channelsmonitor over 170 channels
Building the GHSDBuilding the GHSDGemini Health Status Display was Gemini Health Status Display was
built by creating simple objectsbuilt by creating simple objects
Debugging takes less time than Debugging takes less time than building each individuallybuilding each individually
New features need only to be added New features need only to be added once once
Common ObjectsCommon ObjectsGHSD Light GHSD Light Displays text and Displays text and
a lighta light
GHSD Light RngGHSD Light Rng Displays text and a Displays text and a lightlight
GHSD BusyGHSD Busy Displays text and a Displays text and a blinking blinking
lightlight
GHSD HeartGHSD Heart Displays text and Displays text and monitors a monitors a
heart beat heart beat
GHSD LabelGHSD Label Displays text and Displays text and an an output labeloutput label
ghsdStatus.tclghsdStatus.tclitk_component add l41 {GhsdLightCmd $tcs.l41 itk_component add l41 {GhsdLightCmd $tcs.l41
"TCS Health" $cwid $psize $csize TCS TCShealth "TCS Health" $cwid $psize $csize TCS TCShealth "BAD red WARNING yellow GOOD green"} "BAD red WARNING yellow GOOD green"}
itk_component add l42 {GhsdLightCmd $tcs.l42 itk_component add l42 {GhsdLightCmd $tcs.l42 "TCS Status" $cwid $psize $csize TCS TCSstate "TCS Status" $cwid $psize $csize TCS TCSstate "BOOTING red INITIALISING yellow RUNNING "BOOTING red INITIALISING yellow RUNNING green"}green"}
Using the same basic object it is Using the same basic object it is possible to create very different possible to create very different effects with little additional codingeffects with little additional coding
ConclusionConclusion
Before the Before the Gemini Health Gemini Health Status Display Status Display observers and observers and observing observing assistants assistants need to look need to look through through multiple DM multiple DM screensscreens
ConclusionConclusion
Now the area Now the area of a problem of a problem can be found can be found much quicker much quicker and dealt and dealt with in a with in a much quicker much quicker fashionfashion
ConclusionConclusionUsing both Tcl/Tk and an Object Using both Tcl/Tk and an Object
Oriented Programming approach Oriented Programming approach allowed for: allowed for:
Rapid developmentRapid development
Simple codingSimple coding
Changes in the futureChanges in the future
AcknowledgementsAcknowledgementsCenter for Adaptive Optics Center for Adaptive Optics
Gemini North ObservatoriesGemini North Observatories
Angelic EbbersAngelic Ebbers
Dolores CoulsonDolores CoulsonFunding provided through the Center for Adaptive Optics, a National Funding provided through the Center for Adaptive Optics, a National
Science Foundation Science and Technology Center (STC), AST-Science Foundation Science and Technology Center (STC), AST-987683987683