TwiceAsNice  2019-02-18
Functions | Variables
HWS_Offload_Tip-Tilt2SE Namespace Reference

Functions

def get_Xinetics_tiptilt ()
 
def calculate_SE_displacement (current_shape)
 
def displace_SEs (delX, delY)
 

Variables

 config = Application.config()
 
 se = SE.connect(config.node('ACQ.CFG.ENDPOINT.SE').String)
 
 wfcCtrl
 
 wfcCtrlCommon
 
 wfcFitsWriter
 
 filePrefix = time.strftime("%Y-%m-%d-%H-%M", time.localtime())
 
 log_file = config.node('CFG.LOGFILE').String
 
 file_m2c = config.node('CFG.IM.M2C_FILE').String
 
 m2c = pyfits.getdata(file_m2c)
 
 acquired_SEs = sys.argv[2]
 
 acquired_SE_list = acquired_SEs.split()
 
def current_shape = get_Xinetics_tiptilt()
 
 delX
 
 delY
 

Function Documentation

◆ calculate_SE_displacement()

def HWS_Offload_Tip-Tilt2SE.calculate_SE_displacement (   current_shape)
Calcualtes the SE displacement for the current_shape (DM) passed. 
Returns the delX, delY values (displacement values for all the acquired SEs)
Note that this function make use of the already calibrated matrix.

◆ displace_SEs()

def HWS_Offload_Tip-Tilt2SE.displace_SEs (   delX,
  delY 
)
Displaces all the acquired SEs by the same delX, delY amount in Focalplane coordinates (in microns)
Note that all the other SEs do not move from their already existing position.
And that since the relative displacements we make (delX,delY) are very small, <200um, the collision is not anticipated.

◆ get_Xinetics_tiptilt()

def HWS_Offload_Tip-Tilt2SE.get_Xinetics_tiptilt ( )
Function that will connect to ringbuffer, extract 1000 dmCommands spread across 1 min.
The average shape of the DM is returned.

Variable Documentation

◆ acquired_SE_list

HWS_Offload_Tip-Tilt2SE.acquired_SE_list = acquired_SEs.split()

◆ acquired_SEs

HWS_Offload_Tip-Tilt2SE.acquired_SEs = sys.argv[2]

◆ config

HWS_Offload_Tip-Tilt2SE.config = Application.config()

◆ current_shape

def HWS_Offload_Tip-Tilt2SE.current_shape = get_Xinetics_tiptilt()

◆ delX

HWS_Offload_Tip-Tilt2SE.delX

◆ delY

HWS_Offload_Tip-Tilt2SE.delY

◆ file_m2c

HWS_Offload_Tip-Tilt2SE.file_m2c = config.node('CFG.IM.M2C_FILE').String

◆ filePrefix

HWS_Offload_Tip-Tilt2SE.filePrefix = time.strftime("%Y-%m-%d-%H-%M", time.localtime())

◆ log_file

HWS_Offload_Tip-Tilt2SE.log_file = config.node('CFG.LOGFILE').String

◆ m2c

HWS_Offload_Tip-Tilt2SE.m2c = pyfits.getdata(file_m2c)

◆ se

HWS_Offload_Tip-Tilt2SE.se = SE.connect(config.node('ACQ.CFG.ENDPOINT.SE').String)

◆ wfcCtrl

HWS_Offload_Tip-Tilt2SE.wfcCtrl

◆ wfcCtrlCommon

HWS_Offload_Tip-Tilt2SE.wfcCtrlCommon

◆ wfcFitsWriter

HWS_Offload_Tip-Tilt2SE.wfcFitsWriter