Stroke or way measurement is often found on machines, transport tools or cranes.
The selection of the sensor depends on the measurement range. Very short ways (< 30 mm) may be measured by laser scanners,
short ways (30 mm < x < 1000 mm) by triangulation sensors.
Some applications up to 4 m need the high measurement speed of long range triangulation sensors. For larger distances (> 4 m) you may use time-of-flight systems.
In case you don't find the application sketch you need, please ask us !