The basic commands for selecting targets, taking data, and performing other observing tasks using the photometric telescope are implemented as tcl commands, available at the command line at the execution of MOP. When using the command line interface for observations, however, the observer must maintaining the log, select the targets, and take care of other bookkeeping steps by hand. (There are command line tools to help with these tasks, but their use still requires significant human attention.)
The MOP GUI is a separate MOP process, started as a slave of the command line process, which takes care of many of the bookkeeping and logging tasks, presents graphical analogs to the most useful of the command line commands, and can automatically execute many routine observing commands. As a separate process from the command line, the GUI is available to the observer even when long, blocking tasks are being performed by the master MOP process.
To properly display the status (both of the telescope and the master MOP process) and determine appropriate and allowed actions, the GUI process maintains several pieces of information obtained from the master MOP process. These data are initialized when the GUI is started using startupGUI, and need to be updated as they are changed for the GUI to function properly. Commands which potentially alter data tracked by the GUI process are supplied with the "-updateGUI" command line option, which automatically updates the GUI's data when run. If these commands are run without the -informGUI option, the GUI's bookkeeping data will not be update, and subsequent use of the GUI may not be reliable.
Actions initiated using the GUI correspond to one or more command line commands, whose parameters are either entered directly into the GUI by the observer or derived from bookkeeping data kept in the GUI process. The command line commands issued by the GUI are echoed to the murmur log; these can be seen by grepping the murmur log for MOPGUI. Commands issued by the GUI will always include the "-informGUI" option, if necessary.
The MOP GUI can be started from the MOP command line using the command startupGUI. MOP must already have established a connection to both the filter wheel box and TCS computer.
mt> ptConnectmt> statupGUIIf you are running MOP from an X terminal which uses xhost style security,
the MOP GUI (and indeed, any tcl program using the send command) will fail. If
your running X from a recent linux distribution and are not using
xhost or similar commands to allow display to your X session, you
will probably be okay. Note that, although possible if you jump through enough
hoops, the obvious way of getting the X terminals to work properly is actually
a huge security problem. Talk to Craig Loomis. It's safest to stick with pt1.
landru will probably also work.
shutdownGUI:mt> shutdownGUIThe MOP GUI performs many of its functions by sending instructions to the MOP command line process. It keeps track of whether the command line process is in a state where it can be sent commands, and if it is not, greys out buttons that require it. Unfortunately, it can sometimes become confused, particularly when a procedure executing in the command line process crashes and does not complete normally.
puts "All done now"mt> tbmt> clearGUILast modified 6/21/2001 by E. H. Nielsen, Jr.