Hardware & DMLIVE GPU HIL DEMO3D RM → 8 kHz Pre-ShaperPer-Act KMODE=4: 100–278× Wave Energy Cut500 Hz Astrogrid 1.5 kHz: -19.8 dB (9.7×)Turn-Off Ring-Down: 10.6× CutH-Band Dark Hole: 7.9× Cleaner

End-to-end live GPU cacaosim + CACAO demonstration (1 kHz PyWFS 3D RM → 8 kHz optimal pre-shaper) on the Subaru AO3k 64×64 ALPAO plate DM: per-actuator KMODE=4 5×5 local-stencil MIMO crushes 2D traveling-wave energy 100–278× across interior & asymmetric free-rim actuators (KMODE=3 cuts free-rim ringing 2.1× below uniform SISO), 28×28 MIMO cuts Zernike Focus ringing 16.6× and Pass-2 cross-talk 2.2×, and 20-mode Astrogrid MIMO crushes 500 Hz astrogrid 1.5 kHz plate resonance by 9.7× (95× power) with 10.6× lower ring-down and 7.9× cleaner H-band coronagraphic dark hole.

Referenced Simulation Reports

No matching simulation reports staged locally yet.

DM Mechanical Anti-Vibration Pre-Shaper Demonstration (3D RM Calibration → Optimal 8 kHz Control)

Executive Summary

This report presents a live GPU hardware-in-the-loop (HIL) end-to-end demonstration of CACAO's causal deformable mirror (DM) mechanical anti-vibration pre-shaper on the Subaru AO3k 64×64 ALPAO magnetic continuous-facesheet plate DM (cacaosim GPU coupled flexural+membrane PDE, free circular rim, f₀ = 1000 Hz, c_m = 14 m/s, β = 0.0085 m²/s, γ₀ = 195 s⁻¹, 1.0 ms hardware transport latency).

Every step executes the real compiled C/CUDA CACAO and cacaosim processes with zero knowledge of the internal DM physics given to the controller:

  1. Step 1 — Blind Calibration (Stroboscopic 3D Response Matrix): cacao-fpsexec-cacaoac-measdynresp observes the 64×64 plate DM solely through a fixed 1,000 Hz (1.0 ms exposure) J-band Pyramid WFS, achieving 8× sub-frame stroboscopic resolution (8,000 Hz, Δt = 125.0 μs, zero dropped frames) via lockstep sub-frame stepping (NBsubfr = 8).
  2. Step 2 — Optimal Pre-Shaper Kernel Synthesis: cacao-fpsexec-cacaocc-compdmpreshaper performs two-sided finite-support Toeplitz WFS-exposure deconvolution (deconv_exp = ON) to recover the unblurred physical 8 kHz plant right through the 1.0 ms PyWFS sinc nulls at 1 kHz and 2 kHz, then solves the physical-energy-weighted (energy_weight = ON) regularized causal MIMO/SISO model-matching problem with strict unity DC gain (zero static figure drift) and bounded actuator stroke.
  3. Step 3 — Live WITH vs. WITHOUT Pre-Shaper Evaluation: cacao-fpsexec-dmpreshaper runs live between the unshaped command stream (dm01cmd) and DM hardware (dm01disp) at 8,000 Hz (125 μs DM write period, 4,000 Hz Nyquist), evaluated across single-actuator zonal pokes (interior and free-rim), low-order Zernike modal pokes, and 500 Hz fast-modulated coronagraphic astrogrids (square-wave polarity-flipping and 4-phase quadrature rotation).

