tablestore trig

writes and outputs values to a table at position 'i' + 'offset' at the rising edge of 'trig'
Author: robert schirmer
License: who cares
Github: rbrt/data/tablestore trig.axo

Inlets

bool32.rising trigger write

frac32 value to write to a table

int32 writes to a table at position i + offset

Outlets

frac32 out0 + i

Attributes

objref table

Declaration
int ntrig;
Init
ntrig = 0;
Control Rate
if ((inlet_trig > 0) && !ntrig) {
  ntrig = 1;
  attr_table.array[inlet_i] = __SSAT(inlet_v, 28) >> attr_table.GAIN;
}
if (!(inlet_trig > 0))
  ntrig = 0;
outlet_v = attr_table.array[__USAT((inlet_i), attr_table.LENGTHPOW)]
           << attr_table.GAIN;

Privacy

© 2024 Zrna Research