This processor can be used to measure the time between two boolean sensors. For example on a conveyor, where one sensor is placed on the left and one senor placed on the right. Parts are transported on the conveyor and the sensors are boolean sensors detecting those parts. The time is measured between the two sensors as well as the amount of complete transportation's is counted.
The measurement is initialized once the left sensor is true and stopped once the right sensor is true. There can also be multiple parts on the conveyor as long as the individual parts do not change.
Requires two boolean fields in the datastream.
The left field starts the timer when value is true.
The right field stops the timer and emits the event when its value is true.
No furhter configuration is required.
Appends two fields to the input event.
The timer field is a numeric value representing the time between the two sensors. Runtime name: measured_time
The counter indicated how many events where emitted by this component. Runtime name: counter