Zum Hauptinhalt springen

Obtaining Measurements

Use get acq to request a spot-weld measurement. Its payload identifies the inspection and can override measurement settings. The response type is measurement-info.

1. Identify the inspection​

There is no separate request to create an inspection. Instead, send the first get acq with a new RFC 4122 UUID as inspection-uid to create the new inspection.

When storage is enabled, that acquisition is saved as the first measurement in the inspection group. Reuse the same UID for later measurements in that inspection. Include the part and weld location:

{
"get": "acq",
"payload": {
"inspection-uid": "b628394a-4723-430a-822b-eaff99d477c4",
"part-id": "LHS Driver Door",
"location-id": "Weld 1"
}
}

part-id identifies the part. location-id identifies the weld. Optionally add inspection-customer-id for a serial number or other customer identifier.

2. Add overrides when needed​

Add materials, stack, or algorithm to set those values for this acquisition. These request settings take precedence over matching part and location template settings and the global acquisition configuration:

{
"get": "acq",
"payload": {
"inspection-uid": "b628394a-4723-430a-822b-eaff99d477c4",
"part-id": "LHS Driver Door",
"location-id": "Weld 1",
"materials": { "sample": { "name": "steel" } },
"stack": { "front": 0.8, "middle": 0, "back": 1.2 },
"algorithm": { "shape": "circle", "size": { "bias": 0.1 } }
}
}

When templates are configured, part-id and location-id identify presets. See Template for setting precedence.

3. Read the result​

A successful acquisition returns measurement-info. This shortened example shows common fields. Values vary by measurement, and image is optional.

{
"type": "measurement-info",
"payload": {
"uid": "b628394a-4723-430a-822b-eaff99d477c4",
"acq-timestamp": "2023-10-30T13:47:41.455-05:00",
"stats": { "average-amp": 0.8, "average-frequency": 5000000 },
"plane": { "quality": 1, "tilt-horz": 0.1, "tilt-vert": 0.1 },
"indentation": {
"shape": "pothole", "quality": 1,
"cx": 0.25, "cy": -0.1, "size": 3.5, "depth": 0.05
},
"stack": { "front-plate": 0.85, "total-stack": 1.6 },
"nugget": { "shape": "circle", "quality": 1, "size": 4.0, "cx": 0.2, "cy": -0.5 },
"morphology": { "fill-factor": 0.9, "fusion-factor": 0.8 }
}
}

Save the uid to retrieve this measurement later when storage is enabled. See Managing Measurement History and Measurement Info.