SRMOffline CalibrationVERIFIEDStg 1Stg 2

Modal Self-Response Matrix (Optical-Gain Reference)

Active modal poke sweep measuring calibration and on-sky PyWFS optical gain.

Overview & Role

Applies controlled modal pokes through the DM and projects WFS responses back into modal space (selfRM) both on the internal calibration source and on sky to provide ground-truth optical gain curves for validating OG/POKE and 2WFS/LIVE.

When PRESH (dmpreshaper) is active on Stage 1, selfRM runs real-time paced (disabling --fast lockstep step-and-shoot) so the upsampled pre-shaper settles cleanly.

Compute Units / Entry Points: cacaoloop-ao3k-scexao.milk (selfRM)

Verified Highlights:

Option Variants (CODE/OPT)

Option CodeBehavior & UsageMain Flags
SRM/CALPre-loop calibration-source selfRM baseline (unit optical gain reference).--selfrm-modes --no-selfrm
SRM/SKYOn-sky active selfRM sweep measuring physical PyWFS optical gain truth.--selfrm-modes --selfrm-iter --no-selfrm

Dependencies & Calibration Chain

Upstream Calibrations & Inputs
Selected Algorithm
★ Current Entry
SRMOffline Calib
Modal Self-Response Matrix (Optical-Gain Reference)

CLI Flags, Environment Variables & FPS Parameters

LayerOption (Links to Reference)DefaultDescription
CLI Flag--selfrm-modes256Maximum number of modes probed in selfRM optical-gain calibration
CLI Flag--selfrm-iter1On-sky selfRM averaging iterations during closed-loop science
CLI Flag--no-selfrmOFFSkip calibration and on-sky selfRM acquisition
CACAO_* EnvCACAO_SELFRM_ZSIZE8Temporal modulation depth [frames] per mode during selfRM measurement

Implementation, Tests & Related Reports

Source Files

Verification Tests

Related Staged Technical Reports