Headline WITH vs. WITHOUT Results (Live GPU 64×64 ALPAO Plate DM Physical OPD @ 8 kHz):

  • Single-Actuator Interior Poke (22, 23): Overshoot cut from +52.9% → +2.5% (20.8×) with 1-kernel Uniform SISO (KMODE=2), and to +0.8% (65.4×) with Radial-Ring MIMO (KMODE=0), while full-pupil 2D traveling facesheet wave amplitude drops 16.8% → 1.5% (11.53× amplitude / 132.9× wave energy cut) using only 1.02× actuator stroke.
  • Free-Rim Single Poke (57, 31) (Uncalibrated Actuator, Universal SISO): Overshoot cut +56.4% → +2.5% (22.5×) and 2D wave residual cut 2.35×, confirming cross-mirror generalization.
  • Low-Order Modal Step (Zernike Focus Z4, 28×28 MIMO): Overshoot cut +83.3% → +3.6% (23.0×), post-step ringing cut 16.58× (17.1% → 1.0%), full-pupil 2D wave residual cut 5.11×, settling time cut 14.2 ms → 2.0 ms, and live 8 kHz Pass-2 cross-mode coupling cut 11.0% → 5.1% (2.2×) with near-zero added rise latency (t₅₀ = 1.13 → 1.22 ms).
  • 500 Hz Polarity-Flipping Astrogrid (k = 8 cpa): The 1.5 kHz third harmonic excites the f_res(k=8) = 1567 Hz (Q ≈ 25) plate resonance, inflating unshaped DM surface swings to 360 nm. Pre-shaping at 8 kHz crushes the 1.5 kHz resonant vibration from 253.3 nm → 26.0 nm (9.73× amplitude / 94.7× power / -19.8 dB), restores the square-wave 3rd/1st harmonic ratio from 2.21 → 0.26 (ideal 0.33), cuts post-turn-off ring-down by 10.62× (67.7 → 6.4 nm RMS; 113× energy cut), cuts spurious 2nd-order coronagraphic diffraction spots by 42.9×, cuts post-turn-off ghost spot flux by 154×, and improves H-band coronagraphic dark-hole contrast by 7.9× during modulation (3.2× during turn-off ring-down).
  • Per-Actuator Spatially-Varying Pre-Shaping (KMODE = 3 & KMODE = 4, 86-Actuator Interior + Free-Rim 8 kHz Calibration): Directly at the optical free-rim edge (61, 31) (2 pitches from the free facesheet boundary), Per-Actuator SISO (KMODE = 3) cuts ringing by 2.03× over Uniform SISO (1.11% → 0.54%, 8.6× vs. raw) and settles in 1.50 ms (6.88 ms raw). Enabling Per-Actuator 5×5 Local-Stencil MIMO (KMODE = 4) crushes full-pupil 2D traveling plate waves by 14.5× (210× wave energy) in the interior (46, 31) (+56.3% → +1.4%, 41× overshoot cut; 2D wave 16.0% → 1.10%), 16.6× (276× energy) near the rim (57, 31), and 10.0× (100× energy) right on the asymmetric free-rim edge (61, 31) (17.0% → 1.70%) at ≤ 1.04 μm stroke and ≤ 0.06% DC error!

Live 8 kHz GPU Side-by-Side Videos (WITH vs. WITHOUT Pre-Shaper)

Video 1 — Single-Actuator Zonal Pokes (Interior (22, 23) & Free-Rim (57, 31))

This 8 kHz slow-motion (400× slowed, 125 μs/frame @ 20 fps) video compares the 2D physical DM surface traveling wave OPD(t) - OPD_static (csim_dm01_opd, 256×256 Subaru Nasmyth-IR pupil):

Single-actuator zonal poke 2D plate wave OPD(t) - OPD_static WITH vs. WITHOUT 8 kHz DM pre-shaper on interior (22, 23) and free-rim (57, 31) actuators · Download MP4

Video 2 — 500 Hz Fast-Modulated Astrogrid (k = 8 cpa) & H-Band Coronagraphic PSF

This 8 kHz slow-motion (333× slowed, 125 μs/frame @ 24 fps) video shows the physical DM surface OPD (WITHOUT vs. WITH Astrogrid MIMO) alongside a split-screen instantaneous H-band (1.65 μm) Lyot coronagraphic PSF (Left: OFF | Right: ON) across turn-on transient, 12 cycles of 500 Hz polarity-flipping modulation, and dead-beat turn-off braking.

500 Hz polarity-flipping astrogrid 8 kHz GPU DM surface OPD and split-screen H-band coronagraphic PSF WITH vs. WITHOUT DM pre-shaper · Download MP4

Video 3 — Per-Actuator Spatially-Varying KMODE = 3 (SISO) vs. KMODE = 4 (5×5 Local-Stencil MIMO): Interior vs. Free-Rim Edge

