Encoder Counts per Millimetre: The Line-Scan Trigger Record Before the Camera Is Ordered
A line-scan camera does not decide when to take a line; the encoder does. The number that matters is not the encoder’s pulses per...
read more…
Synchronizing four cameras without a hardware trigger is possible, but the accuracy claim depends on what “synchronized” means. If the inspection needs four exposures at the same instant, a software trigger over a network may not be enough. If the inspection only needs each image tagged with a common time, PTP and timestamp alignment can work. The difference is exposure alignment versus timestamp alignment. The inspection procedure should state which one it needs, then measure the error. A sync method that is not measured is a hope, not a specification.
Four cameras can be synchronized in three different senses. Clock sync means their internal clocks agree. Trigger sync means they receive the capture command at the same time. Exposure sync means the sensor actually integrates light over the same interval. PTP can help with the first, a software trigger can approximate the second, and only a hardware trigger or a tightly scheduled action command can approach the third.
Line speed turns a time error into a distance error. At 1 m/s, 1 ms of sync error becomes 1 mm of part movement. At 200 mm/s, the same error becomes 0.2 mm. The allowed displacement comes from the inspection tolerance, not from the camera specification. Write the speed and the allowed displacement before choosing the sync method; the time budget follows from those two numbers.
The inspection requirement decides which sense matters. A multi-view 3D reconstruction needs exposure sync because the part moves between views. A defect log that records four views of a slow-moving part may only need timestamp sync. A high-speed line with motion blur needs exposure sync and a short exposure. The eight-camera mount decision covers the mechanical side; the sync requirement covers the timing.
Write the requirement in time units. “Synchronized” is not a number. “Exposure start within 100 µs across four cameras” is a number that can be tested.
IEEE 1588 PTP synchronizes clocks over Ethernet. If the cameras support PTP and scheduled action commands, the host can tell each camera to capture at a specific time. The clocks agree, and the capture command is scheduled rather than sent at the last moment. The result can be sub-microsecond clock alignment, but the exposure alignment depends on the camera’s implementation and the network.
PTP needs a network that supports it. A switch that does not pass PTP messages, a congested link or a camera that does not implement scheduled action can break the timing. The Basler PTP documentation explains the camera-side requirements; the network design must match. A PTP logo on the camera is not enough if the switch is not transparent.
The grandmaster clock is part of the design. A host that is busy with image processing may not be the best grandmaster. A dedicated PTP grandmaster or a switch with boundary-clock support can isolate the timing from the host load. The time sync and the image path should not compete for the same resources.
Test the PTP sync with a flash or a moving target that appears in all four views. A clock offset that looks small in the logs can still produce a visible exposure offset. The test should measure the image, not only the timestamp.

A software trigger sends a command from the host to each camera. The command travels through the operating system, the network stack, the camera driver and the camera firmware. Each step adds latency, and the latency varies with the host load. Four commands sent in a loop may arrive at four different times, even when the host sends them back-to-back.
A common software trigger can be improved by sending the command to all cameras at once, using a broadcast or a scheduled action. It can be improved further by timestamping the command and having the camera schedule the exposure. A raw software trigger without scheduling is the least accurate option. The FA lens range is not the timing solution; the host and camera firmware are.
Measure the software trigger latency at the production frame rate. A latency measured on an idle bench may be much lower than the latency on a busy line. The variation, not only the average, decides whether the sync is usable.
The host operating system adds jitter. A general-purpose OS may defer the trigger thread while it services a network interrupt or a disk write. A real-time kernel or a dedicated trigger device can reduce the jitter, but it adds cost and complexity. If the sync budget is tight, the software trigger may not be the right tool.
If the cameras free-run and timestamp each frame, the host can align the frames after capture. The method works when the part moves slowly enough that a small time offset does not change the view. It does not work when the part moves fast or when the inspection needs a simultaneous exposure.
The timestamp must come from the camera, not the host. A host timestamp records when the image arrived, not when the exposure happened. A camera timestamp with a synchronized clock is more useful. The machine vision lens selection guide covers the optical side; the timestamp covers the timing.
Feature-based alignment needs a visible feature in every view. A trigger mark, a corner or a printed pattern can provide the reference. If the part is featureless, the method has nothing to align. The feature must be present at the production speed and not be blurred by motion. A feature that is visible on a stationary part may disappear at speed.
Post-hoc alignment can also use a feature in the image, such as a trigger mark or a encoder edge. The method is tolerant of clock offset but adds processing and may not work on a featureless part.
Build a sync budget: clock offset, trigger latency, exposure start jitter, network jitter and the camera readout. The budget should be smaller than the allowed image displacement at the production speed. If the part moves 1 m/s and the allowed displacement is 0.1 mm, the sync error must be below 100 µs. That is a tight budget for a software trigger.
The camera readout is part of the budget. A rolling-shutter sensor reads rows at different times; a global-shutter sensor exposes all pixels at once. The readout time can be larger than the trigger jitter. Check the sensor type before blaming the network. A global-shutter camera with a software trigger may still be more synchronized than a rolling-shutter camera with a hardware trigger.
Measure the error with a moving target and a common event. A flashing LED, a trigger mark or a encoder edge can show the offset in all four images. Repeat at the production speed and with the production network load. Record the method, the measured error and the acceptance limit.
The test target should be visible in every camera and move at the production speed. A static target cannot show an exposure offset. A target that is too slow cannot stress the trigger path. Use the same frame rate, exposure and network traffic as production; a clean bench test is not evidence for a busy line.
| Method | What it syncs | Typical limitation |
|---|---|---|
| Hardware trigger | Exposure start | Needs a trigger line |
| PTP + scheduled action | Clock and capture time | Network and camera support |
| Software trigger | Command time | Variable latency |
| Free-run + timestamp | Post-hoc time | Not simultaneous exposure |
Building a four-camera cell without a trigger line? Define the allowed displacement and the sync budget first. Compare the FA lens options and match the optics to the timing.
No. PTP aligns clocks. Exposure alignment depends on the camera’s scheduled action and the network. Test the image, not only the clock log.
Only if the measured latency and jitter are inside the allowed displacement. A raw software trigger is the least accurate option.
Yes, for slow-moving parts with camera timestamps. It does not create a simultaneous exposure.
The method, the measured sync error, the production speed and the acceptance limit. A sync claim without a measurement is not evidence.
Before the cell is designed, write the allowed displacement and the sync budget. Those two numbers decide whether a hardware trigger is optional or mandatory. Treat the sync method as part of the optical design, not only the network design, and test it with the real production target.