180 likes | 490 Views
Hobby - Eberly Telescope. MARS Software Design Review November 2002 Michael H. Ward Systems Analyst McDonald Observatory. MHW 04-November-2002. OUTLINE. Goals Software System Design MARS Server PMAC Interface PMC Interface Graphical User Interface Future Changes/Additions
E N D
Hobby - Eberly Telescope MARS Software Design Review November 2002 Michael H. Ward Systems Analyst McDonald Observatory MHW 04-November-2002
OUTLINE • Goals • Software System Design • MARS Server • PMAC Interface • PMC Interface • Graphical User Interface • Future Changes/Additions • Outstanding Issues Page 2 MHW 20021104
Goals • Allow TOs to focus and stack the HET mirror segments in the shortest amount of time possible. • Incorporate as much intelligence and automation into the process as possible. • Ultimately "two clicks" to stack the mirror (one for each side). • Support of various engineering tasks. • Software • Tcl/Tk & C • Use modular style techniques (allows for ease of software changes when hardware needs to be changed) Page 3 MHW 20021104
Communications Block Diagram HET Shutter (pneumatic) MARS Computer TCS REF Shutter (pneumatic) Segment Actuators (271) PMC SPS MARS Software PMAC Knife Edge (pneumatic) GUI frame grabber Knife Edge (voice coil) Video Display Motors & Encoders Video to Fiber Converter Video to Fiber Converter fiber RS-644 Pulnix RS-170 E-Net to Fiber Converter E-Net Hub Terminal Server E-Net to Fiber Converter fiber RS-232 Lamp PS Agilent 363 RS-232 Laptop RS-232 Black Box Pow-R-Switch plug strip(s) GUI Control Room CCAS Tower Page 4 MHW 20021104
MARS Software System Design MARS Computer AOA 1 Time Stamp Camera Ctrl Pulnix 3 Watchdog Frame Grabber Shared Memory Agilent 363 1 Lamp Ctrl 2 PMC PMC Client 2 Black Box Pow-R-Switch TCS 1 TCS Comm Power Ctrl MARS Server PMAC Comm PMAC 2 2 Motors Manual command entry via TELNET GUI Voice coil 1 - RS232 connection via terminal sever 2 - Direct ethernet connection 3 - RS644 Shutters Page 5 MHW 20021104
MARS Server • Allows for a distributed software system. • TCP/IP socket server process. • Accepts client sockets from allowed computers. • GUIs, loggers, manual commands... • Accepts, parses and executes MARS commands. • e.g. stack, lamp on/off, move motor, ... • Passes commands to various MARS processes via shared memory interface for implementation (lamp_ctrl, PMAC_comm, stacker, camera_ctrl, ...) • All commands are simply ASCII text (allows for manual command entry via a telnet session). • Forks for each approved connection • Results in a dedicated server for each connection. Page 6 MHW 20021104
PMAC Interface • Dedicated module (PMAC_comm.c) interfaces between the MARS system and the PMAC. • Retrieves commands from shared memory interface (most likely placed there by the MARS server). • Calls appropriate function from the PMAC interface software (supplied by PSO). • Automatically interrogates the PMAC for status of various items and places the results into shared memory locations. Page 7 MHW 20021104
PMC Interface • Dedicated module (pmc.c) interfaces between the MARS system and the HET Primary Mirror Control system. • Maintains a TCP/IP socket connection with the PMC system. • Retrieves commands from shared memory interface (most likely placed there by the MARS server). • Dumps tip/tilt corrections to the PMC as they become available. (POC system currently uses polling by the SPS system which results in quite a bit of wasted time). Page 8 MHW 20021104
MARS Graphical User Interface • Tcl/Tk program • Currently ~5,000 lines of code • ~1,000 lines of additional code when finished • Talks to the MARS system via TCP/IP socket to the MARS server. • Allows for more than one GUI to be run at a time. • Allows for GUI to run on the native system rather than porting the display across the network (minimizes network traffic). • Same design as currently implemented in the POC system. Page 9 MHW 20021104
MARS GUI Layout MARS GUI (main) Defaults Stage Control Focus Camera Control Menus Display Tip/Tilt Load/Save Status Update Set Exp Time Display Image Sequence Reload Factory Save Image Main GUI routine includes: • Initializing default parameters • Displaying of main GUI • Establishing communications to MARS server • Updating system status • Updating display Page 10 MHW 20021104
Future • Auto focus • SPS integration • Auto alignment of MARS instrument Page 17 MHW 20021104
Outstanding Issues • AOA Analysis Software • Currently left as a “black box” that the software will ship images to and retrieve tip/tilt corrections for each segment. • Video Display • Display on GUI • Time to implement (programming & learning curve) • Network lag • Feed to video monitor in control room • Requires an additional fiber convert set + fiber pair • Quick implementation time • Need a camera to work with. • SenSys Camera Control Page 18 MHW 20021104