Jump to content
  • Dynamically control the output interval of a Spotfire® Streaming Metronome operator


    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:

    image2016-1-14_11_1_24.png.8e68d94b83e56a67da689beeabcf2659.png

     

    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

    dynametronome.zip


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...