This 8 kHz slow-motion (400× slowed, 125 μs/frame @ 20 fps) video compares WITHOUT Pre-Shaper vs. Per-Actuator SISO (KMODE = 3) vs. Per-Actuator 5×5 Local-Stencil MIMO (KMODE = 4) on the 64×64 ALPAO facesheet:

Per-actuator KMODE=3 vs KMODE=4 2D plate wave comparison at 8 kHz on interior (46,31) and free-rim edge (61,31) · Download MP4

Master WITH vs. WITHOUT Performance Comparison

Test Scenario Pre-Shaper Mode Overshoot / Peak Excursion Vibration / Ringing Metric Wave / Ring-Down Residual Settling / Tracking Peak Stroke DC Parity
Interior Poke (22, 23) WITHOUT (raw step) +52.9% 3.08% proj. RMS 16.85% 2D wave 4.38 ms (±5%) 1.00 μm ref
Interior Poke (22, 23) WITH Uniform SISO (KMODE=2) +2.5% (20.8× cut) 0.71% 6.83% (2.47×) 1.50 ms 1.01 μm 0.05%
Interior Poke (22, 23) WITH Radial-Ring MIMO (KMODE=0) +0.8% (65.4× cut) 0.37% 1.46% (11.53×) 1.62 ms 1.02 μm 0.06%
Free-Rim Poke (57, 31) WITHOUT (raw step) +56.4% 3.04% proj. RMS 15.33% 2D wave 3.88 ms 1.00 μm ref
Free-Rim Poke (57, 31) WITH Universal SISO (KMODE=2) +2.5% (22.5× cut) 0.76% 6.52% (2.35×) 1.50 ms 1.01 μm 0.05%
Interior (46, 31) (Per-Act) WITH Per-Act SISO (KMODE=3) +2.9% (19.4× cut) 0.79% 6.26% (2.56×) 2.00 ms 1.01 μm 0.05%
Interior (46, 31) (Per-Act) WITH 5×5 Stencil MIMO (KMODE=4) +1.4% (41.4× cut) 0.48% (7.0×) 1.10% (14.5× / 210× E) 2.00 ms 1.01 μm 0.05%
Near-Rim (57, 31) (Per-Act) WITH 5×5 Stencil MIMO (KMODE=4) +3.6% (15.9× cut) 0.55% (5.5×) 0.92% (16.6× / 276× E) 1.88 ms 1.02 μm 0.05%
Free-Rim Edge (61, 31) WITHOUT (raw step) +47.2% 4.67% proj. RMS 16.98% 2D wave 6.88 ms 1.00 μm ref
Free-Rim Edge (61, 31) WITH Per-Act SISO (KMODE=3) +3.0% (15.6× cut) 0.54% (2.0× vs K2) 6.66% (2.55×) 1.50 ms 1.04 μm 0.06%
Free-Rim Edge (61, 31) WITH 5×5 Stencil MIMO (KMODE=4) +7.7% (6.1× cut) 1.06% (4.4×) 1.70% (10.0× / 100× E) 2.62 ms 1.04 μm 0.06%
Zernike Focus (Z4) WITHOUT (raw step) +83.3% 17.06% modal RMS 17.63% 2D wave 14.2 ms 0.44 μm ref
Zernike Focus (Z4) WITH 28×28 MIMO (KMODE=0) +3.6% (23.0× cut) 1.03% (16.58×) 3.45% (5.11×) 2.0 ms 0.47 μm 0.06%
Zernike Astigmatism (Z5) WITHOUT (raw step) +83.4% 17.45% modal RMS 17.91% 2D wave 15.4 ms 0.58 μm ref
Zernike Astigmatism (Z5) WITH 28×28 MIMO (KMODE=0) +8.1% (10.3× cut) 1.25% (13.90×) 2.33% 2.5 ms 0.63 μm 0.06%
500 Hz Sq. Astrogrid (k=8) WITHOUT 359.6 nm pk 253.3 nm @ 1.5 kHz 67.7 nm ring-down 161.4 nm err 0.25 μm ratio 2.21
500 Hz Sq. Astrogrid (k=8) WITH Uniform SISO (KMODE=2) 179.0 nm pk 97.7 nm @ 1.5 kHz 27.5 nm ring-down 64.7 nm err 0.26 μm ratio 1.11
500 Hz Sq. Astrogrid (k=8) WITH Astrogrid MIMO (KMODE=0) 83.1 nm pk 26.0 nm (9.73×) 6.4 nm (10.62×) 42.3 nm (3.8×) 0.27 μm ratio 0.26
500 Hz Quad. Astrogrid (k=8) WITHOUT → WITH MIMO 267 → 72 nm 196.9 → 20.2 nm (9.73×) 66.8 → 8.5 nm (7.90×) — 0.27 μm —
500 Hz Sq. Astrogrid (k=10) WITHOUT → WITH MIMO 135 → 60 nm 83.6 → 18.5 nm (4.52×) 25.4 → 7.6 nm (3.36×) — 0.28 μm —

Step 1 & Step 2: End-to-End 3D RM Calibration → Optimal Pre-Shaper Synthesis

A key practical advantage of CACAO's pre-shaper architecture is that no physical PDE model or high-speed interferometer is required: calibration runs entirely through the operational 1,000 Hz (1.0 ms exposure) J-band Pyramid WFS using cacao-fpsexec-cacaoac-measdynresp with 8× sub-frame stroboscopic phase stepping (NBsubfr = 8, yielding Δt = 125.0 μs / 8.0 kHz resolution, 4,000 Hz Nyquist).

End-to-end 3D RM calibration through 1 kHz PyWFS to optimal 8 kHz DM pre-shaper kernel synthesis and Pass-2 verification
End-to-end 3D RM calibration through 1 kHz PyWFS to optimal 8 kHz DM pre-shaper kernel synthesis and Pass-2 verification

Notice two critical physical signatures in Figure 1:

  1. Posicast / Zero-Vibration shaping without stroke explosion (panel b): For low-order and zonal pokes (f₀ ≈ 1 kHz, half-period T₀/2 = 0.50 ms), the optimal kernel naturally discovers a two-stage stepped rise (~0.5 kick followed by a second ~0.5 braking push one half-cycle later) — cancelling mechanical ringing almost completely with peak command gain ≤ 1.03×!
  2. Spatial-frequency-dependent dispersion notching (panel c): On a continuous ALPAO plate DM, the natural mechanical resonance rises with spatial frequency k according to the coupled membrane+flexural dispersion relation ω²(k) = ω₀² + c_m² k² + β² k⁴: low-order Zernike Focus resonates at f₀ ≈ 1000 Hz, whereas the k = 8 cpa Astrogrid resonates at f_res = 1567 Hz. The MIMO pre-shaper automatically places a deep anti-resonance notch at the exact mechanical frequency of each spatial mode!

Anatomy of the Synthesized 8 kHz MIMO Pre-Shaper Kernels

Each self-contained MEF kernel (KMODE = 0) stores the causal look-ahead tensor C[k, i, j] ([M_buf, N_in, N_in] in Primary HDU 0) together with the forward DM basis P_FWD and dual projector P_PINV ([N_in, 64, 64]), executing u_shaped[n] = u_raw[n] + P_fwd Σ_k C[k] P_pinv Δu_raw[n − k] with C[M_buf] = 0 (exact unity DC gain). Figure 1b exposes the spatiotemporal structure that cacaocc-compdmpreshaper discovers purely from blind 1 kHz PyWFS 3D RMs:

Synthesized 8 kHz causal MIMO pre-shaper kernel matrices, 2D actuator-space wave-cancellation impulse stamps, and diagonal vs off-diagonal tap decay
Synthesized 8 kHz causal MIMO pre-shaper kernel matrices, 2D actuator-space wave-cancellation impulse stamps, and diagonal vs off-diagonal tap decay
Synthesized MIMO Kernel (MEF FITS) Tensor Shape [N_in × N_in × M_buf] P_FWD / P_PINV Basis Total Norm ‖C‖_F Diagonal Norm Off-Diagonal Norm (% Energy) Peak Step Gain
Radial-Ring MIMO (ps_rings8_mimo.fits) 8 × 8 × 63 (7.88 ms) 8 × 64 × 64 6.07 2.83 5.37 (78.2%) 1.46×
Zernike 28-Mode MIMO (ps_zernike28_mimo.fits) 28 × 28 × 63 (7.88 ms) 28 × 64 × 64 5.34 4.78 2.39 (19.9%) 1.24×
Astrogrid + Rim MIMO (ps_astro20_mimo.fits) 20 × 20 × 71 (8.88 ms) 20 × 64 × 64 3.58 3.50 0.75 (4.4%) 1.14×

