4  Telescope Control & Data Acquisition Computers

4.1) Introduction
4.2) Basic Operating Instructions
4.2.1) Turning the machines on
4.2.2) Re-booting from a computer "crash"
4.2.3) Turning the machines off
4.3) The Telescope Control Computer
4.3.1) Logging on
4.3.2) Directory structure
4.3.3) Disk storage space
4.3.4) Starting the Telescope Control Software
4.3.5) Restarting individual windows
4.3.6) The Mouse Buttons
4.4) Some Useful Info
4.4.1) Internet Access
4.4.2) Storing Data on DVD
4.5) Quick Look and Data Reduction


4.1  Introduction

There are four "user" computers at the 1.3-meter telescope (in addition to special-function computers described in later sections of the manual):

  1. mcgraw new PC running Linux OS. This is the Telescope Control Computer, and is the observer's workstation, providing telescope and instrument control windows.

  2. tambora: Sparc2 running Solaris 2.7, used as the Data Acquisition Computer. It is remotely accessed by mcgraw.

  3. hill: new PC configured as the Data-Reduction Computer, providing IRAF, XVista, and other programs.

  4. etna: Pentium PC running RedHat Linux 6.1 configured to run the MDM8K CCD mosaic camera. It runs the detcom program and is generally remotely accessed from chichon when observing.

All of the computers are networked together, with the raw data disks shared among the three computers to provide direct access to the data. The raw data disk on tambora is called /data/tambora/obs13m, and has a capacity of 17.8 Gbytes. The raw data disk on etna is called /data/etna/visitor, and has a capacity of approximately 70 Gbytes.

The data-acquisition computers, tambora and etna, handle the real-time data-acquisition tasks and raw data storage that must proceed with minimal interruption. As such, neither of these computers has data-analysis software installed (except minimal packages only for engineering purposes). To ensure uninterrupted data-acquisition, the observer works with mcgraw, where they can control all aspects of data-taking, instrument setup, and telescope control. Most of an observer's run is spent sitting in front of mcgraw.

Fast Linux computers,mcgraw main station and hill, used as a second workstation dedicated to data-reduction. The Linux boxes are new, and have recently been re-configured (during the Summer 2005 shutdown period) with new hard drives and updated programs. Their performance is greatly improved, and they are now capable of handling most data-reduction tasks more quickly than the old Sparcstations.

Summary:

mcgraw
Displays the telescope control interfaces (MDM 1.3m TCS and xmis).
Displays CCD control window (ccdcom running via ssh on tambora, or Prospero running on mcgraw with the OSU IR camera and CCD spectrometer) which talks and stores images from the I.C. computer and caliban.
Quick-look data inspection (IRAF) running on mcgraw, looking at raw data stored temporarily on mcgraw, tambora and etna.
Data archiving (use hills DVD writer)

tambora
CCD data acquisition control program ccdcom.
Storage of raw CCD images on disk /data/tambora/obs13m (ccdcom only).

hill
Data-reduction (IRAF or XVista)
General purpose computing (e.g., running netscape, text processing, etc.)
Alternative raw/reduced data archiving (DVD).
Mounts the raw-data disks on mcgraw, tambora and etna to speed copying of raw data onto hill's data-reduction disks.

etna
Runs the MDM8K CCD camera.
Storage of raw CCD images on /data/etna/visitor.

All four computers share a network PostScript laser printer (both single and double sided black and white only) and share the raw data disks.

In addition, there are network ports available for connecting a laptop computer (Windows or Linux) to the network as a guest machine. Details are given in a separate document available at MDM. We provide both fixed-IP addresses and DHCP services at 100MB wire speeds. There is also wireless. You will need to have an ethernet card with a 10BaseT (RJ45) connector or wireless already installed in your laptop; MDM has none to provide.

All four computers can also communicate via the mountain network (via ssh and scp) with their opposite numbers at the 2.4-m Telescope: hiltner, krakatoa, agung, and vesuvius.

4.2  Basic Operating Instructions

4.2.1  Turning the machines on

Under normal circumstances the computers and their peripheral devices are left powered on at all times. The only time an observer will need to power up the machines from a cold start will be after a thunder storm or a hardware failure.

With the exception of the monitor and keyboard, the Linux computers are located in the computer room racks and the power switches are on the front of the computers. Open the rear cabinet for tambora to gain access to the power switch for tambora located on the back of the box.

To start the machine(s) go through the following sequence:

Of the four computers, etna will take the longest time to boot (~3 minutes). In general, unless you are using the MDM8K camera, etna should be turned off to conserve power. You should never have to login to the tambora or etna consoles except for emergency shutdowns in the event of lightning or severe weather.

