Calibration Topic

Use the Calibration topic to configure calibration files (1D, 2D, and Galvo 2D) and Galvo Power Correction files. You can also create and merge Galvo 2D Axis calibration files. This topic and its module are in the Controller category of the Configure workspace in Automation1 Studio.

Calibration Module

Use the Calibration module to configure axis calibration files (1D, 2D, and Galvo 2D) and Galvo Power Correction files. You can see the status of each file and modify the configured calibration files on the controller.

This module contains the buttons that follow:

  • Module Menu: Shows more things you can do, such as download, upload, or remove a file.
  • Add Empty Table: Add an empty Galvo 2D Axis Calibration table.
  • Add Table From File: Add a Galvo 2D Axis Calibration table from a .cal or .csv file.

For more information about 1D, 2D, and Galvo 2D axis calibration and the correct formats for calibration tables and files, see Axis Calibration. For more information about Galvo Power Correction files, see Galvo Power Correction.

As an alternative to the Configure workspace, you can use the CalibrationLoad() function to load and activate axis calibration and Galvo Power Correction files without resetting the controller. For more information, see Calibration Functions.

Working With Galvo 2D Axis Calibration Tables

IMPORTANT: Galvo, GI4, and GL4 functionality are available only if you are using a PC-based controller.

Use the Calibration module to create, open, edit, and merge Galvo 2D Axis calibration files that you can use with an Aerotech controller. Before you can make a new calibration table, you must first configure the galvo scanner axes. Do the Machine Setup process to configure these axes. See Machine Setup for more information. Each calibration table is then applied to its related galvo scanner axes.

The Add Galvo 2D and Edit Galvo 2D screens of this module contains the buttons that follow.

Table: Galvo 2D Toolbar

Name Type Description

Configured Tables

Button

Shows the correction tables for the axes in the configured Galvo 2D Axis calibration file that you are currently adding or editing.

Save File

Button

Saves the changes that you make to an existing calibration table in the configured Galvo 2D Axis Calibration. The calibration table must be open in the Calibration module.

Merge

Button

Merges axis calibration from the configured Galvo 2D Axis Calibration file into the selected file. This button is available only if the configured Galvo 2D Axis Calibration file contains a calibration table for the same axes as those corrected by the calibration file that you are currently adding.

Menu

Buttons

The buttons that follow are part of the Menu. To find them, click the Menu () button. Then select the button that you want to use:

  • Settings: You can find more settings for the Calibration module. When the Settings dialog comes into view, make sure the Calibration tab is selected.
  • Save to File....: Saves a new file to the MDK File System, which contains the selected calibration table. You can save it as a calibration (.cal) file or a comma-separated values (.csv) file.
  • Merge File: Merges a file into the selected file. For information about how to merge two files, see Merge Calibration Files.
  • Edit File Properties: Opens a dialog that lets you edit the properties of the selected file.

Corrections Plot

Button

Expands or collapses the Corrections Plot drawer. For more information, see Corrections Plot.

If a Galvo 2D Axis Calibration file is configured, you can look at the calibration tables. (See Figure: Calibration Module - Manage Screen.) To remove a calibration table, use the Remove button.

Add Galvo 2D Axis Calibration

You can add a calibration table to the configured Galvo 2D Axis Calibration. It is not necessary to upload a calibration file before you add a new table.

Edit Galvo 2D Axis Calibration

You can also edit a calibration table in the configured Galvo 2D Axis Calibration.

For more information about Galvo 2D Axis Calibration files, see the Galvo 2D Axis Calibration section on the Axis Calibration page.

Scanner Orientation

When you make an empty Galvo 2D Axis Calibration table, the Create New Galvo 2D Axis Calibration File dialog shows a Scanner Orientation feature. The orientation you select will determine how the application shows the table in the Calibration module, based on the positive direction of each axis. The scanner orientation does not have an effect on the contents of the table. It only changes the view of the table. Make sure you select the scanner orientation that corresponds to the physical configuration of your galvo scanner.

For example, if you select the Scanner Orientation shown in the figure that follows, the application shows the table with X positive leftwards and Y positive upwards.

After you make a table, you can also use Edit File Properties to change the Scanner Orientation.

Corrections Plot

When you add or edit a Galvo 2D Axis Calibration table, the Corrections Plot drawer shows a visualization of the correction vectors. To expand or collapse the Corrections Plot drawer, click the up or down arrows on the left.

The colors of the plot identify the relative magnitudes of the corrections. The corrections with the smallest magnitudes show in blue, and the corrections with the largest magnitudes show in red. The remaining corrections show in green.

Table: Corrections Plot Viewing Options

Name Type Description

Display Correct Origins

Button

Shows or hides the correction origins on the plot.

Select Vectors

Button

Use the left and right mouse buttons to select vectors on the plot that you are looking at. When you select a vector on the plot, the application automatically selects its correction in the table. When you select a correction in the table, the application automatically selects its vector on the plot. Click the Clear Selection button to remove all the vector selections from the plot.

Zoom

Button

Zooms in on a range of vectors when you use the left mouse button to click and drag on the plot.

Pan

Button

Changes the range of vectors that you are looking at when you use the left mouse button to click and drag on the plot.

Clear Selection

Button

Removes the vector selection from the plot.

Reset Zoom

Button

Resets the zoom level on the plot.

Zoom Out

Button

Decreases the zoom level on the plot.

Zoom In

Button

Increases the zoom level on the plot.

GL4 Scanner Calibration Files

Use the Calibration module to create and save calibration files in either the .cal or .csv file format. A GL4 calibration file in the .cal format can have a maximum of 138,000 points. The number of samples per axis must be odd and range from 3 to 32,769. The positions and corrections are stored in counts, primary units, or secondary units. The field of view can be any size.