Example 1 — Single-Actuator Zonal Pokes (Interior & Free Rim)

Poking a single actuator on a continuous magnetic facesheet launches a circular dispersive wave (c_m = 14 m/s) that propagates across the 96 mm aperture in ~3.5 ms and reflects strongly off the free circular rim. We compare two deployable pre-shaper modes on actuator (22, 23) plus cross-mirror generalization on the uncalibrated free-rim actuator (57, 31):

Quantitative single-actuator zonal poke dynamics WITH vs. WITHOUT pre-shaper on interior (22, 23) and free-rim (57, 31) actuators
Quantitative single-actuator zonal poke dynamics WITH vs. WITHOUT pre-shaper on interior (22, 23) and free-rim (57, 31) actuators
2D physical DM surface traveling wave contact sheet OPD(t) - OPD_static after single-actuator poke (22, 23)
2D physical DM surface traveling wave contact sheet OPD(t) - OPD_static after single-actuator poke (22, 23)

Example 2 — Low-Order Modal Step Pokes (28×28 Zernike MIMO)

Unlike localized single pokes (which shed some energy radially across the plate), global low-order modes such as Focus (Z4) and Astigmatism (Z5) act as high-Q standing resonators (Q ≈ 16, f₀ ≈ 1 kHz) and strongly excite higher radial modes (notably Spherical Aberration Z11) via reflection at the free circular rim.

Calibrating a 28-mode Zernike 3D RM (Z2–Z29) and synthesizing a 28×28 KMODE=0 MIMO pre-shaper delivers:

Low-order Zernike Focus Z4 and Astigmatism Z5 step responses, cross-mode coupling, and vibration PSD WITH vs. WITHOUT 28x28 MIMO pre-shaper
Low-order Zernike Focus Z4 and Astigmatism Z5 step responses, cross-mode coupling, and vibration PSD WITH vs. WITHOUT 28x28 MIMO pre-shaper

Example 3 — 500 Hz Fast-Modulated Astrogrid & H-Band Coronagraphic Impact

