v-dauer-pulse-mit-schalter

hio/nwt-gus-hi/v-dauer-pulse-mit-schalter

Continuously outputs pulses, can be paused
v-dauer-pulse-mit-schalter
@/v-dauer-pulse-mit-schalter
Continuously outputs pulses, can be paused
AnAusboolean
Determines if pulses should be continuously emitted
v-dauer-pulse-mit-schalter
Tick
AnAus
Tickpulse
Continuous pulses
To use the node in your project you should have the hio/nwt-gus-hi library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

node {
    void evaluate(Context ctx) {
        if (getValue<input_AnAus>(ctx)) {
            emitValue<output_Tick>(ctx, 1);
            setImmediate();
        }
    }
}

Tabular tests

AnAusTick
truepulse
truepulse
truepulse
falseno-pulse
falseno-pulse
falseno-pulse
truepulse
truepulse