Software Overview  |  Sitemap  |  Downloads  |  Developers  |  Forums
Small_clear_logo_llc

Event Generator

The EventGenerator Device creates output values from a set of values in response to values on its input. The output values and the input values which generate them are both programmable.

The EventGenerator is programmed with a set of output values and a set of input values. Each time the EventGenerator sees an input value from its input set, it outputs a value from its output set. The first output value it generates is the first value from its output set. Each time it sees an input value which is a member of its input set, it outputs the next value from its output set. When it reaches the end of its output set, it starts again at the set's beginning. In this manner, the EventGenerator generates a programmable, repeating sequence of outputs in response to inputs in its input set.

EventGenerator Terminals

The EventGenerator Device has two terminals, an "in" terminal and an "out" terminal. The "in" terminal values are tested for membership in the input set, and the "out" terminal values come from the output set. If the EventGenerator "in" terminal gets a value that is not in its input set, it will leave the "out" terminal unchanged.

Creating an EventGenerator

EventGenerator Devices are created by running the EventGenerator Script. The EventGenerator Script takes 2 input parameters. The parameters determine what output values are generated and when.

The parameters are as follows:

  • triggers: a set of values defining which "in" terminal values will generate an output value.
  • values: a set of values defining the possible output values generated on the "out" terminal.

Examples

Running the EventGenerator Script with the parameters listed below will add an EventGenerator which generates on, off, on, off, ... etc. on its "out" terminal each time it sees an on value on its "in" terminal:

id: "event_generator"
triggers: "on"
values: "on, off"

Running the EventGenerator Script with the parameters listed below will add an EventGenerator which generates 1, 2, 3, 1, 2, ... etc. on its "out" terminal each time it sees an on or a count value on its "in" terminal:

id: "event_generator"
triggers: "on, count"
values: "1,2,3"

Catalina Computing, LLC.

Copyright © Catalina Computing, LLC. (2013-2018)




Page last updated: Wed Jan 7 16:07:02 2015 (UTC)