IBM TJ Watson Research

IBMTimeSensorChain

IBMTimeSensorChain.mp4

Description

A chain of TimeSensors with loop set to false. One TimeSensor's cycleTime output is connected to the next one's startTime input via a Valuator which adds an offset corresponding the cycleInterval of the first TimeSensor. We want the second TimeSensor to start when the first one ends, but since there is no convenient output at the end of the cycle we offset the cycleTime output, which occurs at the beginning, so that the outSFTime output from the valuator would be that of when it will end.

To show the result the isActive of each TimeSensor is connected to the filled field of a Material2D for one of the circles. The TimeSensors are connected such that the filled circles will 'follow' the gray path, starting at the top left, moving off to the right before finally going along the bottom and back up the left side. The TimeSensors are set for decreasing cycleInterval values; the cycleInterval in the first TimeSensor is 1.0s and is decreased every other circle so that the final pair are filled by TimeSensors with only 0.3s cycleIntervals. The last TimeSensor is routed back to the first one so the whole set form a loop which will repeat indefinitely. The sequence as a whole commences at t=2.0s as the very first TimeSensor is initially set with a startTime of 2.0s.

Screenshot

Snapshot taken during the sequence



Back to main index