4.2.2  Re-booting from a computer "crash"

Occasionally you will need to recover from a crashed or hung computer. Try to logout in the usual manner. If this fails try to issue Control-C a few times to see if you can get a response. If the system is still hung, reboot it as follows:

Sparcstation Reboot (tambora) tambora's keyboard is in the computer rack:

  1. Press STOP-a to display the boot prompt. The STOP key is also called the L1 key and it is located at the top left of the group of 10 keys that runs vertically along the left-hand side of the keyboard. While holding down the L1 key press the letter a key. The computer responds with the message:
     
    Type b (boot), c (continue), or n (new command mode) >
  2. Type b to re-boot the system.
Linux Workstation (mcgraw, hill and etna) etna's keyboard is in the computer rack.
  1. Press Ctrl+Alt+Del. The computer will halt, shutdown various services, and hopefully at the end reboot automatically.

  2. If you are trying to power-down the computer, wait until you see the computer start the reboot, and then hit the power switch.

4.2.3  Turning the machines off

  1. If using etna (MDM8K), login to the console as user "shutdown", password "haltsystem", and it will turn itself off.
  2. If using tambora, located in the left computer rack (ccdcom), login to the console as user "shutdown", password "haltsystem", and when it stops the shutdown process, turn off the power using the switch on the back of the box next to the AC power cord.
  3. Power off the Linux workstations mcgraw and hill by logging in as a regular user and typing "shutdown" at the Unix prompt. Answer "Y" at the prompt. They should turn themselves off.
  4. If using CCDS or TIFKAM, quit out of the data-taking program on the IC (type "quit" at the prompt), then turn off the power on the PC after you see the DOS prompt return.

    Leave the machines on unless there is bad lightning in the area. If you need to shut them down, please follow this procedure: Linux and Sun Workstations.

If you need to turn off one of the sparcstation (i.e., you are instructed to do a full power-down by one of the support personnel), turn off the monitor and the main box, in that order.
Caution - If you are cycling power on a computer (turning it off then back on again), always count slowly to 10 between "off" and "on" to prevent possible hardware damage (you need to give disks time to spin down, and various electrical systems to discharge).

4.3  The Telescope Control Computer

The telescope and MIS box can be controlled remotely using programs running on mcgraw. Each program has a separate command window. This section contains all the information you need to control the telescope (xtcs) and MIS box (xmis). The new PC autoguider cannot yet be remotely operated from the observer's workstation.

4.3.1  Logging on

The computers have a screen blank feature to stop image burn-in on the monitor. The screen goes blank if there is no activity after a certain period. Move the mouse or press any key (e.g. a Shift key) to activate the monitor.

If the windows are operating on the data acquisition computer (mcgraw), there is no need to log on. Skip this section. Otherwise, hit the Enter key and the login prompt will appear.

Most xterminal windows on mcgraw and hill have a white background with a black font. The exceptions are the xterm windows for programs running the data-taking system:
ccdcom has yellow text on a black background.
prospero has black text on a white background.
This difference in color scheme is to help you easily distinguish the data-taking programs from all the other windows that are open.

4.3.2  Directory structure

The computer is split into directories, analogous to different folders in a filing cabinet. These directories contain sub- directories and individual files. The "home" directory, which is where you will reside when bringing up a new window is:

/lhome/obs13m for mcgraw
/home/tambora/obs13m for tambora

You can find out what is in a directory with the command ls.

To change from one directory to another use the command cd, for example:

   cd <cr>   (go back to the home directory)

cd /data/mcgraw <cr> go to mcgraw's data area

cd /data/tambora/obs13m <cr> go to tambora's data storage area

Note that raw data for ccdcom (except the MDM8K camera) are written to /data/tambora/obs13m, which disk is mounted by both mcgraw and hill. tambora has a number of real-time functions associated with data acquisition that can be interrupted by attempting to also run IRAF or other programs, hence there are no copies of IRAF or other data analysis programs on tambora. CCDS and TIFKAM data is written to mcgraw.

You must change to the desired directory each time you bring up a new window. To find out where you currently reside issue the command pwd (print working directory).

4.3.3  Disk storage space

To find out how much disk space is used type the command df in a mcgraw window. The last three columns of the table report the remaining available space (kbytes), the used percentage of the disk capacity, and the disk identification.

We advise that you make a daily backup of your data to DVD.  There is a DVD drive on hill.

4.3.4  Starting the Telescope Control Software

The TCS system is controlled from mcgraw using the MDM 1.3m TCS program. This can be started  by the preferred way by putting the mouse cursor on the desktop ("background") screen, hold down the left-hand button and select  MDM 1.3m TCS from the "<Telescope Control>" menu.

