These are some of the strategies that can be followed if the AO loops become unstable, for instance in bad seeing conditions.
Step by step troubleshooting guideline:
It is also possible to decrease the number of modes, but it is recommendable to consider this option as the last resource, and generally keep the value at 300 or above.
If one factor seems to make a big difference, e.g. HO gain, it is advisable to go back and restore the other parameters to the default values.
Additional tips and tricks:
There are different ways to move the PyWFS dichroic in and out of the optical path:
m obdbnmdm=home
or m obdb=0
. Check that the position after the
move is ∼0 mm.
prtcInsertDichroic
. Check that the position
after the move is ∼220 mm.
/net/nfiuserver/nfiudata/rtcdata/calibration/BMC/SummitDMFlatMap_220517_nirc2.fitsTo load this flat map, as prtc at prtcserver
prtc@prtcserver:~$ cd KPIC2/DM prtc@prtcserver:~/KPIC2/DM$ python3 Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 17:14:51) [GCC 7.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from DM import DM as dmlib WARNING: AstropyDeprecationWarning: astropy.utils.compat.funcsigs is now deprecated - use inspect instead [astropy.utils.compat.funcsigs] >>> DM = dmlib() >>> flat = DM.setFlatSurf('nirc2')
>>> DM.flatdflt '220317_mirrcred2' >>> DM.flatdir '/net/nfiuserver/nfiudata/rtcdata/calibration/BMC/' >>> DM.zeroAll()
IMPORTANT NOTE: Execute DM.zeroAll()
at the
end of a PyWFS observing night.
See Section 1 in KPIC BMC DM control notes.
xshow -s ao pmcf1x pmcf1y pmcf2x pmcf2y
xshow -s ao pmoffx pmoffyTo center the modulator:
modify -s ao pmoffx=0.5 pmoffy=0.5
xshow -s ao pmcfoc
Launch the Keck II calib GUI from the k2aoserver-new VNC pulldown menu and run Calibration setup for NIRC2 and NGS-AO.
Launch the PyWFS calib GUI. On a vm-pwfsserver terminal as user pwfs, type prtcCalibrationMenu.py.
Launch the PyWFS modulator control GUI. On a vm-pwfsserver terminal as user pwfs, type prtcModulator.py.
Center the modulator if it is not already centered. On any terminal with access to AO keywords, type modify -s pmoffx=0.5 pmoffy=0.5
Launch the PyWFS loop display GUI. On
a prtcserver terminal as user prtc,
type loopDisp.py
. Check that the four pupils are
evenly illuminated. If they are not, then the FSM
on-axis position needs to be adjusted.
Launch the PyWFS Status GUI. On a vm-pwfsserver
terminal as user pwfs, type prtcStatusGui.py
Move FSM1 and FSM2 until the four pupil images in the PyWFS loop display GUI are evenly illuminated.
You can move the FSM using the ecPDev2.ui GUIs for FSM1 and FSM2, or you can move the FSM using keywords.
pmcf2x=5.954 pmcf2y=6.808 modify -s ao pmcf2gl=1
Once you are happy wih the pupil illumination (four pupils evenly illuminated) after having moved FSM1 and FSM2, click on the Named Posn button on the ecPDev2.ui GUI for FSM2 (same procedure for FSM1). This brings up the ecNps2.ui GUI.
Run the PyWFS Calibration setup again to double check that all pupils are evenly illuminated once the calibration setup procedure is completed.
This section includes general information about the PyWFS modulator:
Ok: 550 0.16 0.17 0.50 0.50 0.00 90.00
k2:ao:pmod:offsetX k2:ao:pmod:offsetY
The following figure shows the KPIC optical layout before the Phase-2 upgrade in March 2022.
A new KPIC BMC DM was added to the optical path as part of the Phase-2 upgrade in March 2022.
The CRED2 tacking camera is an integral part of KPIC. It can also be used to monitor the the PSF when operating the PyWFS with NIRC2 independently of KPIC.
There are two possible options to bring up the the CRED2 camera:
ssh -X nfiudev@nfiuserver [nfiudev@nfiuserver ~]$ cd src/sce [nfiudev@nfiuserver sce]$ ./psfDispTiny.py -s /tmp/TC_Display_images.im.shm
nfiuserver:2
(AO passwd).
This is a low level GUI that has some additional functionality with respect to the user control GUIs. The PyWFS quick access GUI can be used for troubleshooting purposes.
The PyWFS Quick Access GUI is launched from
a vm-pwfsserver terminal as user pwfs:
[pwfs@vm-pwfsserver ~]$ prtcQuickAccess.py
An example of PyWFS Quick Access GUI usage is to recenter the modulator:
The following figure shows the typical layout of the PyWFS control user interface running on k2aoserver-new:2.
Symptom: PyWFS Camera (in the PyWFS status) shows red and says it is powered off. Clicking on it and rebooting/restarting the camera server does NOT resolve this.
Solution:
ssh -X prtc@prtcserver
showRTProcess
. This opens a window, and
the second process from the top is partially crashedssh -X
pwfs@vm-pwfsserver
prtcRestartCOM
. It kes about 5
sec, then you should be able to reacquire with the camera.