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:
- Step 1 — Blind Calibration (Stroboscopic 3D Response Matrix):
cacao-fpsexec-cacaoac-measdynrespobserves 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). - Step 2 — Optimal Pre-Shaper Kernel Synthesis:
cacao-fpsexec-cacaocc-compdmpreshaperperforms 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 PyWFSsincnulls at1 kHzand2 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. - Step 3 — Live WITH vs. WITHOUT Pre-Shaper Evaluation:
cacao-fpsexec-dmpreshaperruns live between the unshaped command stream (dm01cmd) and DM hardware (dm01disp) at8,000 Hz(125 μsDM write period,4,000 HzNyquist), 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 drops16.8%→1.5%(11.53×amplitude /132.9×wave energy cut) using only1.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 cut2.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 cut16.58×(17.1%→1.0%), full-pupil 2D wave residual cut5.11×, settling time cut14.2 ms→2.0 ms, and live 8 kHz Pass-2 cross-mode coupling cut11.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 thef_res(k=8) = 1567 Hz(Q ≈ 25) plate resonance, inflating unshaped DM surface swings to360 nm. Pre-shaping at 8 kHz crushes the 1.5 kHz resonant vibration from253.3 nm→26.0 nm(9.73×amplitude /94.7×power /-19.8 dB), restores the square-wave 3rd/1st harmonic ratio from2.21→0.26(ideal0.33), cuts post-turn-off ring-down by10.62×(67.7→6.4 nmRMS;113×energy cut), cuts spurious 2nd-order coronagraphic diffraction spots by42.9×, cuts post-turn-off ghost spot flux by154×, and improves H-band coronagraphic dark-hole contrast by7.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)(2pitches from the free facesheet boundary), Per-Actuator SISO (KMODE = 3) cuts ringing by2.03×over Uniform SISO (1.11%→0.54%,8.6×vs. raw) and settles in1.50 ms(6.88 msraw). Enabling Per-Actuator 5×5 Local-Stencil MIMO (KMODE = 4) crushes full-pupil 2D traveling plate waves by14.5×(210×wave energy) in the interior(46, 31)(+56.3%→+1.4%,41×overshoot cut; 2D wave16.0%→1.10%),16.6×(276×energy) near the rim(57, 31), and10.0×(100×energy) right on the asymmetric free-rim edge(61, 31)(17.0%→1.70%) at≤ 1.04 μmstroke 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):
- Top row — Interior Actuator
(22, 23): WITHOUT Pre-Shaper (+52.9%overshoot, intense circular flexural wave radiating across the facesheet and reflecting off the free rim) vs. WITH Uniform SISO (KMODE=2) (+2.5%pk,6.1×less wave energy) vs. WITH Radial-Ring MIMO (KMODE=0) (+0.8%pk,132.9×less wave energy via active counter-phase neighbor-ring wave absorption). - Bottom row — Free-Rim Actuator
(57, 31)& Live Traces: WITHOUT Pre-Shaper (+56.4%pk, strong rim-reflected wave sweeping back across the pupil) vs. WITH Universal SISO (KMODE=2) (+2.5%pk,22.5×overshoot cut with zero per-actuator calibration), alongside synchronized step-response and 2D wave-RMS traces.
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.
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:
- Top row — Spider-Free Interior
(46, 31)(r = 14.5):KMODE = 4uses a symmetric 5×5 local wave-absorption stencil (dx = −1: 0.077,dx = +1: 0.077) to extinguish the outgoing circular plate wave at birth (16.0%→1.10%,210×less wave energy). - Bottom row — Optical Free-Rim Edge
(61, 31)(r = 29.5):KMODE = 4automatically synthesizes a strictly one-sided asymmetric 5×5 stencil (dx = −1: 0.104,dx = +1: 0.000) that cancels the violent free-rim wave reflection (17.0%→1.70%,100×less wave energy).
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).
- Lockstep 8 kHz 3D RM calibration telemetry (zero drops across all passes):
- Single-poke 4-actuator 3D RM: WFS rate
1000.00 Hz, bin width125.00 μs, dropped frames0. - 28-mode Zernike (
Z2–Z29) 3D RM: WFS rate1000.00 Hz, bin width125.00 μs, drops0. - 20-mode Astrogrid Fourier + Jacobi-Anger cylindrical free-rim 3D RM: WFS rate
1000.00 Hz, bin width125.00 μs, drops0. - Two-sided finite-support Toeplitz exposure deconvolution + physical-energy-weighted MIMO synthesis (
cacaocc-compdmpreshaper): Because a 1.0 ms camera boxcar has spectralsincnulls at1 kHzand2 kHz— sitting right on top of the ALPAO plate fundamentalf₀ = 1000 Hz— fitting directly against raw exposure-convolved data is blind to coupled1 kHzmodal ringing. Using both physical boundary conditions (s_phys(t < t_on) = 0ands_phys(t ≥ T_max) = I),compdmpreshaper(deconv_exp = ON) constructs a tall full-column-rank rectangular Toeplitz boxcar operator with zero null space at1 kHz/2 kHzto recover the unblurred 8 kHz physical step cube before solving the constrained Cholesky normal equations (u_shaped(t) = u_base + Σ_k C[k] Δu(t − k),C[M_buf] = 0, exact unity DC gain). Simultaneously,energy_weight = ONweights MIMO tracking residuals by physical static WFS norm (w_out[m] = ‖D_stat[m]‖₂) and control penalties by actuator L2 norm (w_act[m] = ‖P_fwd[m]‖₂), eliminating modal-energy bias across uneven bases (e.g., 1-actuator center vs. 100-actuator outer ring). - Live 8 kHz Pass-2 verification (
dmpreshaperON at 8,000 Hz): Runningcacao-fpsexec-dmpreshaperlive atrate_hz = 8000.0during Pass-2 3D RM acquisition emitted44928shaped DM frames from202pokes (0actuator clips) on Zernikes (0.21%DC parity, peak cross-mode coupling cut from11.0%→5.1%), and107667frames from490pokes (0clips) on the 20-mode Astrogrid + rim basis (0.10%DC parity, cross-talk cut6.1%→1.5%).
Notice two critical physical signatures in Figure 1:
- Posicast / Zero-Vibration shaping without stroke explosion (panel b): For low-order and zonal pokes (
f₀ ≈ 1 kHz, half-periodT₀/2 = 0.50 ms), the optimal kernel naturally discovers a two-stage stepped rise (~0.5kick followed by a second~0.5braking push one half-cycle later) — cancelling mechanical ringing almost completely with peak command gain≤ 1.03×! - Spatial-frequency-dependent dispersion notching (panel c): On a continuous ALPAO plate DM, the natural mechanical resonance rises with spatial frequency
kaccording to the coupled membrane+flexural dispersion relationω²(k) = ω₀² + c_m² k² + β² k⁴: low-order Zernike Focus resonates atf₀ ≈ 1000 Hz, whereas thek = 8 cpaAstrogrid resonates atf_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:
- Radial-Ring MIMO (
ps_rings8_mimo.fits,8×8×63,78.2%off-diagonal energy): Panel (d) visualizes the exact 2D actuator-space step commandu_DM(x, y; k)around actuator(22, 23). Betweent = 0.00and0.50 ms(k = 0..4), the center actuator ramps smoothly while Ring 1 (r = 1, red) lifts positively and Ring 2 (r = 1.4, blue) clamps negatively, forming an active counter-phase wave-absorption moat that cancels the outgoing circular plate wave at birth before settling to the exact unit single-actuator poke by2.0 ms. - Zernike 28-Mode MIMO (
ps_zernike28_mimo.fits,28×28×63,19.9%off-diagonal energy): Panel (b) reveals sparse off-diagonal blocks obeying the exact azimuthal-orderm-conservation selection rules of a free-rim circular plate (Z2/Z3 ↔ Z7/Z8 ↔ Z16/Z17form = ±1,Z4 ↔ Z11 ↔ Z22form = 0,Z5/Z6 ↔ Z12/Z13 ↔ Z23/Z24form = ±2). - Astrogrid + Jacobi-Anger Rim MIMO (
ps_astro20_mimo.fits,20×20×71,4.4%off-diagonal energy): Panel (c) shows the strong diagonal1.57 kHzanti-resonance notch across the Cartesian Fourier modes (0–7) coupled to the 12 Jacobi-Anger circular Bessel rim modes (8–19) whose off-diagonal taps (panel e) remain active across the0.5–5 msrim-reflection arrival tail.
| 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):
- Uniform Actuator-Space SISO Broadcast (
KMODE=2): One universal 63-tap scalar FIR kernel at8 kHz(125 μsticks) applied identically to all 4,096 actuators. Cuts interior overshoot by20.8×(+52.9%→+2.5%), cuts 2D wave residual by2.47×, and immediately generalizes to the free rim(57, 31)(22.5×overshoot cut,2.35×wave cut) with zero per-actuator calibration. - Concentric Radial-Ring Local MIMO (
KMODE=0,deconv_exp=ON,energy_weight=ON): Calibrated on an 8-mode orthogonal concentric-ring basis around(22, 23)(Mode 0 = pure center actuator; Modes 1–7 = rings out tor = 8pitches). Physical-energy weighting balances the 1-actuator center against the 100-actuator outer ring (100×actuator-count span) while exposure deconvolution exposes the true 1 kHz wave dispersion. When the center actuator is poked,dmpreshapersimultaneously emits counter-phase active wave-absorption pulses on neighboring rings (see Figure 1b), cutting overshoot by65.4×(+0.8%), cutting full-pupil 2D traveling-wave amplitude by11.53×(132.9×wave energy reduction,21.8×lower wave energy than Uniform SISO), and cutting ±5% settling time (4.38→1.62 ms).
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:
- Zernike Focus (
Z4): Overshoot+83.3%→+3.6%(23.0×), post-step ringing17.1%→1.0%(16.58×amplitude /274.8×power), full-pupil 2D wave residual17.6%→3.5%(5.11×), ±5% settling time14.2 ms→2.0 ms, and live 8 kHz Pass-2 cross-mode coupling11.0%→5.1%(2.2×cut) — with near-identical 50% rise time (t₅₀ = 1.13 → 1.22 ms) and low peak stroke (0.44vs.0.47 μm). - Zernike Astigmatism (
Z5): Overshoot+83.4%→+8.1%(10.3×), post-step ringing17.5%→1.3%(13.90×), settling time15.4 ms→2.5 ms.
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!
- WITHOUT pre-shaper: The
1,500 Hzthird harmonic is amplified by the plate resonance to253.3 nmRMS (2.21×larger than the500 Hzcarrier!), driving violent360 nmpeak excursions and leaving67.7 nmRMS (peak185 nm) of persistent mechanical ringing for >14 ms after the astrogrid is switched OFF. - Why Uniform SISO (
KMODE=2) is not enough for high-kastrogrids: A single-poke uniform SISO kernel targetsf₀ = 1000 Hzrather than1567 Hz, cutting1,500 Hzresonance by only2.6×(leaving97.7 nm@ 1.5 kHz and27.5 nmring-down). - WITH Astrogrid MIMO Pre-Shaper (
KMODE=0, calibrated on a 20-mode Fourier + Jacobi-Anger cylindrical free-rim subspace at 8 kHz): Between every1.0 mspolarity flip,dmpreshaperemits 8 sub-millisecond125 μsshaped DM commands (Figure 4b, providing >4–5 updates per oscillation cycle even at1.57–1.82 kHz), while the 12 appended Jacobi-Anger cylindrical Bessel eigenmodes (J_4p(2π k r) cos(4p θ)forp = 0..4, plus quadratureJ₁,J₃) actively cancel circular free-rim scattered standing waves, producing dramatic suppression across every modulation regime: - 500 Hz Square-Wave (
k = 8 cpa):1,500 Hzresonant vibration crushed253.3→26.0 nm(9.73×amplitude /94.7×power /-19.8 dB), restoringA(1500)/A(500)from2.21→0.26(textbook square wave =0.33), cutting tracking error by3.8×, and slashing turn-off ring-down by10.62×(67.7→6.4 nmRMS;113×energy cut). - 500 Hz 4-Phase Quadrature Rotating Astrogrid (
k = 8 cpa,2 kHzsteps):1,500 Hzvibration cut9.73×(196.9→20.2 nm), turn-off ring-down cut7.90×. - 500 Hz Square-Wave (
k = 10 cpa,f_res = 1822 Hz):1,500 Hzvibration cut4.52×, turn-off ring-down cut3.36×.
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:
- Spurious 2nd-order diffraction spots (
(±8, ±8)&(±16, 0) λ/D): The unshaped360 nmmechanical overshoot pushes the astrogrid into the nonlinear Bessel regime (φ > 1 rad), creating bright spurious 2nd-order spots inside the dark hole (1.41e-03). Pre-shaping suppresses these spurious spots by42.9×(3.28e-05). - Astrometric/photometric satellite-spot stability: Instantaneous
(8, 0) λ/Dspot intensity spikes erratically to16.9×10⁻³without pre-shaping (with persistent1.20×10⁻³ghost spots ringing for >10 ms after turn-off) vs. uniform4.2×10⁻³flat-top pulses with pre-shaping and154×lower post-turn-off ghost flux. - Dark-hole raw contrast (
4–18 λ/D, excluding the 4 primary spots): Mechanical plate ripples degrade raw contrast to2.27e-04during 500 Hz modulation and4.34e-05during ring-down; pre-shaping improves dark-hole contrast by7.9×(2.86e-05) during modulation and3.2×(1.34e-05) during ring-down.
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:
KMODE = 3(Per-Actuator Diagonal SISO,[dmx, dmy, M_buf]): Synthesizes an independent causal temporal pre-shaper for every calibrated actuator(ix, iy)using matched-filter WFS projection (d_m^T / ‖d_m‖₂², avoiding static-facesheet neighbor-overlap bias on dense zonal 3D RMs) plus exposure deconvolution (deconv_exp = ON), with optional.fill_uncal = ONIDW fill for uncalibrated guard/corner actuators. Runs in< 12 μsacross all 4,096 actuators via SIMD ring updates.KMODE = 4(Per-Actuator Spatially-Varying Local-Stencil MIMO,[N_nb, dmx*dmy, M_buf]): Solves an independent physical-energy-weighted local Cholesky MIMO system for every calibrated actuator over its(2R+1)×(2R+1)neighborhood (.stencil_rad = R ∈ 1..5; hereR = 2→5×5,N_nb = 25), packed in race-free OpenMP gather layout (STNCLRAD,STNCLNBheaders) with sparse non-zero row skipping and arbitrary-rate hardware resampling.
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% |
Three physical takeaways jump out of Figure 6:
- Per-Actuator SISO (
KMODE = 3) beats Uniform SISO (KMODE = 2) where boundary physics change: In the uniform interior(46, 31),KMODE = 3matches 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 = 3adapts its temporal kernel (19.4%difference from interior), cutting free-rim ringing2.03×below Uniform SISO (1.11%→0.54%) and settling in1.50 msvs2.12 ms. - Per-Actuator 5×5 Local-Stencil MIMO (
KMODE = 4) delivers100–278×2D traveling-wave energy suppression across the entire mirror: Unlike diagonal SISO (which leaves6.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 amplitude14.5×(210×energy) in the interior,16.6×(276×energy) near the rim, and10.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. - Automatic discovery of spatial symmetry breaking (panels d & e): With zero boundary model given to
compdmpreshaper,KMODE = 4synthesizes an exact 4-fold symmetric stencil in the interior (‖C(dx=−1)‖₂ = 0.077vs‖C(dx=+1)‖₂ = 0.077), transitions to an 11% radially biased stencil at near-rim(57, 31)(0.097inward vs0.086outward), and collapses cleanly to a strictly one-sided asymmetric stencil on the free-rim edge(61, 31)(0.104inward vs0.000outside the illuminated pupil). Complementary full-aperture 12×12 HIL CI testing (tests/test_10_dmpreshaper.py, 68 active actuators) independently confirmedKMODE = 4cuts free-rim overshoot9.6×, ringing8.1×, and 2D cross-actuator wave RMS2.77×at both native2 kHzand2×-resampled4 kHz.
Reproducibility & Operational Takeaways
Practical Deployment Guidance for AO3k / SCExAO
- Choose the pre-shaper mode to match hardware heterogeneity & spatial bandwidth:
- Uniform SISO (
KMODE=2) is a zero-calibration-overhead drop-in (1scalar kernel across all 4,096 actuators) cutting single-poke overshoot~10–20×. - Per-Actuator Diagonal SISO (
KMODE=3) unlocks spatially-varying temporal compensation (< 12 μsacross 4,096 actuators), cutting free-rim ringing2.1×below Uniform SISO and accommodating actuator-to-actuator gain/damping spread. - Per-Actuator Local-Stencil MIMO (
KMODE=4,5×5stencil) delivers100–278×full-pupil 2D traveling-wave energy suppression on arbitrary interior and asymmetric free-rim pokes without assuming global modal symmetry. - Modal MIMO (
KMODE=0) remains ideal for global high-Q standing resonances and dispersive high-kexcitations such as Zernike low-order modes and500 Hzk = 8–10 cpaastrogrids (9.7×amplitude /95×power suppression).
- Enable
deconv_exp = ONandenergy_weight = ON(now defaults incacaocc-compdmpreshaper): Two-sided finite-support Toeplitz deconvolution removes camera boxcarsincnulls cleanly (lambda_deconv = 0.008–0.028, automatically normalized by1 / NBsubfr), while physical-energy weighting balances uneven spatial modes. Pair withtau_target_us = 120–200 μsandlambda_ctrl = 5e-3..8e-3, lambda_diff = 1.2e-2..2.5e-2for dead-beat Posicast braking at≤ 1.05×peak command stroke and zero addedt50latency. - Run Pass-2 3D RM (
cacaoac-measdynresp) after enablingdmpreshaper: 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
| File | Format | Size |
|---|---|---|
dm_preshaper_demo_metrics.json | JSON | 76.51 KB |