Skip to the content.

This simulator processes real calibration measurement data from your Maslow CNC machine to compute optimal anchor point positions. Unlike the machine simulator (index.html) which generates synthetic data, this tool works with actual measurements collected from your machine.

Purpose

This tool is designed for:

Quick Start

  1. Open data-parser.html in your web browser
  2. Copy calibration measurement data from your machine
  3. Paste it into the data input field
  4. Click “Parse and Validate”
  5. Adjust initial anchor position guesses if needed
  6. Click “Compute Anchor Positions”
  7. Review the optimized positions and fitness score

Data Format

The tool accepts measurement data in multiple formats:

Format 1: Plain comma-separated objects

{tl:2051.76, tr:2053.05, bl:1942.31, br:1952.85},{tl:2154.52, tr:1955.15, bl:2132.14, br:1584.18}

Format 2: Array notation

[{tl:2051.76, tr:2053.05, bl:1942.31, br:1952.85},{tl:2154.52, tr:1955.15, bl:2132.14, br:1584.18}]

Format 3: CLBM format (from machine output)

CLBM:[{bl:2960.58, br:3150.08, tr:3067.72, tl:3049.85},{bl:3066.96, br:3042.59, tr:2957.53, tl:3158.38},]

Each measurement object contains:

The parser automatically handles:

How to Get Measurement Data

Measurement data comes from the calibration process on your Maslow machine. The data is typically logged during calibration and can be found in:

Using the Tool

1. Paste Measurement Data

Copy your calibration measurements and paste them into the large text area. The format should be comma-separated measurement objects as shown above.

2. Parse and Validate

Click “Parse and Validate” to check that your data is correctly formatted. The tool will:

3. Set Initial Anchor Positions

Provide starting estimates for where the anchor points are located:

These don’t need to be perfect - the algorithm will refine them. However, better initial guesses lead to faster convergence.

4. Compute

Click “Compute Anchor Positions” to run the optimization algorithm. The tool will:

5. Interpret Results

The results show:

Code Sharing

This tool uses the exact same calibration computation code as the ESP3D-WEBUI. The shared library is located at ../../ESP3D-WEBUI/www/js/calibration-computation.js, ensuring identical behavior between:

The data parser now includes the retry logic with randomized starting positions, matching the real machine behavior:

Visualization

When the tool runs rectangular optimization to find better starting positions (triggered when initial fitness is low or the frame is nearly square), it displays a 2D visualization showing:

The visualization updates in real-time as the search progresses, providing visual feedback on how the algorithm explores the solution space. This helps understand:

Differences from Machine Simulator

Feature Data Parser Machine Simulator
Data Source Real measurements from machine Simulated measurements
Purpose Analyze actual calibration data Test algorithm with synthetic data
Use Case Troubleshooting, data analysis Algorithm development, testing
Input Paste measurement data Configure simulation parameters

Example Workflow

  1. Collect Data: Run calibration on your machine and save the measurement output
  2. Parse: Paste the data into this tool and validate it
  3. Compute: Process the measurements to find optimal anchor positions
  4. Compare: Compare results with what your machine computed
  5. Troubleshoot: If results differ, investigate data quality or initial guesses

Tips

Technical Details

The computation uses the “magnetically attracted lines” algorithm:

  1. Draw lines from each anchor with measured lengths
  2. Adjust line angles to make endpoints converge
  3. Move anchors to minimize endpoint distances
  4. Iterate until convergence

The algorithm uses:

Support

For issues or questions: