v-speicher

hio/nwt-gus-hi/v-speicher

Permanently holds a single value
v-speicher
@/v-speicher
Permanently holds a single value
Neugeneric t1
Neuer Wert zu abspeichern
Updatepulse
Speichert neuen Wert ab
v-speicher
Neu
Update
Speicher
Speichergeneric t1
Letzter gespeicherter Wert
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

#pragma XOD evaluate_on_pin disable
#pragma XOD evaluate_on_pin enable input_UPD

node {
    void evaluate(Context ctx) {
        if (!isInputDirty<input_Update>(ctx))
            return;

        emitValue<output_Speicher>(ctx, getValue<input_Neu>(ctx));
    }
}