ebook img

Laboratory and telescope demonstration of the TP3-WFS for the adaptive optics segment of AOLI PDF

1.7 MB·
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Laboratory and telescope demonstration of the TP3-WFS for the adaptive optics segment of AOLI

MNRAS000,1–15(2017) Preprint31January2017 CompiledusingMNRASLATEXstylefilev3.0 Laboratory and telescope demonstration of the TP3-WFS for the adaptive optics segment of AOLI C. Colodro-Conde,1(cid:63) S. Velasco,2,3 J.J.F. Valdivia,4,5 R.L. Lo´pez,2,3 A. Oscoz,2,3 R. Rebolo,2,3,6 B. Femen´ıa,7 D.L. King,8 L. Labadie,9 C. Mackay,8 B. Muthusubramanian,9 A. P´erez Garrido,10 M. Puga,2,3 G. Rodr´ıguez-Coira2,3 L.F. Rodr´ıguez-Ramos,2,3 J.M. Rodr´ıguez-Ramos,4,5,11 R. Toledo-Moreo,1 and 7 1 I. Villo´-P´erez1 0 1Departamento de Electro´nica y Tecnolog´ıa de Computadoras, Universidad Polit´ecnica de Cartagena, E-30202 Cartagena, Spain 2 2Instituto de Astrof´ısica de Canarias, c/V´ıa L´actea s/n, La Laguna, E-38205, Spain n 3Departamento de Astrof´ısica, Universidad de La Laguna, La Laguna, E-38200, Spain a 4Departamento de Ingenieria Industrial, Universidad de La Laguna, La Laguna, Spain. J 5Wooptix S.L., Torre Agust´ın Ar´evalo, Avenida Trinidad, La Laguna, E-38205, Spain 6Consejo Superior de Investigaciones Cient´ıficas, Madrid, Spain 8 7W. M. Keck Observatory, 65-1120 Mamalahoa Hwy., Kamuela, HI 96743, Hawaii, USA 2 8Institute of Astronomy, University of Cambridge, Madingley Road, Cambridge CB3 0HA, United Kingdom 9I. Physikalsiches Institut, Universit¨at zu K¨oln, Zu¨lpicher Strasse 77, 50937 K¨oln, Germany ] M 10Departamento de F´ısica Aplicada, Universidad Polit´ecnica de Cartagena, Cartagena, E-30202, Spain 11Centro de Investigaciones Biom´edicas de Canarias, Campus Ciencias de La Salud s/n, E-38071 La Laguna, Spain I . h p Accepted2017January27.Received2017January17;inoriginalform2016October18 - o r t ABSTRACT s a AOLI (Adaptive Optics Lucky Imager) is a state-of-art instrument that combines [ adaptive optics (AO) and lucky imaging (LI) with the objective of obtaining diffrac- tionlimitedimagesinvisiblewavelengthatmid-andbig-sizeground-basedtelescopes. 1 The key innovation of AOLI is the development and use of the new TP3-WFS (Two v 7 PupilPlanePositionsWavefrontSensor).TheTP3-WFS,workinginvisibleband,rep- 0 resentsanadvanceoverclassicalwavefrontsensorssuchastheShack-HartmannWFS 3 (SH-WFS)becauseitcantheoreticallyusefainternaturalreferencestars,whichwould 8 ultimately provide better sky coverages to AO instruments using this newer sensor. 0 This paper describes the software, algorithms and procedures that enabled AOLI to 1. become the first astronomical instrument performing real-time adaptive optics cor- 0 rections in a telescope with this new type of WFS, including the first control-related 7 results at the William Herschel Telescope (WHT). 1 : Key words: instrumentation: adaptive optics – instrumentation: high angular reso- v lution i X r a 1 INTRODUCTION ground. In the era of the extremely large telescopes, and due to the increase of the atmospheric distortion as the di- Reaching the diffraction limit in the visible wavelength is ameter of the aperture grows, this has become a world top oneofthemainreasonstoplaceopticaltelescopeson-board engineering challenge. satellitessuchastheHubbleSpaceTelescope(HST),thereby avoiding the distortions and blurring that the atmosphere Therearetwomaintechniqueswhichleadtodiffraction- introduces on the unaltered wavefronts. With its life-cycle limitedimaging.Ontheoneside,LuckyImaging(LI)(Huf- coming to end and without any oncoming substitute in vis- nagel & Stanley 1964; Fried 1978; Brandner & Hormuth ible bands, it is crucial to provide the scientific commu- 2016) offers an excellent and cheap method for reaching nitywithtoolscapableofprovidingsimilarresolutionsfrom diffraction limited spatial resolution in the visible band in small and mid-size ground-based telescopes (Oscoz et al. 2008). However, this technique suffers from two important (cid:63) E-mail:[email protected] limitations.First,resolutionssimilartotheHSTcanonlybe (cid:13)c 2017TheAuthors 2 C. Colodro-Conde et al. achievedintelescopeswithsizesbelow2.5m(Femen´ıaetal. 2 THE ADAPTIVE OPTICS SYSTEM OF AOLI 2011; Labadie et al. 2011). Second, most of the images are AOLI has been built putting together the expertise of sev- discarded, meaning that only relatively bright targets can eral institutions, each group specialized in a different sub- be observed. ject. To face the challenge that AOLI represents we have The other technique, Adaptive Optics (AO), has been implemented a new philosophy of instrumental prototyping the main procedure to improve the quality of the largest bymodularizingallitscomponents(Lo´pezetal.2016):sim- ground-basedtelescopesduringthelasttwentyyears(Rous- ulator/calibrator (Puga et al. 2014), science module (per- set et al. 1990; Beckers 1993; Milli et al. 2016). The use of forming LI) and AO module. Figure 1 depicts the optical AO systems in infrared observations provides an adequate layout of AOLI, along with a description of the setup. On performanceduetothereducedeffectsofturbulenceinthis the other hand, Figure 2 shows a photograph of the instru- wavelength range, thus achieving excellent results (Guyon ment as mounted on the WHT. et al. 2010; Macintosh et al. 2014; Law et al. 2014). Unfor- The AO subsystem of AOLI comprises a 241-actuators tunately, the scarce number of AO systems developed for deformable mirror (DM) by ALPAO, a pick-off guide-star thevisiblebands(Beuzitetal.2008;Closeetal.2012)have subsystem and the Two Pupil Plane Positions Wavefront not yet achieved the versatility and image quality already Sensor (TP3-WFS). The TP3-WFS operates with the im- achievedinNIR(Closeetal.2013;Guyon2005),exceptfor ages provided by an Andor Ixon DU-897 camera, which is solartelescopes(Berkefeld etal.2012).Thedifficultyofper- basedonasub-photonnoise512x512e2vEMCCD(Electron forming AO in the visible wavelenghts is explained by the MultiplyingCharge-CoupledDevice)detector.Theheartof factthatthecorrelationtimeoftheatmosphericturbulence the AO system is its Real-Time Control Software (RTC), scaleswithλ6/5 (Greenwood1977;Fried1990),whichmeans which allows the control of 153 Zernike modes with a de- thatanAOcontrolloopoperatinginvisiblebandsneedsto lay under 40µs. The delay of the calculations performed in befasterthatintheNIRbandsinordertoprovidethesame the TP3-WFS itself is around 1 ms for the same number of degree of correction. reconstructed modes. The Adaptive Optics Lucky Imager (AOLI) is a state- AOLI was required to perform wavefront sensing using of-the-art instrument which was conceived to obtain ex- faintreferencestarsuptomagnitude16intheI bandwitha tremely high resolution at optical wavelengths on big-sized seeingof1arcsecandatawindspeedof8km/s,whichcor- telescopesbycombiningthetwotechniquespresentedinthe respondstothemedianvalueofthewindspeedattheRoque paragraphs above (AO + LI) (Velasco et al. 2015, 2016). de los Muchachos observatory. For the WHT this means Initially targeted for the 4.2m William Herschel Telescope sensing with up to four magnitudes fainter stars than the (WHT, Observatorio del Roque de los Muchachos, Spain), limit reached with a classical Shack-Hartmann WFS (SH- the instrument is designed as a double system that encom- WFS).Ontheotherhand,itwasestimatedthatperforming passes an adaptive optics control system before the science low-orderAOcorrectionsatarateof100Hzincombination part of the instrument, this last implementing LI (Mackay with LI would provide the desired level of correction at the etal.2016).EachofthetwopartsofAOLIcanbehaveasa science camera. standalone system, meaning that the AO subsystem might beusedwithanyotherscienceinstrument,performingimag- ing, spectroscopy or even coronography or polarimetry. 2.1 The TP3-WFS Besides the fact of combining AO and LI for the first time in an astronomical instrument, the other key innova- The leading position for sensing the wavefront on AO sys- tion of AOLI is the development and use of a new type of temshasbeenoccupiedsofarbytheShack-HartmannWFS wavefrontsensor(WFS)initsAOsubsystem:theTwoPupil (SH-WFS), (Hartmann 1900; Shack & Platt 1971; Platt & Plane Positions Wavefront Sensor (TP3-WFS). The imple- Shack2001).OneimportantdisadvantageoftheSH-WFSis mentation of the TP3-WFS was motivated by the will of thattheincomingphotonsaredistributedamongalltheillu- being able to use fainter AO reference stars than the ones minatedlenslets.Thissetsalimitationforthemagnitudeof thatclassicalwavefrontsensorssuchastheShack-Hartmann the reference stars whose wavefronts can be reconstructed, WFS (SH-WFS) can use, all with the aim of increasing the andconsequentlytotheskycoverageofaninstrumentbased sky coverage of the instrument without the need of laser on this type of sensor. We have developed the TP3-WFS guide stars. with the aim of overcoming this disadvantage. The present work gives a comprehensive description of TheTP3-WFSbasesitscalculationsontheintensityof the AO subsystem of AOLI, focusingonthe TP3-WFSand the images of two defocused pupil images taken at two dif- all the related algorithms and procedures that were devel- ferent planes. Computer simulations predict that this way oped for its characterization and testing. The first control- of measuring wavefronts allows attaining good reconstruc- related results obtained with AOLI at the WHT, also in- tions with down to 100 photons falling within each pupil cluded in the paper, confirm the viability of the TP3-WFS image (van Dam & Lane 2002). Although this statement is as part of a fully-functional adaptive optics system. yet to be thoroughly tested under a real environment (not The paper is organized as follows. Section 2 introduces onlybysimulations),ifconfirmeditwouldmeanaconsider- theAOsubsystemofAOLI.Section3describestheAOreal- able improvement in the sensitivity when compared to the timeprocessingpipeline.Section4describestheprocedures SH-WFS.AnotheradvantageoftheTP3-WFSwithrespect that were used to get information the AO subsystem, thus ofpreviouswavefrontsensorssuchastheSH-WFSisthatit enabling the configuration the control algorithm. Section 5 is capable of working on extended targets, as demonstrated presents the results obtained both in laboratory and tele- later in Section 5. scope tests. Finally, Section 6 draws the main conclusions. TheTP3-WFSiscomposedofthewavefrontreconstruc- MNRAS000,1–15(2017) AOLI TP3-WFS 3 Figure 1. AOLI optical layout. The system is divided in three modules: Deformable Mirror (DM), WaveFront Sensing (WFS) and SCIence (SCI). The common vertex is a Pick-off mirror that selects the reference star for wavefront sensing through a pin-hole in the mirror.Thispin-holecanbeselectedasarealholeorwithasplittingratioR/T =30/70andseveralsizesdependingonthecurrentseeing. ThesciencearmcanselecttwopossiblecollimatorstoobtaintwodifferentFieldsOfView(FOV).TheWFSarmusesalateralprismto introduceadifferentialdelaybetweenthetwoopticalpaths,usingacommonlenssystemtodefocusthepupilimageoverthedetector. TheDMmoduleisatypical1:1systemwithanAmici-biprimsAtmosphericDispersionCorrector(ADC). Pick-offmirrors Deformablemirror Sciencecamera Lateralprism TP3-WFScamera Figure 2.AOLImountedatonethetwoNasmythfocusesoftheWHT,insidetheGRACE(GRoundbasedAdaptiveopticsControlled Environment)structure.Themaincomponentshavebeenidentifiedwithlabels. tion software (WFR), the WFS camera and the surround- 3 AO PROCESSING PIPELINE ing optics (see Figure 1). The main function of the TP3- WFS optics is to obtain the two defocused images near the HadtheAOsystemofAOLIbeenbasedonwell-knowntech- pupil plane, which are later acquired by the WFS camera nologiessuchastheShack-HartmannWFS,theteamcould andfinallyprocessedbytheWFRsoftware.TheWFRsoft- have benefited from the developments and knowledge from ware is founded on the algorithm proposed by van Dam previousprojects,orevenfromcommerciallyavailablesolu- & Lane (2002), and it operates in real-time thanks to its tions.However,theuseofatypeofWFSthathadneverbeen GPU-acceleratedimplementation(Ferna´ndez-Valdiviaetal. implementedbeforeforastronomicalapplicationsforcedthe 2013).MoredetailabouttheinternalsoftheWFRsoftware developmentofnotonlytheWFSitself,butalsoofthesur- will be given later in Section 3.2. rounding methods and software. The new system had to be MNRAS000,1–15(2017) 4 C. Colodro-Conde et al. designed for the specific needs of the TP3-WFS, with a fo- 3.2 Wavefront reconstruction software cusonflexibilitysoastocounteruncertaintiesthatthisnew The WFR software takes the two defocused images formed method arose. bytheTP3-WFSopticsandcalculatesthephotondisplace- Intheend,theAOpartofAOLIwasimplementedwith ments between those two planes by applying the Radon three new pieces of software: the frame grabbing software transform(Radon1917)overasetofprojectionangles.The (FG), the WFR and the RTC. The three pieces of software photon displacements are then used to produce an estima- areinterconnectedinaprocessingpipelineasshowninFig- tionoftheslopesoftheincidentwavefront.Finally,thealgo- ure3.Thisprocessingpipelineistriggeredeverytimeanew rithmoutputsaZernikerepresentationofthereconstructed frame is produced by the WFS camera (which sets the AO wavefront (von F 1934), calculated as the least-squares fit sampling rate), and it re-enters the idle state once a new between the calculated slopes and the ones that each indi- actuation vector is sent to the DM. vidual Zernike mode would produce. ThetargetenvironmentforalltheAO-relatedsoftware TheWFRalgorithmisclearlytheonethathasahigher wouldbeasinglecomputeroperatingwithGPUsandunder computational cost in the whole AO processing pipeline, so Windows. We selected an Intel Core i7-4790K CPU and an ahugeeffortwasputinoptimizingitsimplementationinor- nVidia GeForce GTX Titan Z GPU running the Windows dertoachievereal-timeperformance.Amongallthepossible 7 operative system. The following subsections will provide acceleration methods, it was decided that the WFR would details about each of the three components of the AO pro- take advantage of GPUs in order to achieve real-time oper- cessing pipeline. ation, more specifically, by means of the CUDA language. WhencomparedtootherFPGAorCPU-basedapproaches, the GPU implementation was considered a good trade-off from the point of view of development costs, flexibility and 3.1 Frame grabbing software re-usability (Rodr´ıguez Ramos et al. 2015). Figure 4 provides a graphical summary of the steps of The main objective of the FG software is to continuously the WFR algorithm, whose equations are further described acquireimagesfromtheWFScameraandsendthemtothe in van Dam & Lane (2002). Even though the description WFR software as soon as they are being received, with no of the algorithm itself is out of the scope of this paper, the further processing in between. Additionally, this software followingsubsectionswillgivepracticalconsiderationsabout allowsconfiguringthecameraparametersandprovidesreal- someoftheblocksinFigure4,whichcanbehelpfulforboth time information once the acquisition process has started. the development and use of future wavefront sensors using Reference AO stars with bright apparent magnitudes this reconstruction technique, besides the TP3-WFS itself. mayproduceimagesintheEMCCDsensorwithunnecessary large signal-to-noise ratios (S/N), with no actual improve- ment in the accuracy of the reconstructed wavefronts. In 3.2.1 Extract pupils those cases, the operator of the instrument would normally decrease the exposure time of the WFS camera so as to get The first step of the algorithm is to extract the two regions a faster sampling rate, which would enable the RTC soft- of the input image that correspond to each pupil image. In ware to produce DM actuations more frequently and thus thecaseofAOLI,thisseparationhastobedonebysoftware improvethequalityoftheAOcorrectionsevenwithbadat- because the optics of the TP3-WFS were designed in such mospheric conditions. The upper limit of the sampling rate awaythatbothdefocusedpupilimagesfallwithinthearea is set by the camera hardware itself and by the element of of a single WFS detector. the AO processing pipeline whose execution time is longer. In earlier versions of AOLI, each pupil image was sent Ontheotherhand,theS/Nofthepupilimagesoffaint to one different camera, but in the end this proved to be a reference AO stars can indeed be improved by lowering the bad idea because of two reasons: first, because it was very sampling rate of the camera, but this may have a negative hard to synchronize the camera hardware and the related impact on the quality of the AO corrections because the software in order to acquire from the two cameras with a RTC software may not be able to keep up with the speed high level of synchronism. Synchronism is obviously a re- of variation of the atmospheric turbulence at that specific quirementbecauseitonlymakessensetoprocesspupilthat period of time. In those cases, the recommended solution is come from the same instant of time. The second reason is to activate the binning function of the EMCCD, which will thatevensmalldifferencesbetweenthetwocameras(quan- increase the S/N of the image by combining the charges of tumefficiency,dynamicrange,biaslevel,noise,etc.)havea adjacentpixels,attheexpenseofalowerspatialresolutionin considerable impact on the reconstruction quality. Using a theacquiredpupilimages.Thiswouldimprovetheaccuracy singlecameraisthusaneffectivewaytosolvebothproblems. of the wavefront reconstructions in the cases of low light, although it will not be possible to reconstruct the higher- order modes because of the loss of image resolution. 3.2.2 Bias and flat correction Foranoptimalconfigurationofthecamera,itisimpor- tanttoknowthatitssamplingratedoesnotonlydependon The simulations made with different configurations showed theexposuretimeandthesizeofthereadoutregion,butalso thatsmalldeviationsbetweenthemeanbiaslevelofthetwo on other parameters such as the frequency of the EMCCD pupil regions has a considerable impact on the accuracy of clocks, specially the clock that drives the ADC (analog-to- thereconstructedwavefronts.Beinganalgorithmthatbases digital converter). This type of clock fine-tuning has to be itscalculationsonthedifferencesbetweenthetwoinputim- done carefully in order not to degrade the S/N. ages, this behaviour was actually expected. Therefore, it is MNRAS000,1–15(2017) AOLI TP3-WFS 5 AO computer WFS Frame Wavefront Real-time Deformable camera grabber reconstruct. control mirror Figure 3.AOprocessingpipeline,consistinginthreepiecesofsoftwarerunningontheAOcomputer.Thepipelineistriggeredonthe receptionofaframefromtheWFScamera,andre-entersanidlestateafteranewvectorofactuationshasbeensenttotheDM.Allthe elementsarerequiredtohavealowlatencysoastoensurethattheactuationvectorssenttotheDMcorrespondtowavefrontsthatstill existintherealworld. Bias & Accum. & Histogram Radon flat corr. normalize matching Interp. to Least Extract Estimate Radon squares pupils slopes Bias & Accum. & Histogram coords. fit Radon flat corr. normalize matching Figure 4. WFR software architecture. For each input image, containing two defocused pupil images, a vector of Zernike modes is calculated.ThewholealgorithmisimplementedonGPU,withtheexceptionoftheExtractpupilsblock.Thisisjustifiedbecausesending fullimagestotheGPUwouldcreateabottleneckintheCPU-GPUcommunicationchannel. considered mandatory to apply bias corrections as a pre- determinebyinspectionwhethertheresultofthestaticchar- processing step. acterization is correct. Section 5.1 explains how to analyze Inthesameway,itishighlyrecommendedtoapplyflat- the goodness of the static characterization results. fieldcorrectionstotheinputimages,speciallytoreducethe effect of dust grains on the WFS sensor and optics. During 3.2.4 Least-squares fit a laboratory test, there was one big particle of dust falling on one pupil image that caused the control loop to enter a The final step of the algorithm actually requires to have peculiar oscillatory regime due to the non-linearity caused pre-calculated the mean wavefront slopes that each Zernike by the presence of that particle. modewouldproduceatperpendiculardirectionsofeachpro- Fromthepointofviewofareal-timeimplementation,it jectionangle.Thisoperationisparticularlyexpensivefroma is very convenient to perform the bias and flat-field correc- computational perspective, so it was also GPU-accelerated tions to each individual pupil image, after they have been in spite of not being part of the real-time AO processing extracted to the full image. The rest of the pixels of the pipeline.Thisenabledustoquicklyexperimenttheeffectof original image are not processed anyway, so it is a loss of selecting different combinations of number of Randon pro- processing time to correct them as well. jection angles and Zernike modes. It is interesting to note that the input to the least- squares fit block in Figure 4 already contains all the infor- 3.2.3 Radon transform mationofthereconstructedwavefront,morespecifically,the One important parameter to configure in the WFR algo- slopesalongasetof projectionangles.Theleast-squaresfit rithmisthenumberofprojectionanglesforwhichtheRadon isjustawayofrepresentingthatwavefrontinamorefamil- transform will be calculated. This parameter is closely re- iar way, which additionally enables separating some modes lated to the number of Zernike modes to be reconstructed, ofspecialinterestsuchastip,tiltanddefocus.Itremainsto as the last step of the algorithm is a least-squares adjust- be evaluated whether applying the control algorithm to the ment between the measured wavefront slopes and the ones estimated slopes directly or to their 2-D integral results in thatthedifferentZernikemodeswouldproduce.Thismeans a better level of correction. that, for a given number of reconstructed Zernike modes, At the time of writing the present work, the Zernike there is a minimum number of angles that need to be cal- modesoutputtedbytheTP3-WFSarenotexpressedinany culated so as to ensure that the least-squares fit is being particular units. While this could be a problem for other executed correctly. A larger number of angles means a bet- applications, it does not have any impact on the RTC con- terabilitytorepresenthigh-orderaberrationsintheRadon trol algorithm of AOLI, as this algorithm does not need to transforms themselves. know the physical units of the measured wavefronts. Sim- Of course, even though a large number of projection ilarly, the results presented in this paper do not lose their angles would increase the probabilities of performing a cor- validity because they are always intended to be analysed in rect fit, in practice setting a very high number of angles is a differential way (e.g., open loop vs. closed loop). a bad idea because the execution time of the algorithm has As a reference for future wavefront sensors willing to a linear dependence with the number of angles. For a given implementthisreconstructionalgorithm,Figure5showsthe number of reconstructed Zernike modes, a trade-off can be appearanceoftheslopemapsofthe10lowest-orderZernike foundbyperformingasweepoverthenumberofanglesand modes (excluding piston, as it cannot be reconstructed). MNRAS000,1–15(2017) 6 C. Colodro-Conde et al. −2 −1 0 −2 0 2 −4 −2 0 2 4 −5 0 5 (a)Verticaltilt (b)Horizontaltilt (c)Obliqueastigmatism (d)Defocus −4 −2 0 2 4 −5 0 5 −15 −10 −5 0 −10 0 10 (e)Verticalastigmatism (f)Verticaltrefoil (g)Verticalcomma (h)Horizontalcomma Figure 5.PrecalculatedZernikeslopemaps,usedduringtheconversionofthecalculatedwavefrontslopestovectorsofZernikemodes. TheX axiscorrespondstotheprojectionangleθ(0≤θ<π),whiletheY axiscorrespondstotheRadoncoordinater(−R≤r≤R,where Ristheradiusoftheaperture). 3.3 Real-time control software front and transforms it to a different format just before en- tering the actual control stage. In AOLI, the W2C block is The RTC software is the one responsible of actuating over configured as pass-through. theDMinsuchawaythattheeffectofatmosphericturbu- • Target:Allowssettingacontroltargetthatisdifferent lence on the science camera images is minimized. The con- from 0. This is useful for compensating non-common path trolalgorithmisbasedonanarrayofproportional-integral- between the WFS camera and the science camera (NCPA, derivative(PID)controllers.Besidesthereal-timefunction- Non-Common Path Aberrations). alityitself,theRTCsoftwareimplementstheAOcharacter- • PID array: As its name suggests, this block is com- ization procedures explained later in Section 4. posed of a set of independent PID controllers, one for each ThecomputationsintheRTCsoftwarewereaccelerated element present at its input vector (actually, an error vec- bymeansoftheBlazelibrary(Iglbergeretal.2012).Theuse tor). of this library enabled easy exploiting of the AVX2 instruc- • C2A(“controltoactuations”):transformstheoutputof tion set (Advanced Vector Extensions 2) available on the thePIDarrayintothespecificsetofactuationsthatproduce target CPU, which is specially useful for accelerating vec- the desired correction. In AOLI, this block is configured to torandmatrixoperationsliketheonesthatareexecutedin transform Zernike modes into actuation vectors. theRTCalgorithm.Theproperuseoftheseinstructionsul- timately allowed obtaining better performances than other highly-optimizedGPUlibrarieslikecuBLAS,asthelatency of the CPU-GPU link constitutes a tight bottleneck for the 4 SYSTEM ANALYSIS RTC algorithm. Figure6depictsthearchitectureofthereal-timepartof In order to have a fully working AO instrument one first the RTC software. It consists on a processing pipeline that needstoobtaininformationfromthecontrolplant(i.e.,the is triggered on reception of a new reconstructed wavefront, elements that are part of the control loop) to configure the and finishes when the new set of actuations is sent to the parameters of the RTC processing pipeline that were ex- DM. Below is a brief description of the blocks appearing in plained in Section 3.3. For that purpose, we developed two Figure 6: different procedures, each of them characterizing the AO system under different conditions. • Mask:Extractstheelementsofinterestfromtheinput On one hand, the static characterization procedure is wavefront.InAOLIitisusedtoignorethetipandtiltmodes usedtoobtaintheC2Amatrixbyinvertingtheobtainedin- in the AO control loop, as the LI algorithm would remove fluence matrix. On the other hand, the timing information themanywayinitsshift-and-addstage,wheretheinputim- givenbythedynamiccharacterization procedureallowsset- agesarere-centeredusingapredefinedcriterionsuchasthe tingpropervaluestotheP,I andD parametersofthePID position of the peak pixel. array. The following subsections will explain these two pro- • W2C (“wavefront to control”): Takes the input wave- cedures in detail. MNRAS000,1–15(2017) AOLI TP3-WFS 7 + Same as WFS output WF Mask W2C S PID C2A DM Signal Control variable array formats - DM actuations Target Figure 6.RTCsoftwarearchitecture,showingalltheconfigurableblocksandthenatureofthesignalstravelingthroughoutthem. 4.1 Static characterization Theamountoftimerequiredtoexecutethestaticchar- acterization procedure (t ) depends on the sampling rate The static characterization procedure allows obtaining the sta oftheWFS(f ),thenumberofactuators(A)andonthe influence function of the AO system. This function repre- WFS following algorithm parameters: n , n and n . By ana- sents the effect of actuating over the DM as seen by the sta pp avg lyzing the steps of the algorithm, it can be shown that the WFS once the DM has reached its steady state. duration of the static characterization process follows the The influence function is usually represented as the so- equation below: calledinfluencematrix I =[i ,...,i ],whereMisthenum- M×A 1 A berofelementsattheoutputofeachWFSsample(normally (cid:16) (cid:17) asetofZernikemodes)and Aisthenumberofactuatorsof A n +2n (n +n ) theDM.Inthismatrix,eachrowia containstheresponseof tsta= sta fpp sta avg (1) WFS theWFSwhenasingleactuatorispushedwithanactuation value equal to 1, whichever the actuation units are. Fromthestaticpointofview,theinfluencematrixcon- 4.2 Dynamic characterization tains all the information that is needed to correct an aber- rated input wavefront by actuating over the DM. But that The dynamic characterization procedure is used to obtain would only possible if the control algorithm knew the vec- the impulse reponse of the AO system. Unlike the influence tor of actuators that compensates a given input wavefront, functionobtainedduringthestaticcharacterization,theim- which is just the opposite information that the influence pulseresponsecharacterizesthesystemalsointhetimedo- matrix provides. Fortunately, it is possible to invert the in- main. fluence matrix so that it can be used to convert from wave- The information provided by the impulse response can frontstoactuationvectors,evenifthematrixisnotsquare. be useful for designing a proper PID control loop, that is, Ifthematrixisnotsquare,onecanapplytheMoore-Penrose setting adequate values to the K , K and K parameters. p i d pseudoinverse (Penrose 2008) instead of performing a regu- Anotherapplicationofthemeasuredimpulseresponsesisto lar matrix inversion. determinetheamountofWFSsamplesthattheAOsystem The acquisition of the influence matrix was performed needstoreachastablestateafteranactuationvectorissent using the algorithm described in Appendix A. There is a totheDM,whichsetsalowerlimittothen parameterof sta set of parameters that is used to configure the algorithm, the static characterization procedure. namely: nsta (stabilize samples), npp (push-pull iterations), The dynamic characterization process consists on two navg (average samples) and aval (actuation value). stages. In the first stage, a pre-defined sequence of actu- The parameter nsta sets the amount of time (measured ations din[j] (with 1 ≤ j ≤ nin) is introduced into one ac- inWFSsamples)towaitfortheAOsystemtostabilizeafter tuator of the DM, and the resulting WFS output d [j] = out (cid:2) (cid:3) aDMactuation.Thisdoesnotonlydependontheresponse d [j],...,d [j] (where M is the number of elements at out,1 out,M time of the mirror, but also on the rest of elements on the the output of each WFS sample) is recorded as each ele- AO chain. The best way to set a proper value to nsta is to mentoftheinputsequenceisintroduced.Afterthat,apost- measure the dynamic response of the system (Section 4.2) processing stage is executed in order to obtain the impulse soastodiscovertheamountofWFSsamplesthattakesfor response of the system h[j] = (cid:2)h [j],...,h [j](cid:3). The specific 1 M thesystemtoreachasteadystateafterastepintheinput. post-processingthatneedstobeapplieddependsonthena- One could expect that higher values in n and n ture of the selected input sequence. pp avg should enable getting measurements with a lower level of noise. However, setting n > 1 can have a negative effect avg on the measurement if there is a non-zero mean drift in 4.2.1 On-line stage the input wavefront (either from a star in the sky or from a calibration source). Therefore, it is recommended to set The steps required to perform the on-line stage of the dy- n = 1 and increase the value of n in order to obtain a namiccharacterizationoveroneDMactuatorareexplained avg pp good signal-to-noise ratio. in Appendix B. There are three configurable parameters in Regarding a , it should be set with a value such that this algorithm: n (stabilize repetitions), n (average rep- val sta avg the signal that it produces on the WFS is bigger than the etitions) and t (duration of each iteration of the RTC RTC noise, and at the same time ensuring that the AO system algorithm). (DM, optical path and WFS) does not exit its linear zone Itisrequiredthatn >0becauseotherwisethesystem sta during the whole characterization process. The initial posi- willnothaveenteredastationarystatebythetimethefirst tionoftheDMisnotrelevantaslongasitenablescomplying outputsampleisread.Settingn >1allowsimprovingthe avg with this latter restriction. signal-to-noiseratio,thoughthesameeffectcanbeachieved MNRAS000,1–15(2017) 8 C. Colodro-Conde et al. justbyincreasingthelengthoftheinputsignal(i.e.,increas- 5.1 Static characterization ingn ),providedthattheselectedinputsignalisnotaplain in During laboratory tests, the influence matrix itself proved impulse. The parameter t must represent the amount of RTC to be an invaluable tool to learn how to configure the TP3- time that each iteration of the RTC algorithm would take, WFS, which had never been used on an AO system before. otherwise there would a discrepancy between the complete Given the fact that the WFR software was designed to also AO system and the system which is being measured. The outputthemeasuredwavefrontsas2-Dsurfaces(calculated output signal d is the one that will be processed during out from the 1-D Zernike vectors), it was easy to determine the off-line stage so as to obtain the impulse response h[j]. whether the measurements were being done correctly just As happened in the static characterization, the input by representing each actuator response obtained during the parametersofthedynamiccharacterizationhaveaneffecton static characterization (Section 4.1) and comparing it with its execution time t , which may be calculated as follows: dyn the expected response. n (n +n ) In a system that works correctly, the 2-D representa- t = in sta avg (2) tion of each actuator response should contain a peak that dyn f WFS representsthepositionoftheactuatorasseenbytheWFS. InthecaseoftheTP3-WFS,onejusthastoensurethatthe 4.2.2 Off-line stage number of reconstructed Zernike modes is large enough to achievearesolutionthatallowsidentifyingsuchpeaks.The The calculations to be done on the off-line stage depend on specific number of modes that produce such resolution can thenatureofthechoseninputsequence.Amongthedifferent be obtained either by computer simulations or by perform- types of input sequences, we tested three of the most well- ing a sweep over the number of reconstructed modes with known ones: an impulse, white noise and maximum length the test equipment. In the case of AOLI, the second option sequences(MLS)(Borish&Angell1983;Rife&Vanderkooy was used. 1989). The tests were executed both in computer simula- The TP3-WFS was configured as shown in Figure 7. tions(Colodro-Condeetal.2015)andwiththeactualAOLI The processed pupil regions measure 80x80 pixels each, the instrument. The authors finally chose the MLS method be- radius of the Zernike functions used during the precalcu- cause it proved to perform better than the others, meaning lations was set to 25 pixels, the number of reconstructed thatitproducedmoreaccurate,lessnoisyimpulseresponses Zernike modes was 153 and the number of Radon angles with lower measurement durations. was 31. Given that the area of interest is only that of the The MLSs were generated with LFSRs (Linear Feed- pupils, the frame grabbing software was configured to read back Shift Registers) using the taps proposed by Ward & only the 90 scan lines where the pupils were located, in an Molteno (2012). These LFSRs work with the values −1 and attempt to maximize the sampling rate. 1 instead of 0 and 1, thus producing a pseudo-random se- The rationale for configuring the pupil regions, the quence containing positive and negative pulses. The input Zernike radius and the Radon angles the specified way can sequence is multiplied by a constant a in order to control val be found in Section 3.2. Regarding the 153 reconstructed the magnitude of the actuation, in a similar way as it was modes, it was tested that closing the loop in laboratory doneduringthestaticcharacterization.ThelengththeMLS withalowernumberofmodesledustoaworsePSF(Point sequencen dependsontheMLSordermasindicatedinthe in following equation: n =2m−1. Spread Function), while a higher number of modes did not in resultinanoticeableimprovement.IgnoringthefactthatLI When the input sequence is a MLS, one can apply the would eliminate the need of controlling high-order modes, cross-correlationbetweentheMLSinputandoutputinorder we decided to keep the specified number of modes with the to get the impulse response of the ith element of the WFS objective of getting the best out of the AO loop alone. output vector (normally a Zernike mode): On the other hand, the static characterization param- F−1(cid:0)F (cid:0)d [j](cid:1)F (d [j])∗(cid:1) eters were established as follows: nsta = 2, npp = 25, navg = 1 hi[j]= nout,(ia )2 in (3) and aval = 0.1. This combination of parameters produced in val a good signal-to-noise ratio even on sky tests, with a rea- sonable execution time. The sampling period of the WFS camera was set to 16.243 milliseconds, and the number of 5 RESULTS actuators of the DM was 241. As a result, static characteri- The AO system described in the previous sections was ex- zations in AOLI took almost 10 minutes, which is coherent tensively tested under different conditions before going to with equation (1). telescope. Finally, on May 2016 the full AOLI instrument Figure8showstheresultsofperformingthestaticchar- was moved to the William Herschel Telescope, were it saw acterization both in the laboratory (using the instrument firstlighton22ndMay2016.Atthatnight,wemanagedto calibrationsource,whichsimulatestheWHTtelescope)and close the AO control loop with a natural sky star with the with a natural star in the WHT. Instead of representing all newTP3-WFS,thoughwithlimitedperformanceduetoun- theZernikemodesforalltheactuators,thisfigureshowsthe expected alignment issues. With the lessons learned during 2-Dsurfacerepresentationofthemodesforafewactuators, that night, further AO-related results were gathered on an- in order to ease the interpretation of the result. In the case other commissioning run in October 2016, closing the loop of the laboratory tests (first row of Figure 8) there was no onceagainbutthattimewithseveraltargets.Inthissection simulatedturbulence,whileduringthemeasurementswitha wewillpresenttheAO-relatedresults,obtainedbothduring naturalstar(secondrowofFigure8)theatmospherecreated laboratory and telescope tests. a natural turbulence giving a seeing of about 0.9 arcsec. MNRAS000,1–15(2017) AOLI TP3-WFS 9 Figure 7. Configuration of the TP3-WFS, represented over an actual image read from the WFS camera while pointing to a natural star.Theredsquarescorrespondtotheextractedpupilregions,whilethegreencirclesrepresentthesizeoftheZernikefunctionsused forprecalculatingtheslopemaps.Thebackgroundimagedoesnotcorrespondtoafullframebuttoalimitednumberofscanlines,in anattempttomaximizethecamerasamplingratebyreadingonlytheregionofinterest. (a)Normalactuator, (b)Borderactuator, (c)Centeractuator, laboratory laboratory laboratory (d)Normalactuator, (e)Borderactuator, (f)Centeractuator, skystar skystar skystar Figure8.Staticcharacterizationresultsforaselectionofactuators,usingeitheralaboratorycalibrationsourceoranaturalstarasAO reference.Theactuatorsaredetectedattheexpectedpositions.Thecenteractuatorisaspecialcasebecauseitishiddenbythecentral obscurationoftheaperture,makingitimpossibletodetect. The results show that the influence functions obtained However, it was not necessary to use it during the commis- in the laboratory and in the sky were approximately equal. sioning at the telescope because the main software behaved Of course, the ones obtained in the laboratory were more perfectly. accurate because there was no turbulence, so they could be AfterverifyingthattheTP3-WFSapparentlyproduced used as a reference to estimate the quality of the measure- correct measurements with natural reference stars, it re- ments performed with natural stars. mainedtobecheckedwhetherthesamethingcouldbesaid about extended objects such as planets. For this purpose, The 2-D surface representations in Figure 8 show the the telescope was pointed to Neptune (apparent diameter peak caused by each actuator in the cases were one would = 2.3 arcsec) and the characterization procedure was exe- expect a peak. For example, one would expect a peak in cutedagain.ThepupilimagesacquiredbytheWFScamera Figures 8a and 8d because these actuators correspond to (Figure9)wereagoodinitialsignbecausetheylookedvery the visible area of the WFS (that is, the areas in grey in similar to the ones that had been obtained while pointing Figure 7). In Figures 8b and 8e one can see the response of to stars of similar apparent magnitudes. Figure 10 shows an actuator located just at the outer border of the Zernike the result for a single actuator that is neither in the border areamarkedingreeninFigure7,whichcanstillbedetected nor in the center of the pupil region. The fact that the ac- itbecauseitfallswithinthepupilregion(redsquareinFig- tuator was correctly detected suggests that the TP3-WFS ure7).Lastly,Figures8cand8fshownopeaksbecausethe may allow closing the AO loop with extended objects. This location of this actuator corresponds to the obscured area hypothesis will be confirmed later in Section 5.3. at the center of the pupils. Themainconclusionofthestaticcharacterizationtests is that the TP3-WFS is able to reconstruct the high- 5.2 Dynamic characterization resolution wavefronts generated by the movement of each individualactuator,evenwithpupilsthathaveacentralob- The dynamic characterization procedure described in Sec- scuration area as in the WHT. Knowing that the pupils in tion4.2wasperformedonlaboratory.Thesameresultscan AOLI would have a central obscuration, we prepared an al- beexpectedunderallconditions,includingskyobservations. ternative version of the software which calculates annular The parameters of the dynamic characterization were Zernike modes (Mahajan 1981) instead of the regular ones. established as follows: n = 2, n = 10, a = 0.05 and sta avg val MNRAS000,1–15(2017) 10 C. Colodro-Conde et al. 0.04 e d0.03 u nit ag0.02 m e d o0.01 Figure 9.ApairofpupilimageswhilepointingatNeptune,ex- m tractedfromasinglecameraframe.Theseimagesresemblethose 0 obtainedwhilepointingtoanaturalstar. 0 5 10 15 20 sample index Figure 11. Impulse response of the center actuator, defocus mode.Theresponseisdistributedoverthefirsttwosamples.This behaviour can be explained by carefully analyzing the timing of eachelementintheAOprocessingpipeline. are somehow averaged during the integration process, and thecameraseesapproximatelythesamesignalthatitwould Figure10.Staticcharacterizationresultofasinglevisibleactu- see with a perfectly steep input. That is, from the point of ator,usingNeptuneastheAOreferenceobject.Theactuatoris view of the WFS, the DM responds instantly. detected at the expected position, just as happened when refer- Further inspection of Figure 12 reveals that the reason encingwithstars. whytheresponsetoanimpulseisdividedintwosamplesis related to the instant of time along the integration period in which the actuation occurs, which in turn depends on t =0seconds.Theseparametersweresetthiswaybecause RTC the rest of delays of the system. For a system with timings ofthereasonsalreadyoutlinedinSection4.2.Thesimulated similar to those of AOLI, it makes sense that the impulse delay of the RTC algorithm (t ) was set to 0 because, RTC response has two samples different from zero at most. The in AOLI, this delay is several orders of magnitude lower actualpositionandrelativeamplitudeofthesesamplesonly than the rest of the delays of the system (just a few tens dependontheaccumulateddelayofthetasksthatarepart of microseconds). The sampling period of the WFS camera of the plant of the system under control. was set to 16.243 milliseconds, and only one actuator was measured:theoneatthecentreoftheDM.TheMLSorder was set to m = 9, so the length of the input sequence was 5.3 Closed loop operation on the telescope n = 511. As a result of the chosen parameters, dynamic in characterizations in AOLI took almost 100 seconds, which After gathering the required information and expertise to is coherent with equation (2). close the control loop with the TP3-WFS on laboratory Figure 11 shows the impulse response of the actuator tests,wemanagedtosuccessfullyclosethecontrolloopwith selected for this test. The impulse response of an actuator a natural star in the first commissioning night of the com- isactuallyavectorofZernikemodes,butinthisfigureonly plete AOLI instrument in May 2016, in spite of the bad the defocus mode was represented. This choice is justified atmosphericconditions(between1and2arcsec)andanun- by the fact that, for an actuator located at the center of expectedalignmentproblemthatwasdiscoveredjustasthe thepupil,onlythecircularmodes(defocus,primaryspheri- telescope was pointed to the first star. The effects of this cal, secondary spherical, etc.) have enough signal level over alignment problem, located at the instrument-telescope in- the noise. From the point of view of the timing analysis, terface, accumulated during the night and made it impossi- the specific mode that is chosen does not matter as long as bletoclosetheloopreliablywithothertargets.Inaddition, it provides enough S/N ratio. For other purposes different the conclusions that could be extracted from the first tar- than this analysis, one could measure the response of any get were limited because the acquisition parameters of the actuator over any mode by executing the dynamic charac- sciencecamerahadbeenaccidentallysetinsuchawaythat terization over a long enough time, but the shape of the thedetectorgotsaturatedonclosedloopoperation,causing resulting impulse response would be the same. the so-called blooming effect. InFigure11,thefirstfeaturethatattractstheattention ThefollowingcommissioningruntookplaceinOctober isthefactthattheimpulseresponseonlyhassignalintwoof 2016. This time a lot of effort was put on ensuring a good thesamples,therestofthesamplesonlycontainnoise.The alignment between the optical axes of the instrument and rationalebehindthisbehaviourishardtorealizeunlessone the telescope. One of the methods used to align the AO hassomeextrainformationaboutthetimingofthesystem. subsystemwiththetelescopeduringdaytimewastoopenits That is exactly what Figure 12 tries to illustrate. This fig- petals,turnontheinteriordomelights,andthenperforman ure represents a timeline of the tasks that occur during the iterative re-adjustment of the instrument so that both the dynamiccharacterizationofthesystem,usingactualtiming telescope and the calibration unit produced the defocused data from AOLI. pupil images at the same positions of the WFS detector, The first conclusion that can be extracted from Fig- regardless the defocus distances. ure 12 is that transients of the DM cannot be observed by Despitetheimprovedalignment,itwasdeterminedthat theWFScameras.Giventhefactthattheintegrationperiod staticcharacterizationsperformedwiththeinstrumentcali- is much longer than the settling time of the DM, transients brationunitcandegradethecontrolperformancewhenused MNRAS000,1–15(2017)

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.