Old HPF control procedures
you should probably be using the wrappers on the main hpf page.
Setup for not available modes
HPF HE mode
WARNING: these have not been measured/verified since about 2019!! Do not use without re-verifying!!
- syscmd -T 'Guider1_offset_probe (dx_ang=5,dy_ang=4)'
- syscmd -T 'Guider1_offset_fiducial (dx_asec=-5.9,dy_asec=-9.6,compensate="true")'
OR
- syscmd -T 'Guider2_offset_probe (dx_ang=5,dy_ang=4)'
- syscmd -T 'Guider2_offset_fiducial (dx_asec=-5.9,dy_asec=-9.6,compensate="true")'
Instrument Control
To get to the HPF machine: ssh -X hpf@192.168.66.125
We communicate with HPF via screens: (HPFpython) [hpf@hpfserver ~]$ screen -rd pyhxrg
Run python
Data is stored in /home/hpf/HPFData/LinuxGigE/YYYYMMDD/hpf
Scripts for changing the instrument settings are located in /home/hpf/Scripts/InstConfig
Upon startup
cd /home/hpf/HPFics/hxrg/pyhxrg routine to power up: hxrg_test.py Cut and paste the first ~20 or so lines of hxrg_test.py into operation window: ----------------------------------------------- from hxrg_initialize import Initialize from hxrg_configureasic import ConfigureAsic from hxrg_startexposure import StartExposure from hxrg_powerdown import PowerDown import hxrg_core import os, glob hxrg = hxrg_core.HxRG() hxrg.obsnum=1 hxrg.object = 'Eng' Initialize(hxrg) ConfigureAsic(hxrg, biasfile='HxRG_SCA17083.bias') hxrg.imunwrap = True hxrg.diagnosticfits = True hxrg.ConfigureUpTheRamp(nreads=10,nramps=1,nresets=2) hxrg.SetOutputChannels(4) hxrg.ReconfigureAsic()
Cal sets
hpf_thar_on.sh # let lamp warm up hpf_setup_thar_he.sh # move mechanical parts >>> hxrg.object = 'Uranium Slave' >>> hxrg.obsnum += 1 >>> hxrg.ConfigureUpTheRamp(nreads=10) # number of images per ramp >>> hxrg.ReconfigureAsic() # apply the changes >>> StartExposure(hxrg)
On sky observing
>>> hxrg.object = 'GJ_87' # record name >>> hxrg.obsnum += 1 # increment counter >>> hxrg.ConfigureUpTheRamp(nreads=20) # number of images per ramp >>> hxrg.ReconfigureAsic() # apply the changes >>> StartExposure(hxrg)
A short cut we used was
hxrg.obsnum += 1; StartExposure(hxrg); beep()
A more comprehensive shortcut
SetNewObs(ObjectName,30) # set nreads=30 for target ObjectName TakeNewExposure(3,ObjectName) # will take 3 exposures of target ObjectName
Changing filters on any window on hpf
tims calib tlfltrwhl1:pos:2 # move filter wheel tims calib tlfltrwhl1:pos? # query filter wheel
Opening or closing the laser frequency comb (lfc) from the scripts directory /home/hpf/Scripts/InstConfig
./hpf_lfc_close.sh ./hpf_lfc_open.sh
To abort an exposure guider1setup
cntrl-C hxrg.AbortExposure() hxrg.ReconfigureAsic() hxrg.ReconfigureAsic()
Shutdown
cntrl-a-d ./hpf_all_off.sh