---++ NEW BOARD SETUP RULE: All scripts with date in their name are using fiducial coordinates and have to be adjusted once fiducials are setup. ---++ MSIM Load XML File with Newscale Data 1 Get XML file from Mitsuko 1 Load XML file into database. ---++ Camera Adjustment 1 Take image with MaximDL5 to look at pixel values and background. Currently background dominates with 2000 and pixels are only about 10% above. 1 Turn Off Illumination. 1 Run script take_dark_image.lst to take dark images (exposure time, save image). 1 Copy dark image to DarkBiasImages dir. (PFSTests) 1 Turn On Illumination! ---++ Fiducial Setup 1 Take image with MSIM using take_fiducial_image.lst 1 Open from MSIM Control Panel -> Camera -> GetImage -> ImageProcessing Tab 1 Clear the command dialog. 1 Now click in the "Threshold binary Image" on the coordinates for the fiducials then click on the image processing pane on "Add Fiducial cmd". 1 This adds a command in the command dialog. <verbatim> cmd_setHornMethodFiducialCoordinate 96,1644, 10 </verbatim> The last argument (10) is the radius around your provided center (argument 1 x and 2 y). 1 Repeat this for all fiducials, then save the commands to a file and use it in all your scripts. ---++ Frequency Sweep/Calibration 1 Run Script CalibrateCommand to get all frequencies and save them to DB. ---++ Positioner Coarse Centers 1 Home all Positioners. Use 2017_10_09_home_All.lst for this. 1 Update the fiducial lines in 2017_10_09_take_fiducial_image.lst 1 Run the script 2017_10_09_take_fiducial_image.lst 1 Open from MSIM Control Panel -> Camera -> GetImage -> ImageProcessing Tab 1 Now click on the image with one center dot -> on the image processing pane edit the PID number and click on "Add Positioner cmd". 1 This adds a command in the command dialog. <verbatim> cmd_tbd 96,1644, 10 </verbatim> The last argument (10) is the radius around your provided center (argument 1 x and 2 y). 1 Repeat this for all positioners. 1 Add cmd_save_Database to it and execute the script. ---++ Positioner Fine Centers 1 Now that we have coarse positioner locations, MSIM can identify the centroids. 1 Open script 2019_xx_xx_centers_at_home.lst and update fiducial coordinates. 1 Run the script. 1 Copy the results folder over to dropbox. 1 Run <pre>createCenters.m</pre> 1 Check all centers for correctness. This will produce issues if you haven't loaded the correct xml file. ---++ Positioner Z-Orientation Setup (OLD) 1 Home all Positioners. Use 2017_10_09_setHardstopOrientationZ.lst for this. 1 The script will measure Z positions and save them to database. 1 Run 2017_10_09_setHardstopOrientationCW to update CW hardstops. ---++ Positioner Z-Orientation Setup 1 Manually run positioners home. 1 Measure Orientation 1 Manually run positioners anti-home. 1 Measure Orientation. ---++ Link Lengths 1 Manually put positioners in non colliding configuration. 1 Run ... 1 Execute the command to find theta centers and save the results: <pre>createCentersLinkLengths</pre> 1 For each Positioner, decide whether to use the data or not. 1 Save the resulting xml. ---++ On-Time Tuning (tbd) ---++ Generating Targets 1 Change the matlab directory to where you want the target files generated 1 Create an archive folder and move the existing targets in there first. 1 Open and edit the inputs for the target generation script in Matlab to make targets: \Dropbox\PFS_EM\SVN\MATLAB\targGenerator.m 1 Run the script 1 Restart MSIM ---++ Running Targets 1 Open the latest target script in Dropbox\PFS_EM\SVN\MSIM and edit it to have the right positioners 1 Also check that fiducial definitions are correct and motor polarity's are right ---++ Target Convergence Analysis 1 Copy MSIM target log dir on testbed computer (eg: D:\PfsTests\06_16_14_10_36_21_TargetRun\Log) to the drobox test results target convergence folder (Dropbox\PFS_EM\TEST_RESULTS\TargetConvergence\). Rename the log directory in dropbox to have the same name as the mother directory on testbed computer (eg: 06_16_14_10_36_21_TargetRun). This directory will now be referred to as the test directory here. 1 Move the appropriate CobraConfig xml (the most recent file in explorer:Libraries->xmlfiles) used by MSIM into the test directory. 1 Change the matlab current folder to the test directory in dropbox. 1 Execute the following command to run the target analysis script: <verbatim>analyzeTargetRun</verbatim> 1 When prompted, select the appropriate xml which was used for the MSIM test. The one you moved into test directory. 1 Run the script and mat files will be saved to the same log directory as the log txt files are in. ---++ Target Convergence Comparisons 1 Change the matlab current folder to Dropbox\PFS_EM\TEST_RESULTS\TargetConvergence\ Run the target convergence analysis on data you wish to compare. The mat files from that script are needed for this comparison. 1 Open the convergence comparison matlab script in that folder: convCompare.m 1 Edit the INPUTS section so that the dataDirs array contains the folder names of test data you wish to compare. These must all contain the results of analyzeTargetRun script. 1 Run the script. 1 The convergence comparison figure will automatically be saved in the last folder of the dataDirs array, so make sure that is in order. ---++ Motor Map Update 1 Do a TargetConvergenceAnalysis as described above. 1 Add your new test directory to the list of directories in the beginning of updateMotorMapsFromTargetData.m 1 Uncomment all directories that contain data you want to include in the analysis. 1 Run the script with your latest xml and take a thorough look at the results. Look for extreme map values and decide whether it is realistic and ok for the positioner to have these values. 1 Follow the Loading XML into MSIM procedure above. ---++ BOARD ACCEPTANCE CHECK -- Main.JohannesGross - 12 Oct 2017
This topic: Subaru/PFS
>
WebHome
>
POSitionerProd
>
ModuleTestingProcedure
Topic revision: r4 - 2018-04-09 - JohannesGross
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback