MCCD Observation Software details
- Close shutter
- Initialize GPIB (camera)
- Move scanner to initial position
(center - (#frames/2) * #scanner steps between frames)
- Convert desired Latitude and Longitude to encoder steps
(requires that suncenter be done first)
- Move coude to these positions
- reset system time
- set up fits header
- initialize camera format
- refresh the screen display
- initialize tapes if necessary
- fitstr
- initialize fg to use channel 0
- arm IRQ7
- Loop:
- if not first time in loop, wait for
the camera to be ready
- rearm irq7
- call exploop:
- make sure the scanner is at the initial position
- for first scan: write EOF and fits header on tapes
- Loop for #frames:
- on first frame: simple expose command and snap a picture
with the frame grabber, start writing it to tape.
- on subsequent frames: send readout-expose command to camera,
set up the camera tape-write and stuff the
time of the last exposure into the camera buffer,
wait for readout-expose to
finish, and start writing the tape.
- read current time and save it
- open shutter
- wait exposure time
- close shutter
- step the scanner
- wait for previous tape write to finish
- write out the last frame to tape
- display the last frame on the monitor
- update screen display
- see if we got an IRQ7 interrupt, if so, quit.
- see if we did the requested #scans, if so, quit
- open the shutter
- move the scanner to the center
- various cleanup with the camera, display, etc.