High-contrast exoplanet imagers such as SCExAO and Subaru AO3k apply fast-modulated astrogrids (orthogonal crossed sinusoids generating 4 faint astrometric/photometric satellite spots at (±k, 0) and (0, ±k) λ/D, clear of Subaru's 51.75° spiders) and flip their phase by π (+G ↔ -G) at 1,000 Hz (500 Hz full square-wave period) so coherent spot–speckle cross-terms average to zero in science exposures.

Why 500 Hz Astrogrids Severely Excite Continuous Plate DMs

A 500 Hz square wave contains strong odd harmonics at 500 Hz (1st) and 1,500 Hz (3rd harmonic, amplitude 1/3). On the Subaru AO3k 64×64 ALPAO plate DM, the coupled flexural+membrane dispersion places the natural mechanical resonance of the k = 8 cpa astrogrid mode at f_res(k=8) = 1567 Hz with damping ζ = 0.020 (Q ≈ 25) — directly on top of the 1,500 Hz third harmonic!

500 Hz fast-modulated astrogrid DM OPD waveforms, 8 kHz shaped commands, Fourier spectrum, and multi-regime vibration reduction WITH vs. WITHOUT pre-shaper
500 Hz fast-modulated astrogrid DM OPD waveforms, 8 kHz shaped commands, Fourier spectrum, and multi-regime vibration reduction WITH vs. WITHOUT pre-shaper

Science Focal-Plane Impact: H-Band (1.65 μm) Lyot Coronagraphic PSF

Propagating the exact live 8 kHz GPU csim_dm01_opd cube (256×256, Subaru Nasmyth-IR pupil) through an H-band (1.65 μm) Classical Lyot Coronagraph (3.0 λ/D focal-plane mask, 90% Lyot stop) reveals the direct scientific cost of unshaped DM vibration:

H-band 1.65 um Lyot coronagraphic focal-plane PSF, satellite-spot stability, and dark-hole contrast WITH vs. WITHOUT DM pre-shaper during 500 Hz astrogrid modulation
H-band 1.65 um Lyot coronagraphic focal-plane PSF, satellite-spot stability, and dark-hole contrast WITH vs. WITHOUT DM pre-shaper during 500 Hz astrogrid modulation

Example 4 — Per-Actuator Spatially-Varying Pre-Shaping (KMODE = 3 & KMODE = 4: Interior → Free Rim)

While KMODE = 2 broadcasts a single translation-invariant scalar kernel across the entire DM and KMODE = 0 operates on a fixed global modal subspace, real continuous-facesheet plate DMs break translation invariance near the free circular rim (where flexural waves reflect back in < 0.6 ms and local boundary stiffness drops) and across actuators with individual gain/damping spread. CACAO now supports two actuator-space spatially-varying kernel modes directly inside cacaocc-compdmpreshaper and cacao-fpsexec-dmpreshaper with no P_FWD/P_PINV modal projection:

Live 8 kHz 64×64 AO3k Two-Patch Calibration & Three-Radius Benchmark

We calibrated 86 spider-free actuators in a single blind lockstep 8 kHz 3D RM (cacaoac-measdynresp, 1 kHz PyWFS, NBsubfr = 8, Δt = 125.00 μs, drops = 0) spanning an Interior disk (37 actuators around (46, 31), r = 14.5) and an Outer Free-Rim patch (49 actuators across ix = 55..61, iy = 28..34, r = 23.5..29.5), then evaluated all four modes (OFF, KMODE = 2, KMODE = 3, KMODE = 4) live at 8 kHz across three radii moving toward the free rim:

Actuator Location (r / Dist. to Rim) Pre-Shaper Mode Overshoot Projected Ringing RMS Full-Pupil 2D Wave RMS (Energy Cut) ±5% Settling Peak Stroke DC Err
Interior (46, 31) (r = 14.5, 17.0 pitches) WITHOUT +56.33% 3.37% 15.99% 4.38 ms 1.00 μm 0.07%
Interior (46, 31) Uniform SISO (KMODE=2) +2.78% 0.78% 6.45% (6.1× E) 1.50 ms 1.01 μm 0.05%
Interior (46, 31) Per-Act SISO (KMODE=3) +2.90% 0.79% 6.26% (6.5× E) 2.00 ms 1.01 μm 0.05%
Interior (46, 31) 5×5 Stencil MIMO (KMODE=4) +1.36% 0.48% 1.10% (14.5× / 210× E) 2.00 ms 1.01 μm 0.05%
Near-Rim (57, 31) (r = 25.5, 6.0 pitches) WITHOUT +56.37% 3.04% 15.33% 3.88 ms 1.00 μm 0.06%
Near-Rim (57, 31) Uniform SISO (KMODE=2) +2.50% 0.76% 6.52% (5.5× E) 1.50 ms 1.01 μm 0.05%
Near-Rim (57, 31) Per-Act SISO (KMODE=3) +3.32% 0.72% 7.04% (4.7× E) 1.50 ms 1.03 μm 0.05%
Near-Rim (57, 31) 5×5 Stencil MIMO (KMODE=4) +3.55% 0.55% 0.92% (16.6× / 276× E) 1.88 ms 1.02 μm 0.05%
Free-Rim Edge (61, 31) (r = 29.5, 2.0 pitches) WITHOUT +47.21% 4.67% 16.98% 6.88 ms 1.00 μm 0.06%
Free-Rim Edge (61, 31) Uniform SISO (KMODE=2) +5.42% 1.11% 7.13% (5.7× E) 2.12 ms 1.01 μm 0.06%
Free-Rim Edge (61, 31) Per-Act SISO (KMODE=3) +3.04% 0.54% (2.0× vs K2) 6.66% (6.5× E) 1.50 ms 1.04 μm 0.06%
Free-Rim Edge (61, 31) 5×5 Stencil MIMO (KMODE=4) +7.70% 1.06% 1.70% (10.0× / 100× E) 2.62 ms 1.04 μm 0.06%
Per-actuator spatially-varying KMODE=3 SISO vs KMODE=4 5x5 local-stencil MIMO live 8 kHz performance, asymmetric free-rim stencils, and radial symmetry breaking on the 64x64 ALPAO DM
Per-actuator spatially-varying KMODE=3 SISO vs KMODE=4 5x5 local-stencil MIMO live 8 kHz performance, asymmetric free-rim stencils, and radial symmetry breaking on the 64x64 ALPAO DM

Three physical takeaways jump out of Figure 6:

  1. Per-Actuator SISO (KMODE = 3) beats Uniform SISO (KMODE = 2) where boundary physics change: In the uniform interior (46, 31), KMODE = 3 matches Uniform SISO (+2.90% vs +2.78% overshoot). Right on the free circular rim (61, 31), where the reflected rim wave returns in ~0.5 ms, KMODE = 3 adapts its temporal kernel (19.4% difference from interior), cutting free-rim ringing 2.03× below Uniform SISO (1.11% → 0.54%) and settling in 1.50 ms vs 2.12 ms.
  2. Per-Actuator 5×5 Local-Stencil MIMO (KMODE = 4) delivers 100–278× 2D traveling-wave energy suppression across the entire mirror: Unlike diagonal SISO (which leaves 6.3–7.1% 2D wave energy escaping across the facesheet), the 25-actuator local stencil actively absorbs the outgoing wave before it propagates, cutting 2D wave amplitude 14.5× (210× energy) in the interior, 16.6× (276× energy) near the rim, and 10.0× (100× energy) right on the optical free rim — 15–59× lower wave energy than SISO at virtually unity peak stroke (1.01–1.04 μm) and ≤ 0.06% DC parity.
  3. Automatic discovery of spatial symmetry breaking (panels d & e): With zero boundary model given to compdmpreshaper, KMODE = 4 synthesizes an exact 4-fold symmetric stencil in the interior (‖C(dx=−1)‖₂ = 0.077 vs ‖C(dx=+1)‖₂ = 0.077), transitions to an 11% radially biased stencil at near-rim (57, 31) (0.097 inward vs 0.086 outward), and collapses cleanly to a strictly one-sided asymmetric stencil on the free-rim edge (61, 31) (0.104 inward vs 0.000 outside the illuminated pupil). Complementary full-aperture 12×12 HIL CI testing (tests/test_10_dmpreshaper.py, 68 active actuators) independently confirmed KMODE = 4 cuts free-rim overshoot 9.6×, ringing 8.1×, and 2D cross-actuator wave RMS 2.77× at both native 2 kHz and 2×-resampled 4 kHz.

Reproducibility & Operational Takeaways

Practical Deployment Guidance for AO3k / SCExAO

  1. Choose the pre-shaper mode to match hardware heterogeneity & spatial bandwidth:
  1. Enable deconv_exp = ON and energy_weight = ON (now defaults in cacaocc-compdmpreshaper): Two-sided finite-support Toeplitz deconvolution removes camera boxcar sinc nulls cleanly (lambda_deconv = 0.008–0.028, automatically normalized by 1 / NBsubfr), while physical-energy weighting balances uneven spatial modes. Pair with tau_target_us = 120–200 μs and lambda_ctrl = 5e-3..8e-3, lambda_diff = 1.2e-2..2.5e-2 for dead-beat Posicast braking at ≤ 1.05× peak command stroke and zero added t50 latency.
  2. Run Pass-2 3D RM (cacaoac-measdynresp) after enabling dmpreshaper: Downstream observers (PSOL/MIMO, EOF) immediately see the clean, decoupled shaped plant (<0.5% static DC parity).

Exact Reproduction Command

source env.sh
./scripts/build-dm-preshaper-demo-report.py --rerun-acq

Telemetry & Data Files

FileFormatSize
dm_preshaper_demo_metrics.jsonJSON76.51 KB