IMPORTANT: For accurate results, make sure the center position of a calibration file is always (0,0). If the center position is not aligned, you must correct it through manual alignment by manually moving the scanner position relative to the working surface. For information about how to do this, refer to your AGV product hardware manual. To download your manual from www.aerotech.com, go to the Mechanical section of Manuals & Help Files.

Create a File

Use a CVS File Format for the GL4 Calibration File

If you use a .csv file as a GL4 calibration file, the .csv file must obey these guidelines:

  • The number of rows and columns must be odd.
  • The total number of correction values cannot be more than 138,000 correction points.
  • Each row must have the same number of entries.
  • Each correction vector must be in the format that follows:
    "Channel 1 Correction Value, Channel 2 Correction Value, Channel 3 Correction Value"
  • Each subsequent entry must be separated by commas, and the entire entry must be inside double quotation marks (""). This is an example of a row from a three-column .csv file:
    "-3,1,0","-2,0,0","-3,-1,0"
  • The third channel in the .csv file is necessary, but when you import a .csv file as a .cal file, this channel is ignored.
  • The columns and rows must be evenly distributed over the field of view.

GI4 Scanner Calibration Files

Use the Calibration module to create and save calibration files in the .cal or .csv file format. A GI4 calibration file in the .cal file format is always 65 x 65 entries. If you save a file that has other dimensions, then the table automatically scales to 65 x 65 entries. The field of view is stored in counts. For a 16-bit scanner resolution, the file shows a range of -32768 to 32767. For a 20-bit scanner resolution, the file shows a range of -524288 to 524287.

IMPORTANT: For accurate results, make sure the center position of a calibration file is always (0,0). If the center position is not aligned, you must correct it through manual alignment by manually moving the scanner position relative to the working surface. For information about how to do this, refer to your AGV product hardware manual. To download your manual from www.aerotech.com, go to the Mechanical section of Manuals & Help Files.

Create a File

Use a CSV File Format for the GI4 Calibration File

If you want to use a .csv file as a GI4 calibration file, the .csv file must obey these guidelines:

  • Each row must have the same number of entries.
  • Each correction vector must be in the format that follows:
    "Channel 1 Correction Value, Channel 2 Correction Value, Channel 3 Correction Value"
  • Each subsequent entry must be separated by commas, and all of the entries must be inside double quotation marks (""). This is an example of a row from a three-column .csv file:
    "-3,1,0","-2,0,0","-3,-1,0"
  • The third channel in the .csv file is necessary, but when you import a .csv file as a .cal file, this channel is ignored.
  • The columns and rows must be evenly distributed over the field of view.
  • The field of view is determined by the scanner protocol resolution:
    • In a file with 16-bit scanner protocol resolution, the first entry corresponds to the point (-32768, -32768). The last entry corresponds to the point (32767, 32767). Each intermediate entry evenly divides this range.
    • In a file with 20-bit scanner protocol resolution, the first entry corresponds to the point (-524288, -524288). The last entry corresponds to the point (524287, 524287). Each intermediate entry evenly divides this range.
    • In the .csv file, as you read the rows from top to bottom, the entries correspond to an increase in the Axis 2 position. As you read the columns from left to right, the entries correspond to an increase in the Axis 1 position.

Interpolation

Interpolation lets you make coarse mark and measure calibrations and increase their density.

Aerotech recommends that you interpolate calibration tables to the maximum permitted size to decrease discontinuities in the calibration performance.

Change Precision in Calibration Files

To adjust the number of decimal places of precision in your calibration files, use the Precision settings. To do this, select the Menu () button and click Settings. In the Settings dialog, make sure the Calibration tab is selected.

Display Precision

Display Precision is the number of decimal places that the application shows for a correction value. You can specify a value from 0 to 15. If you decrease the display precision, the application shows the values rounded to fewer decimal places. Display precision only changes how the application shows the value. It does not have an effect on the precision of the values in your calibration file.

Output Precision

Output Precision is the number of decimal places that the application applies to a correction value when you save the calibration file.

To get access to edit the Output Precision box, you must enable the Use output precision when saving files toggle. When you save the calibration file, correction values that have more decimal places than the specified output precision value are rounded. Correction values with fewer decimal places than the specified value are zero-padded.

If the Use output precision when saving files toggle is off, when you save the calibration file, the correction values are written to the file with as many or as few decimal places as are necessary for the full correction value.

IMPORTANT: If you use fixed precision when you save a calibration file, the correction values can lose precision. You will overwrite the original full-precision correction values with the rounded correction values.

Merge Calibration Files

You can merge two calibration files to get one calibration file with the corrections from both files. Typically, you merge files to improve calibration by merging measured corrections with the corrections that are active on the controller.

You can also use the Merge File... menu item to merge a calibration file with a .cal or .csv file in the MDK File System.

The corrections from the file that you selected are added to the corrections of the file that is currently open.

Rules for Merging Files

When you merge files, you must obey the rules that follow:

  • You cannot merge a file with itself.
  • Corrections in the open file that are out of the field of view of the file you selected to merge do not change.
  • Corrections in the open file that do not align with corrections in the file you selected to merge are interpolated.
  • These rules apply to existing GL4 calibration files:
    • The file being merged cannot have a samples per axis dimension larger than 45,999.
    • The units of both files must be the same.
  • These rules apply to existing GI4 calibration files:
    • The file being merged must have dimensions of 65 x 65 entries.
    • The file being merged must have corrections in counts.
    • The file being merged must use the same scanner protocol resolution.