Measuring hardware latency, the time delay between DM actuation commands and WFS response measured
Edit me

The time delay between issuing a command to the DM and having the corresponding signal in the WFS stream is the hardware latency. It must be known to measure the system response, as well as for some advanced control features such as pseudo-open loop reconstruction and predictive control.

# -w option is for "wait until done"
cacao-aorun-020-mlat -w

Check the result in fpsCTRL TUI, fields .out.framerateHz and .out.latencyfr.

The latency value is estimated by locating the maximum value of the latency curve, where the y-coordinate is the sum-squared difference between two consecutive WFS frames and the x-axis coordinate is the time difference between the WFS difference measurement and the time at which the DM command was issued.

The file is written on fps.mlat-0.datadir/hardwlatency.dat (for LOOPNUMBER 0), with columns 2 and 3 the x and y coordinate of the curve.

To view the curve:

# Still from the ROOTDIR
cacao-aorun-021-mlatshow
Tags: performance