The MDM 1.3m TCS GUI window will appear on the desktop.

If you are using one of the MDM CCD cameras (but not the MDM8K camera), or one of the OSU instruments (CCDS or TIFKAM), you also need to start the xmis program which controls the Multiple Instrument System or MIS. Do this by selecting  xmis  from the "<Telescope Control>" menu.

The xmis window will appear on the desktop.

If you are using the MDM8K camera, it has its own filter wheel system and the MIS will not be mounted on the telescope.

4.3.5  Restarting individual windows

You might need to re-start an individual window if it is accidentally destroyed (!) or if it crashes. Remember that the telescope control, MIS and guider programs must be run from a mcgraw console window. Also remember that windows (and especially icons) can be hidden under other windows.

If the window hangs do the following:

If you think that the window has genuinely crashed or is absent, enter the command jobs. If the window name appears as a stopped job, kill it with the command kill %n where n is the stopped job number displayed to the left of the job name. Also issue the command ps -x to list all the processes that belong to the visitor user. If the window name appears in the list, kill the process with the command kill nnnn (or kill -9 nnnn) where nnnn is the process number. Repeat the ps -x command to check that the process was indeed destroyed.

Once you are sure that the window is not running you can restart it by typing its name followed by an & .

Keeping the number of extraneous windows to a minimum will increase the efficiency of the computer. Error messages are reported in the console window, which should not be destroyed. It is usually kept as an icon labeled "Console" in the upper left-hand corner of the screen (near the virtual desktop panel).

4.3.6  The Mouse Buttons

This section used to be an extended primer on how to use a window-based computer, back in the days when "dumb terminals" were all the rage. We now assume that anybody who has not used a windows based computer probably has no business being here by themselves, and better catch up with the 21st century or go extinct...

Everybody sets up their windows differently, but a few basic styles have begun to converge. Because the observing console also uses programs like ds9 or ximtool to display images, we have purposely kept the number of fancy color buttons to a minimum since these interfere with the image display.

The mouse menus are kept as simple as possible, and are the same on all of the MDM computers (allowing, of course, for features not available on all machines).

The three mouse buttons are assigned as follows:

Left Button:
Main Menu - Click and hold this button to get a pull-down menu with the most relevant programs and xterms available on the system.

Middle Button:
Window Ops - commands to manipulate windows (move, resize, iconify, kill, etc.)

Right Button:
Desktop Control - lose track of one of your windows? Click and hold the right mouse button, and then select the window you are looking for. It will bring that window forward and put the cursor in it.

A couple of special "hot" keys are also available on the keyboard:

Linux workstations:
"F1" key (top rank) is used to move windows forwards and back (equivalent of the Sun "Front" key).

"F2" key (top rank) will open and close windows (equivalent of the Sun "Open" key).

Additional window operations:

To change the font size in an xterm window:
Hold down the Ctrl key and then click and hold the Right mouse button inside the window. A pop-up window ("VT Fonts") gives you options ranging in size from unreadably small to huge. The default size is medium.

To disable/enable the scroll bar:
Hold down Ctrl and the Middle mouse button ("VT Options" menu), and select "Enable Scrollbar". If a check-mark appears next to the words, you have a scroll bar; if not, you have none. A lot of other options are available here as well.

4.4  SOME USEFUL  INFO

4.4.1  Internet Access

MDM has regular access to the Internet through a T-1 line (1.5 Mbit/s) that is connected through the Kitt Peak mountain network, making it possible to ssh or scp to a machine at your home institution or elsewhere. Due to variable network usage on Kitt Peak, actual data transmission rates can be significantly lower than the theoretical maximum. In addition, you should be aware that MDM is billed a significant amount based on its actual fraction of the total Kitt Peak network traffic. For these reasons, the Internet is suitable only for transfer of small data files, but it can be quite satisfactory for checking weather reports and satellite images, and otherwise killing time on cloudy nights.

4.4.2  Storing data on DVD on hill

To write all of the FITS files to DVD, load a DVD on hills DVD drive carrier and follow the MDM Info Sheets.
   

Other useful commands:

For any data storage see MDM Info Sheets

Which kind of DVD should you use? buy only
DATA QUALITY DVD+R or DVD-R

4.5  Quick Look and Data Reduction

Mcgraw and hill have the latest versions of XVista
(v6.0.1), IRAF 2.11.x, XImTool, SAOimage ds9 (The old SAOimage is no
longer supported, ds9 is a way better program by a long ways, and works
like SAOimage, only better). All have extensive online help files.


< Prev (Telescope Specs) Table of Contents Next (Telescope Control System) >

Updated: 2009 March 19 (Barr/mdm)