Difference: ModuleTestingProcedure (1 vs. 19)

Revision 192018-09-17 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 81 to 81
 
  1. Manually run positioners anti-home.
  2. Update script 2018_xx_xx_setHardstopOrientations_manual_cw.lst with fiducial info.
  3. Run the script.
Changed:
<
<

On-Time Tuning (tbd)

>
>
  1. Save the xml file to metrology.xml using 'cmd_save_Database_to_xml_file metrology'
  2. Run the Script checkMetrology.m and take a look at all values to make sure they are within bounds (e.g. ROM > 360 for theta and >180 for phi).
 

Generating Targets

  1. Change the matlab directory to where you want the target files generated

Revision 182018-07-18 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 87 to 87
 
  1. Change the matlab directory to where you want the target files generated
  2. Create an archive folder and move the existing targets in there first.
  3. Run ics_cobraOps\matlab\collisions\generateFieldTargets.m with the arguments (200,1.5);
Changed:
<
<
  1. Run the script
>
>
  1. Copy the target files to D:\PFSTests\Targets
 
  1. Restart MSIM

Running Targets

Revision 172018-07-10 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 117 to 117
 
  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.
  2. Follow the Loading XML into MSIM procedure above.
Added:
>
>

Module Test Report

  1. Run as many iterations of Convergence Runs and Motor Map Updates as necessary to get performance to acceptable level (above 0.95 but close to 1.0 is desirable).
  2. Copy the functions module_acceptance_load and module_acceptance_report_generator.m over from previous module results folder.
  3. Add all xx_xx_xx_TargetRun folders to module_acceptance_load.m.
  4. Run module_acceptance_report_generator.m
  5. Manually add descriptions and exceptions to word doc.
  6. Save the doc as pdf with the naming convention:
  7. Science01 was:

    PFS-PFI-CIT900100-03_OtherinfoModuleReport.pdf

    PFS-PFI-CIT900200-03_OtherInfoFinalXML.xml

    Now go ahead with MN as chronological numbering in the order of manufacturing:

    PFS-PFI-CIT900*00-MN_****.***

  8. Copy both files over to DocumentsForDelivery folder on Production Dropbox.

 -- JohannesGross - 12 Oct 2017 \ No newline at end of file

Revision 162018-06-14 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 52 to 52
 

Link Lengths (~1hr 20min)

  1. Manually put positioners in non colliding configuration.
  2. Run 2018_xx_xx_link_lengths_not_colliding.lst
Changed:
<
<
  1. Execute the command to find theta centers and save the results:
    createLinkLengths
  2. For each Positioner, decide whether to use the data or not.
  3. Save the resulting xml and load it into MSIM.
>
>
  1. Save the results folder to dropbox. (e.g. Dropbox\PFS_Production\TEST_RESULTS\Module#\)
 

Phi Stage Inside Hard stops

  1. Make sure manually that all phi stages are on inside hardstop.
  2. Run 2018_xx_xx_measure_phi_hardstop.lst
Line: 72 to 70
 
  1. Copy measured positions (removing seq_setCurrentPos() ==>> Module_Id=1,) into a new file "outer_hardstop.txt".
  2. Make sure there are 57 entries.
  3. Save it to the results folder from the link length run in the previous step. (e.g. Dropbox\PFS_Production\TEST_RESULTS\Module#\2018_xx_xx_link_lengths\Log\)
Changed:
<
<
  1. Run register_s2_hardstops.m in that folder and check results.
>
>
  1. Run register_s2_hardstops.m in that folder.
  2. For each Positioner, decide whether to use the data or not. If data is flawed, manual adjustments can be made to resulting xml file.
 
  1. Save the resulting xml and load it into MSIM.

Positioner Z-Orientation Setup

Revision 152018-06-14 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 41 to 41
 
  1. Repeat this for all positioners. The row closest to the fiducial are the odd numbered positioners. It helps starting with the even numbers so the tags don't get in your way.
  2. Add cmd_save_Database to it and execute the script.
Changed:
<
<

Positioner Fine Centers

>
>

Positioner Fine Centers (~1hr)

 
  1. Now that we have coarse positioner locations, MSIM can identify the centroids.
  2. Open script 2018_xx_xx_centers_at_home.lst and update fiducial coordinates.
  3. Run the script.
  4. Copy the results folder over to dropbox.
  5. Run
    createCenters.m
  6. Check all centers for correctness. This will produce issues if you haven't loaded the correct xml file.
Changed:
<
<

Link Lengths

>
>
  1. Save the resulting xml and load it into MSIM.

Link Lengths (~1hr 20min)

 
  1. Manually put positioners in non colliding configuration.
  2. Run 2018_xx_xx_link_lengths_not_colliding.lst
  3. Execute the command to find theta centers and save the results:
    createLinkLengths

Revision 142018-05-21 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 35 to 35
 
  1. Update the fiducial lines in 2018_xx_xx_take_fiducial_image.lst
  2. Run the script 2018_xx_xx_ctake_fiducial_image.lst
  3. Open from MSIM Control Panel -> Camera -> GetImage -> ImageProcessing Tab
Changed:
<
<
  1. Now click on the "Threshold binary image" on the center of the lower right dot -> this is the center of PID1.
>
>
  1. Now click on the "Threshold binary image" on the center of the upper left dot -> this is the center of PID1. PID 1 is in the top left corner, PID 57 in the lower right. This is only true for the MSIM picture, the video camera is the opposite.
 
  1. On the image processing pane edit the PID number and click on "Add Arm Cntr cmd". This has to happen in this sequence.
  2. This adds a command in the command dialog.
     cmd_tbdpid...  96,1644, 10 
    The last argument (10) is the radius around your provided center (argument 1 x and 2 y).
  3. Repeat this for all positioners. The row closest to the fiducial are the odd numbered positioners. It helps starting with the even numbers so the tags don't get in your way.

Revision 132018-05-18 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 57 to 57
 

Phi Stage Inside Hard stops

  1. Make sure manually that all phi stages are on inside hardstop.
  2. Run 2018_xx_xx_measure_phi_hardstop.lst
Changed:
<
<
  1. Copy measured positions into new file "inner_hardstop.txt" and save it to link length log folder.
>
>
  1. Got to the output_log.txt file, and find the last assigned fiber positions:
  2. ===>>> Unit 0 Command Execution Time = 31 msec <<<===
    seq_setCurrentPos() ==>> Module_Id=1, Positioner_Id=1, found cx=1948.849694, cy=1807.224149
    seq_setCurrentPos() ==>> Module_Id=1, Positioner_Id=2, found cx=1971.169289, cy=1725.110211
    etc.
  3. Copy measured positions (removing seq_setCurrentPos() ==>> Module_Id=1,) into a new file "inner_hardstop.txt".
  4. Make sure there are 57 lines.
  5. Save it to the results folder from the link length run in the previous step. (e.g. Dropbox\PFS_Production\TEST_RESULTS\Module#\2018_xx_xx_link_lengths\Log\)
 

Phi Stage Outside Hardstops

  1. Make sure manually that all phi stages are on outside hardstop.
  2. If ontimes have to be adjusted to reach outside, record successful ontimes.
  3. Run 2018_xx_xx_measure_phi_hardstop.lst
Changed:
<
<
  1. Copy measured positions into new file "outer_hardstop.txt" and save it to link length log folder.
  2. Run register_s2_hardstops.m and check results.
>
>
  1. Got to the output_log.txt file, and find the last assigned fiber positions:
  2. ===>>> Unit 0 Command Execution Time = 31 msec <<<===
    seq_setCurrentPos() ==>> Module_Id=1, Positioner_Id=1, found cx=1948.849694, cy=1807.224149
    seq_setCurrentPos() ==>> Module_Id=1, Positioner_Id=2, found cx=1971.169289, cy=1725.110211
    etc.
  3. Copy measured positions (removing seq_setCurrentPos() ==>> Module_Id=1,) into a new file "outer_hardstop.txt".
  4. Make sure there are 57 entries.
  5. Save it to the results folder from the link length run in the previous step. (e.g. Dropbox\PFS_Production\TEST_RESULTS\Module#\2018_xx_xx_link_lengths\Log\)
  6. Run register_s2_hardstops.m in that folder and check results.
 
  1. Save the resulting xml and load it into MSIM.

Positioner Z-Orientation Setup

Revision 122018-05-16 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

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
Changed:
<
<
  1. Load XML file into database.
>
>
  1. Load XML file into database:
  2. Copy the XML file in D:/[…]/xmlfiles/ (where the shortcut XML in explorer points)
  3. In the script window, go to Commands -> Database -> cmd_load_Xml_file_to_Database
  4. Put the XML file basename (without .xml)behind the command string.
  5. Add Command.
  6. Add Command cmd_save_Database.
  7. Run.
  8. Restart MSIM
 

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.
  2. Turn Off Illumination.

Revision 112018-05-16 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 28 to 28
 
  1. Update the fiducial lines in 2018_xx_xx_take_fiducial_image.lst
  2. Run the script 2018_xx_xx_ctake_fiducial_image.lst
  3. Open from MSIM Control Panel -> Camera -> GetImage -> ImageProcessing Tab
Changed:
<
<
  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".
  2. This adds a command in the command dialog.
     cmd_tbd  96,1644, 10 
    The last argument (10) is the radius around your provided center (argument 1 x and 2 y).
  3. Repeat this for all positioners.
>
>
  1. Now click on the "Threshold binary image" on the center of the lower right dot -> this is the center of PID1.
  2. On the image processing pane edit the PID number and click on "Add Arm Cntr cmd". This has to happen in this sequence.
  3. This adds a command in the command dialog.
     cmd_tbdpid...  96,1644, 10 
    The last argument (10) is the radius around your provided center (argument 1 x and 2 y).
  4. Repeat this for all positioners. The row closest to the fiducial are the odd numbered positioners. It helps starting with the even numbers so the tags don't get in your way.
 
  1. Add cmd_save_Database to it and execute the script.

Positioner Fine Centers

Revision 102018-05-16 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Changed:
<
<
RULE: All scripts with date in their name are using fiducial coordinates and have to be adjusted once fiducials are 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
  2. Load XML file into database.
Line: 13 to 13
 
  1. Copy dark image to DarkBiasImages dir. (PFSTests)
  2. Turn On Illumination!

Fiducial Setup

Changed:
<
<
  1. Take image with MSIM using take_fiducial_image.lst
>
>
  1. Take image with MSIM using 2018_xx_xx_take_fiducial_image.lst
 
  1. Open from MSIM Control Panel -> Camera -> GetImage -> ImageProcessing Tab
  2. Clear the command dialog.
  3. Now click in the "Threshold binary Image" on the coordinates for the fiducials then click on the image processing pane on "Add Fiducial cmd".
Line: 24 to 24
 
  1. Run Script CalibrateCommand to get all frequencies and save them to DB.

Positioner Coarse Centers

Changed:
<
<
  1. Home all Positioners. Use 2017_10_09_home_All.lst for this.
  2. Update the fiducial lines in 2017_10_09_take_fiducial_image.lst
  3. Run the script 2017_10_09_take_fiducial_image.lst
>
>
  1. Home all Positioners. Use home_All.lst for this.
  2. Update the fiducial lines in 2018_xx_xx_take_fiducial_image.lst
  3. Run the script 2018_xx_xx_ctake_fiducial_image.lst
 
  1. Open from MSIM Control Panel -> Camera -> GetImage -> ImageProcessing Tab
  2. Now click on the image with one center dot -> on the image processing pane edit the PID number and click on "Add Positioner cmd".
  3. This adds a command in the command dialog.
     cmd_tbd  96,1644, 10 
    The last argument (10) is the radius around your provided center (argument 1 x and 2 y).
Line: 35 to 35
 

Positioner Fine Centers

  1. Now that we have coarse positioner locations, MSIM can identify the centroids.
Changed:
<
<
  1. Open script 2019_xx_xx_centers_at_home.lst and update fiducial coordinates.
>
>
  1. Open script 2018_xx_xx_centers_at_home.lst and update fiducial coordinates.
 
  1. Run the script.
  2. Copy the results folder over to dropbox.
  3. Run
    createCenters.m
  4. Check all centers for correctness. This will produce issues if you haven't loaded the correct xml file.

Link Lengths

  1. Manually put positioners in non colliding configuration.
Changed:
<
<
  1. Run 2018_04_09_link_lengths_not_colliding.lst
>
>
  1. Run 2018_xx_xx_link_lengths_not_colliding.lst
 
  1. Execute the command to find theta centers and save the results:
    createLinkLengths
  2. For each Positioner, decide whether to use the data or not.
  3. Save the resulting xml and load it into MSIM.

Phi Stage Inside Hard stops

  1. Make sure manually that all phi stages are on inside hardstop.
Changed:
<
<
  1. Run 2018_04_10_measure_phi_hardstop.lst
>
>
  1. Run 2018_xx_xx_measure_phi_hardstop.lst
 
  1. Copy measured positions into new file "inner_hardstop.txt" and save it to link length log folder.

Phi Stage Outside Hardstops

  1. Make sure manually that all phi stages are on outside hardstop.
  2. If ontimes have to be adjusted to reach outside, record successful ontimes.
Changed:
<
<
  1. Run 2018_04_10_measure_phi_hardstop.lst
>
>
  1. Run 2018_xx_xx_measure_phi_hardstop.lst
 
  1. Copy measured positions into new file "outer_hardstop.txt" and save it to link length log folder.
  2. Run register_s2_hardstops.m and check results.
  3. Save the resulting xml and load it into MSIM.

Positioner Z-Orientation Setup

  1. Manually run positioners home to negative hardstop.
Changed:
<
<
  1. Update script 2018_04_10_setHardstopOrientations_manual_ccw.lst with fiducial info.
>
>
  1. Update script 2018_xx_xx_setHardstopOrientations_manual_ccw.lst with fiducial info.
 
  1. Run the script.
  2. Manually run positioners anti-home.
Changed:
<
<
  1. Update script 2018_04_10_setHardstopOrientations_manual_cw.lst with fiducial info.
>
>
  1. Update script 2018_xx_xx_setHardstopOrientations_manual_cw.lst with fiducial info.
 
  1. Run the script.

On-Time Tuning (tbd)

Revision 92018-04-23 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 49 to 49
 

Phi Stage Inside Hard stops

  1. Make sure manually that all phi stages are on inside hardstop.
  2. Run 2018_04_10_measure_phi_hardstop.lst
Changed:
<
<
  1. tbd
  2. Save the resulting xml and load it into MSIM.
>
>
  1. Copy measured positions into new file "inner_hardstop.txt" and save it to link length log folder.
 

Phi Stage Outside Hardstops

  1. Make sure manually that all phi stages are on outside hardstop.
  2. If ontimes have to be adjusted to reach outside, record successful ontimes.
  3. Run 2018_04_10_measure_phi_hardstop.lst
Changed:
<
<
  1. tbs
>
>
  1. Copy measured positions into new file "outer_hardstop.txt" and save it to link length log folder.
  2. Run register_s2_hardstops.m and check results.
 
  1. Save the resulting xml and load it into MSIM.

Positioner Z-Orientation Setup

Line: 70 to 70
 

Generating Targets

  1. Change the matlab directory to where you want the target files generated
  2. Create an archive folder and move the existing targets in there first.
Changed:
<
<
  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 ics_cobraOps\matlab\collisions\generateFieldTargets.m with the arguments (200,1.5);
 
  1. Run the script
  2. Restart MSIM

Running Targets

Changed:
<
<
  1. Open the latest target script in Dropbox\PFS_EM\SVN\MSIM and edit it to have the right positioners
  2. Also check that fiducial definitions are correct and motor polarity's are right
>
>
  1. Open the latest target script in Dropbox\PFS_EM\SVN\MSIM and add latest fiducial coordinates.
  2. Run and make sure everything works.
 

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.

Revision 82018-04-23 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 43 to 43
 

Link Lengths

  1. Manually put positioners in non colliding configuration.
  2. Run 2018_04_09_link_lengths_not_colliding.lst
Changed:
<
<
  1. Execute the command to find theta centers and save the results:
    createCentersLinkLengths
>
>
  1. Execute the command to find theta centers and save the results:
    createLinkLengths
 
  1. For each Positioner, decide whether to use the data or not.
  2. Save the resulting xml and load it into MSIM.

Phi Stage Inside Hard stops

Line: 101 to 101
 
  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.
  2. Follow the Loading XML into MSIM procedure above.
Deleted:
<
<

BOARD ACCEPTANCE CHECK

 -- JohannesGross - 12 Oct 2017

Revision 72018-04-11 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 59 to 59
 
  1. Save the resulting xml and load it into MSIM.

Positioner Z-Orientation Setup

Changed:
<
<
  1. Manually run positioners home.
  2. Measure Orientation
>
>
  1. Manually run positioners home to negative hardstop.
  2. Update script 2018_04_10_setHardstopOrientations_manual_ccw.lst with fiducial info.
  3. Run the script.
 
  1. Manually run positioners anti-home.
Changed:
<
<
  1. Measure Orientation.
>
>
  1. Update script 2018_04_10_setHardstopOrientations_manual_cw.lst with fiducial info.
  2. Run the script.
 

On-Time Tuning (tbd)

Generating Targets

Revision 62018-04-10 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 40 to 40
 
  1. Copy the results folder over to dropbox.
  2. Run
    createCenters.m
  3. Check all centers for correctness. This will produce issues if you haven't loaded the correct xml file.
Deleted:
<
<

Positioner Z-Orientation Setup (OLD)

  1. Home all Positioners. Use 2017_10_09_setHardstopOrientationZ.lst for this.
  2. The script will measure Z positions and save them to database.
  3. Run 2017_10_09_setHardstopOrientationCW to update CW hardstops.

Positioner Z-Orientation Setup

  1. Manually run positioners home.
  2. Measure Orientation
  3. Manually run positioners anti-home.
  4. Measure Orientation.
 

Link Lengths

  1. Manually put positioners in non colliding configuration.
Changed:
<
<
  1. Run ...
>
>
  1. Run 2018_04_09_link_lengths_not_colliding.lst
 
  1. Execute the command to find theta centers and save the results:
    createCentersLinkLengths
  2. For each Positioner, decide whether to use the data or not.
Changed:
<
<
  1. Save the resulting xml.
>
>
  1. Save the resulting xml and load it into MSIM.

Phi Stage Inside Hardstops

  1. Make sure manually that all phi stages are on inside hardstop.
  2. Run 2018_04_10_measure_phi_hardstop.lst
  3. tbd
  4. Save the resulting xml and load it into MSIM.

Phi Stage Outside Hardstops

  1. Make sure manually that all phi stages are on outside hardstop.
  2. If ontimes have to be adjusted to reach outside, record successful ontimes.
  3. Run 2018_04_10_measure_phi_hardstop.lst
  4. tbs
  5. Save the resulting xml and load it into MSIM.
 
Added:
>
>

Positioner Z-Orientation Setup

  1. Manually run positioners home.
  2. Measure Orientation
  3. Manually run positioners anti-home.
  4. Measure Orientation.
 

On-Time Tuning (tbd)

Generating Targets

Revision 52018-04-10 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Revision 42018-04-09 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

RULE: All scripts with date in their name are using fiducial coordinates and have to be adjusted once fiducials are setup.

Added:
>
>

MSIM Load XML File with Newscale Data

  1. Get XML file from Mitsuko
  2. 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.
  2. Turn Off Illumination.
Line: 34 to 37
 
  1. Now that we have coarse positioner locations, MSIM can identify the centroids.
  2. Open script 2019_xx_xx_centers_at_home.lst and update fiducial coordinates.
  3. Run the script.
Changed:
<
<
>
>
  1. Copy the results folder over to dropbox.
  2. Run
    createCenters.m
  3. 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.
  2. The script will measure Z positions and save them to database.

Revision 32018-04-09 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Changed:
<
<

Fiducial Centers Setup

  1. Take image with MSIM using 2015_09_21_takeCentersImage.lst
  2. Open from MSIM Control Panel -> Camera -> GetImage -> ImageProcessing Tab
  3. Clear the command dialog.
  4. Now click in the "Threshold binary Image" on the coordinates for the fiducials then click on the image processing pane on "Add Fiducial cmd".
  5. This adds a command in the command dialog.
     cmd_setHornMethodFiducialCoordinate  96,1644, 10 
    The last argument (10) is the radius around your provided center (argument 1 x and 2 y).
  6. Repeat this for all fiducials, then save the commands to a file and use it in all your scripts.
>
>
RULE: All scripts with date in their name are using fiducial coordinates and have to be adjusted once fiducials are setup.

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.
  2. Turn Off Illumination.
  3. Run script take_dark_image.lst to take dark images (exposure time, save image).
  4. Copy dark image to DarkBiasImages dir. (PFSTests)
  5. Turn On Illumination!

Fiducial Setup

  1. Take image with MSIM using take_fiducial_image.lst
  2. Open from MSIM Control Panel -> Camera -> GetImage -> ImageProcessing Tab
  3. Clear the command dialog.
  4. Now click in the "Threshold binary Image" on the coordinates for the fiducials then click on the image processing pane on "Add Fiducial cmd".
  5. This adds a command in the command dialog.
     cmd_setHornMethodFiducialCoordinate  96,1644, 10 
    The last argument (10) is the radius around your provided center (argument 1 x and 2 y).
  6. Repeat this for all fiducials, then save the commands to a file and use it in all your scripts.
 

Frequency Sweep/Calibration

Changed:
<
<
  1. Run Script 2017_04_CalibrateCommand to get all frequencies and save them to DB.

Positioner CENTERS SETUP

  1. Home all Positioners. Use 2015_09_16_home_All.lst for this with an updated list of used positioners.
  2. Take an image with MSIM
  3. Open from MSIM Control Panel -> Camera -> GetImage -> ImageProcessing Tab
  4. Now click on the image with one center dot -> on the image processing pane edit the PID number and click on "Add Positioner cmd".
  5. This adds a command in the command dialog.
     cmd_tbd  96,1644, 10 
    The last argument (10) is the radius around your provided center (argument 1 x and 2 y).
  6. Repeat this for all positioners.
  7. Add cmd_save_Database to it and execute the script.
>
>
  1. Run Script CalibrateCommand to get all frequencies and save them to DB.
 
Added:
>
>

Positioner Coarse Centers

  1. Home all Positioners. Use 2017_10_09_home_All.lst for this.
  2. Update the fiducial lines in 2017_10_09_take_fiducial_image.lst
  3. Run the script 2017_10_09_take_fiducial_image.lst
  4. Open from MSIM Control Panel -> Camera -> GetImage -> ImageProcessing Tab
  5. Now click on the image with one center dot -> on the image processing pane edit the PID number and click on "Add Positioner cmd".
  6. This adds a command in the command dialog.
     cmd_tbd  96,1644, 10 
    The last argument (10) is the radius around your provided center (argument 1 x and 2 y).
  7. Repeat this for all positioners.
  8. 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.
  2. Open script 2019_xx_xx_centers_at_home.lst and update fiducial coordinates.
  3. Run the script.

Positioner Z-Orientation Setup (OLD)

  1. Home all Positioners. Use 2017_10_09_setHardstopOrientationZ.lst for this.
  2. The script will measure Z positions and save them to database.
  3. Run 2017_10_09_setHardstopOrientationCW to update CW hardstops.
 

Positioner Z-Orientation Setup

Changed:
<
<
  1. Home all Positioners. Use 2017_10_09_setHardstopOrientationZ.lst for this.
  2. The script will measure Z positions and save them to database.
  3. Run 2017_10_09_setHardstopOrientationCW to update CW hardstops.

On-Time Tuning

CENTERS AND LINK LENGHTS

  1. Edit the center script to use the ontimes found from theta and phi forward ontime tuning.
  2. Run the script.
  3. Copy the log folder of the results into a folder in the data storage.
  4. Adjust number of steps for specific positioners in the center script to either get tighter or wider spread of centroids around the circumference.
  5. Execute the command to find theta centers and save the results:
    createCentersLinkLengths
  6. For each Positioner, decide whether to use the data or not.
  7. Save the resulting xml.
>
>
  1. Manually run positioners home.
  2. Measure Orientation
  3. Manually run positioners anti-home.
  4. Measure Orientation.

Link Lengths

  1. Manually put positioners in non colliding configuration.
  2. Run ...
  3. Execute the command to find theta centers and save the results:
    createCentersLinkLengths
  4. For each Positioner, decide whether to use the data or not.
  5. Save the resulting xml.

On-Time Tuning (tbd)

 

Generating Targets

Changed:
<
<
  1. Change the matlab directory to where you want the target files generated
  2. Create an archive folder and move the existing targets in there first.
  3. Open and edit the inputs for the target generation script in Matlab to make targets: \Dropbox\PFS_EM\SVN\MATLAB\targGenerator.m
  4. Run the script
  5. Restart MSIM
>
>
  1. Change the matlab directory to where you want the target files generated
  2. Create an archive folder and move the existing targets in there first.
  3. Open and edit the inputs for the target generation script in Matlab to make targets: \Dropbox\PFS_EM\SVN\MATLAB\targGenerator.m
  4. Run the script
  5. Restart MSIM
 

Running Targets

Changed:
<
<
  1. Open the latest target script in Dropbox\PFS_EM\SVN\MSIM and edit it to have the right positioners
  2. Also check that fiducial definitions are correct and motor polarity's are right
>
>
  1. Open the latest target script in Dropbox\PFS_EM\SVN\MSIM and edit it to have the right positioners
  2. Also check that fiducial definitions are correct and motor polarity's are right
 

Target Convergence Analysis

Changed:
<
<
  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.
  2. Move the appropriate CobraConfig xml (the most recent file in explorer:Libraries->xmlfiles) used by MSIM into the test directory.
  3. Change the matlab current folder to the test directory in dropbox.
  4. Execute the following command to run the target analysis script:
    analyzeTargetRun
  5. When prompted, select the appropriate xml which was used for the MSIM test. The one you moved into test directory.
  6. Run the script and mat files will be saved to the same log directory as the log txt files are in.
>
>
  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.
  2. Move the appropriate CobraConfig xml (the most recent file in explorer:Libraries->xmlfiles) used by MSIM into the test directory.
  3. Change the matlab current folder to the test directory in dropbox.
  4. Execute the following command to run the target analysis script:
    analyzeTargetRun
  5. When prompted, select the appropriate xml which was used for the MSIM test. The one you moved into test directory.
  6. Run the script and mat files will be saved to the same log directory as the log txt files are in.
 

Target Convergence Comparisons

Changed:
<
<
  1. Change the matlab current folder to Dropbox\PFS_EM\TEST_RESULTS\TargetConvergence
>
>
  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.
Changed:
<
<
  1. Open the convergence comparison matlab script in that folder: convCompare.m
  2. 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.
  3. Run the script.
  4. The convergence comparison figure will automatically be saved in the last folder of the dataDirs array, so make sure that is in order.
>
>
  1. Open the convergence comparison matlab script in that folder: convCompare.m
  2. 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.
  3. Run the script.
  4. 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

Changed:
<
<
  1. Do a TargetConvergenceAnalysis as described above.
  2. Add your new test directory to the list of directories in the beginning of updateMotorMapsFromTargetData.m
  3. Uncomment all directories that contain data you want to include in the analysis.
  4. 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.
  5. Follow the Loading XML into MSIM procedure above.
>
>
  1. Do a TargetConvergenceAnalysis as described above.
  2. Add your new test directory to the list of directories in the beginning of updateMotorMapsFromTargetData.m
  3. Uncomment all directories that contain data you want to include in the analysis.
  4. 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.
  5. Follow the Loading XML into MSIM procedure above.
 

BOARD ACCEPTANCE CHECK

Revision 22017-10-16 - JohannesGross

Line: 1 to 1
 
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Line: 11 to 11
 
  1. Repeat this for all fiducials, then save the commands to a file and use it in all your scripts.

Frequency Sweep/Calibration

Changed:
<
<
>
>
  1. Run Script 2017_04_CalibrateCommand to get all frequencies and save them to DB.
 

Positioner CENTERS SETUP

  1. Home all Positioners. Use 2015_09_16_home_All.lst for this with an updated list of used positioners.

Revision 12017-10-12 - JohannesGross

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="POSitionerProd"

NEW BOARD SETUP

Fiducial Centers Setup

  1. Take image with MSIM using 2015_09_21_takeCentersImage.lst
  2. Open from MSIM Control Panel -> Camera -> GetImage -> ImageProcessing Tab
  3. Clear the command dialog.
  4. Now click in the "Threshold binary Image" on the coordinates for the fiducials then click on the image processing pane on "Add Fiducial cmd".
  5. This adds a command in the command dialog.
     cmd_setHornMethodFiducialCoordinate  96,1644, 10 
    The last argument (10) is the radius around your provided center (argument 1 x and 2 y).
  6. Repeat this for all fiducials, then save the commands to a file and use it in all your scripts.

Frequency Sweep/Calibration

Positioner CENTERS SETUP

  1. Home all Positioners. Use 2015_09_16_home_All.lst for this with an updated list of used positioners.
  2. Take an image with MSIM
  3. Open from MSIM Control Panel -> Camera -> GetImage -> ImageProcessing Tab
  4. Now click on the image with one center dot -> on the image processing pane edit the PID number and click on "Add Positioner cmd".
  5. This adds a command in the command dialog.
     cmd_tbd  96,1644, 10 
    The last argument (10) is the radius around your provided center (argument 1 x and 2 y).
  6. Repeat this for all positioners.
  7. Add cmd_save_Database to it and execute the script.

Positioner Z-Orientation Setup

  1. Home all Positioners. Use 2017_10_09_setHardstopOrientationZ.lst for this.
  2. The script will measure Z positions and save them to database.
  3. Run 2017_10_09_setHardstopOrientationCW to update CW hardstops.

On-Time Tuning

CENTERS AND LINK LENGHTS

  1. Edit the center script to use the ontimes found from theta and phi forward ontime tuning.
  2. Run the script.
  3. Copy the log folder of the results into a folder in the data storage.
  4. Adjust number of steps for specific positioners in the center script to either get tighter or wider spread of centroids around the circumference.
  5. Execute the command to find theta centers and save the results:
    createCentersLinkLengths
  6. For each Positioner, decide whether to use the data or not.
  7. Save the resulting xml.

Generating Targets

  1. Change the matlab directory to where you want the target files generated
  2. Create an archive folder and move the existing targets in there first.
  3. Open and edit the inputs for the target generation script in Matlab to make targets: \Dropbox\PFS_EM\SVN\MATLAB\targGenerator.m
  4. Run the script
  5. Restart MSIM

Running Targets

  1. Open the latest target script in Dropbox\PFS_EM\SVN\MSIM and edit it to have the right positioners
  2. 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.
  2. Move the appropriate CobraConfig xml (the most recent file in explorer:Libraries->xmlfiles) used by MSIM into the test directory.
  3. Change the matlab current folder to the test directory in dropbox.
  4. Execute the following command to run the target analysis script:
    analyzeTargetRun
  5. When prompted, select the appropriate xml which was used for the MSIM test. The one you moved into test directory.
  6. 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\TargetConvergenceRun the target convergence analysis on data you wish to compare. The mat files from that script are needed for this comparison.
  2. Open the convergence comparison matlab script in that folder: convCompare.m
  3. 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.
  4. Run the script.
  5. 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.
  2. Add your new test directory to the list of directories in the beginning of updateMotorMapsFromTargetData.m
  3. Uncomment all directories that contain data you want to include in the analysis.
  4. 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.
  5. Follow the Loading XML into MSIM procedure above.

BOARD ACCEPTANCE CHECK

-- JohannesGross - 12 Oct 2017

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback