Contents

Overview

Run the checkout procedure described below every time KCWI is moved into K2 beam at the RNAS (right Nasmyth) platform, before running the afternoon focus sequence and handing off for calibrations.

The procedure involves initializing the detectors, taking test images, and homing the stages. Any communication and mechanism issues will surface during this procedure, allowing for time to fix prior to the start of afternoon protocols.

Instrument Status

  1. Check SIAS to make sure the instrument is not in fill position
  2. Confirm that KCWI is in-beam; check Nasmyth camera & call summit if required
  3. Check KCWI power status after it is in beam

Steps at a Glance

  1. Launch KCWI VNC desktops
  2. Check monitoring service status vis_emir kcwimon &
  3. Initialize the detector by running kcwiInit
  4. Home the Rotator
  5. Take test images
  6. Home Calibration Unit
  7. Home the stages
  8. Close all GUIs once done

Detailed Instructions

1. Startup: Launch VNC desktops

Open a terminal on the computer and use the command start_keck_viewers kcwi# [Replace # with KCWI account number]

2. Detector: Initialize the Detectors

  1. Open a command window
  2. Right-click on the background → KCWI Menu → Login Windows → xterm (local)
    Run the initialization command kcwiInit

  3. Do you want to continue running the setup script? → y

  4. Enter the names of the observing team members → ENG

  5. Hit 'Enter' to choose default values on the rest of the inputs.

3. Mechanisms: Homing the Rotator

  1. Check Rotator GUI to confirm if Rotator is homed or not

  2. Right-click on the background → KCWI Menu → KCWI Engineering → Low Level Engineering GUIs → Rotator

  3. Home the Rotator
    Right-click on the background → KCWI Menu → Home/Initialize Components → Home Rotator

  4. If Rotator fails to Home, the fibers may need to be cleaned at the summit (see Troubleshooting below).

4. Detector: Take test images

  1. Open Exposure Control and Display GUIs
  2. Right-click on the background → KCWI Menu → Individual GUIs → Blue Exposure GUI
    → Red Exposure GUI
    → Restart AutodisplayB
    → Restart AutodisplayR

  3. Take test images
    Right-click on the background → KCWI Menu → Login Windows → xterm (local)
  4. Run kcwi-test-detector

  5. Do you want to run kcwiInit? → n
    [Skip since we already ran it at the beginning]

  6. You're looking for all 20 images (10 in blue + 10 in red) to complete. If the sequence fails to execute, or doesn't produce all 20 images, the fibers need to be cleaned at the summit (see Troubleshooting below).

  7. If you are checking out KCWI on a non-KCWI night, make sure to turn the red CCD power off
  8. modify -s krds ccdpower=0

5. Mechanisms: Homing the Calibration Unit

  1. Open Calibration Unit GUI
  2. Right-click on the background → KCWI Menu → KCWI Engineering → Low Level Engineering GUIs → Calibration Unit

  3. Home Calibration Unit
    Right-click on the background → KCWI Menu → Home/Initialize Components → Home Calibration Unit

6. Mechanisms: Homing the Stages

  1. Open Mechanism GUIs
  2. Right-click on the background → KCWI Menu → KCWI Engineering → Low Level Engineering GUIs
    → Blue Mechanisms
    → Blue Filter and Grating
    → Red Mechanisms
    → Red Grating Exchanger

  3. Check GUIs to see if the Moves are 'Locked'.
    If a Blue/Red Fill was done after moving the instrument into beam, the moves must be 'Unlocked'.
    The calibration unit cannot home if kbes, kres, kbms and krms (blue and red grating exchange and mechanism services) are locked, a "moves are locked" error would occur.
    Also, if kbes, kbms, kres, and krms are restarted, they come up locked as a protective measure.

    If the stages are 'Locked', make sure to unlock the moves with the following commands before homing them
    modify -s kbes MOVELOCK=####
    modify -s kbms MOVELOCK=####
    modify -s kres MOVELOCK=####
    modify -s krms MOVELOCK=####
    [Replace #### with the movelock password.]

  4. Home the Stages
  5. Right-click on the background → KCWI Menu → Home/Initialize Components → Home Blue + Red Stages
    Would you like to home them? → y
    Close all GUIs

Troubleshooting

Detector services are not responding

Symptom
Problem
Detector services attempt to start but aren't operational/responsive
Solution
Recover the detector, restart, retest
  1. Check service status kcwi status kbds krds

  2. Check power status with gshow -s kbds ccdpower -s krds ccdpower
  3. You might see 'ERROR - Access to the RPC client is not allowed for service kbds!'

  4. Replace 'kxds' with 'kbds' below if Blue side is showing an error, or replace with 'krds' if red side is showing an error.
  5. kcwi stop kxds
    kcwi stop kcwimon
    kcwi start kxds
    sleep 60
    kcwi stop hist head
    kcwi start kcwi
    sleep 60
    kcwi start hist
    kcwi start head
    sleep 60
    vis_emir kcwimon &

  6. Re-initialize with kcwiInit

  7. Retake test images with kcwi-test-detector

Detector recovery fails or the rotator will not home

Symptom
Problem
Solution
  1. Call the summit to clean the fibers
  2. There are two connection points, the computer-room (bottom) fiber and the Nasmyth-platform (top/instrument-side) fiber; either can be dirty
  3. It sometimes takes two cleaning passes on the same fiber (or cleaning both) before it actually clears
  4. Cleaning interrupts fiber comms and cascades into several dependent systems needing restarts/rehoming. After cleaning, follow the Recovery Procedure below

Recovery Procedure After Fiber Cleaning

This is the standard sequence to bring everything back up once the fibers have been cleaned:

  1. Close all GUIs

  2. Power-cycle the rotator, run:
  3. Restart the detector and mechanism services, run:
  4. Restart the core services, run:
  5. Open monitoring software:
  6. Reinitialize:
  7. Retest:
  8. Recover the guider:
  9. Reopen all GUIs: