Contents
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.
- Check SIAS to make sure the instrument is not in fill position
- Confirm that KCWI is in-beam; check Nasmyth camera & call summit if required
- Check KCWI power status after it is in beam
- kcwiPowerStatus
- FPCam, SlitViewCam, WebcamSwitch should be = 0, All else = 1
- Launch KCWI VNC desktops
- Check monitoring service status vis_emir kcwimon &
- Initialize the detector by running kcwiInit
- Home the Rotator
- Check Rotator GUI to first confirm it is not homed
- Home from KCWI Menu → Home/Initialize Components → Home Rotator
- Take test images
- Open 'Exposure Control' and 'Display' GUIs for Blue and Red
- Run kcwi-test-detector, look for 10 successful images each on Blue and Red side
- Home Calibration Unit
- Open 'Calibration Unit' GUI from the 'Low Level Engineering GUI' list
- Home from KCWI Menu → Home/Initialize Components → Home Calibration Unit
- Home the stages
- Open following GUIs from the 'Low Level Engineering GUI' list: Blue Mechanisms, Blue Filter and Grating, Red Mechanisms, Red Grating Exchanger
- Check if Moves are 'Locked'. If yes, Moves must be 'Unlocked' before homing the stages.
- Home from KCWI Menu → Home/Initialize Components → Home Blue + Red Stages
- Close all GUIs once done
Open a terminal on the computer and use the command start_keck_viewers kcwi# [Replace # with KCWI account number]
- Open a command window
Right-click on the background → KCWI Menu → Login Windows → xterm (local)
Run the initialization command kcwiInit
- Do you want to continue running the setup script? → y
- Enter the names of the observing team members → ENG
- Hit 'Enter' to choose default values on the rest of the inputs.
- Check Rotator GUI to confirm if Rotator is homed or not
- Right-click on the background → KCWI Menu → KCWI Engineering → Low Level Engineering GUIs → Rotator
- Home the Rotator
Right-click on the background → KCWI Menu → Home/Initialize Components → Home Rotator
- If Rotator fails to Home, the fibers may need to be cleaned at the summit (see Troubleshooting below).
- Open Exposure Control and Display GUIs
Right-click on the background → KCWI Menu → Individual GUIs
→ Blue Exposure GUI
→ Red Exposure GUI
→ Restart AutodisplayB
→ Restart AutodisplayR
- Take test images
Right-click on the background → KCWI Menu → Login Windows → xterm (local)
Run kcwi-test-detector
- Do you want to run kcwiInit? → n
[Skip since we already ran it at the beginning]
- 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).
- If you are checking out KCWI on a non-KCWI night, make sure to turn the red CCD power off
modify -s krds ccdpower=0
- Open Calibration Unit GUI
Right-click on the background → KCWI Menu → KCWI Engineering → Low Level Engineering GUIs → Calibration Unit
- Home Calibration Unit
Right-click on the background → KCWI Menu → Home/Initialize Components → Home Calibration Unit
- Open Mechanism GUIs
Right-click on the background → KCWI Menu → KCWI Engineering → Low Level Engineering GUIs
→ Blue Mechanisms
→ Blue Filter and Grating
→ Red Mechanisms
→ Red Grating Exchanger
- 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.]
- Home the Stages
Right-click on the background → KCWI Menu → Home/Initialize Components → Home Blue + Red Stages
Would you like to home them? → y
Close all GUIs
- Symptom
-
- ERROR - Access to the RPC client is not allowed for service kbds / krds
- Failed to open service kbds / krds
- Cannot set the red/blue exposure time
- While taking test images with kcwi-test-detector, you don't get all 10 images
- A detector hangs on readout and times out with no image
- Problem
-
Detector services attempt to start but aren't operational/responsive
- Solution
-
Recover the detector, restart, retest
- Check service status kcwi status kbds krds
- Check power status with gshow -s kbds ccdpower -s krds ccdpower
You might see 'ERROR - Access to the RPC client is not allowed for service kbds!'
- Replace 'kxds' with 'kbds' below if Blue side is showing an error, or replace with 'krds' if red side is showing an error.
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 &
- Re-initialize with kcwiInit
- Retake test images with kcwi-test-detector
- Symptom
-
- Detector recovery procedure failed
- The rotator won't home
- Problem
-
- This might be caused by dirty (or rarely damaged) communication fibers
- Lightly dirty fibers show up as dropped frames, while very dirty fibers show up as detector service refusing to start or rotator refusing to home
- Solution
-
- Call the summit to clean the fibers
- There are two connection points, the computer-room (bottom) fiber and the Nasmyth-platform (top/instrument-side) fiber; either can be dirty
- It sometimes takes two cleaning passes on the same fiber (or cleaning both) before it actually clears
- Cleaning interrupts fiber comms and cascades into several dependent systems needing restarts/rehoming. After cleaning, follow the Recovery Procedure below
This is the standard sequence to bring everything back up once the fibers have been cleaned:
- Close all GUIs
- Power-cycle the rotator, run:
kcwiPower 3 8 off
sleep 10
kcwi stop kros kcas
kcwiPower 3 8 on
sleep 60
kcwi start kros kcas
sleep 60
- Check whether the rotator homes successfully, then home the calibration stages too.
- If either fails, clean the fibers again and restart from here.
- Restart the detector and mechanism services, run:
kcwi stop kbds
kcwi stop! krds
kcwi stop kbms
kcwi stop krms
sleep 10
kcwi start kbds krds
kcwi start kbms krms
sleep 60
- Check power status with gshow -s kbds ccdpower -s krds ccdpower (blue is on by default, red is off by default).
- Restart the core services, run:
kcwi stop kcwi head hist mon
kcwi start kcwi
sleep 60
kcwi start hist mon
sleep 10
kcwi start head
sleep 50
- Open monitoring software:
- Run vis_emir kcwimon &
- Confirm if all services are happy.
- Reinitialize:
- Run kcwiInit
- Resets all directories, frame prefixes, and numbers.
- If it complains about services, clean the fibers again.
- Retest:
- Open Exposure Control and Display GUIs
Right-click on the background → KCWI Menu → Individual GUIs
→ Blue Exposure GUI
→ Red Exposure GUI
→ Restart AutodisplayB
→ Restart AutodisplayR
- Right-click on the background → KCWI Menu → Login Windows → xterm (local)
Run kcwi-test-detector
Do you want to run kcwiInit? → n
- If all 20 images (10 blue + 10 red) come through cleanly (ending at frame 10 on both), fiber recovery is complete. If not, clean the fibers again.
- Recover the guider:
- The KCWIA guider might need a restart once fiber comms are interrupted.
- To restart guider camera power, run kcwiPower 2 1 cycle
- Call SWOC to finish recovering the guider if needed.
- Reopen all GUIs:
- Right-click on the background to access the KCWI Menu
KCWI Menu → Select 'KCWI Control Menu' → Select 'Start all KCWI GUIs'