To dynamically control the output interval of a Spotfire® Streaming Metronome operator, use a dynamic variable to provide the value of the effective tuple output interval of the application.
The Metronome's Tuple output interval property takes a constant expression, so the dynamic variable can't be used there.
Instead, use a Filter operator predicate expression downstream of the Metronome as shown in the application below:
For example, set the Metronome Tuple output interval to 1 second, and take in the new interval in the dynamic variable MyInterval as an integer number of seconds -- so even though the Metronome is always generating a tuple every one second, the app is only outputting a tuple every MyInterval seconds.
Sample project for StreamBase 7.5.5 attached below. File > Import > Existing Projects into Workspace > Select archive file . . . . . DynaMetronome.zip
Recommended Comments
There are no comments to display.