sys::Obj sys::Virtual sys::Component logic::DemuxI2B4
public class DemuxI2B4
[niagaraIcon="module://icons/x16/control/util/switch.png"]
Demuxes an integer count input into 4 boolean outputs. By setting "startsAt" appropriately, N objects can demux to N*4 outputs (ie, you can create a 4x, 8x, 16x, etc demux) if in == startsAt + 0, out1 is true, else false if in == startsAt + 1, out2 is true, else false if in == startsAt + 2, out3 is true, else false if in == startsAt + 3, out4 is true, else false
public property int in
input
public property bool out1 [readonly]
if in == startsAt + 0, out1 is true, else false
public property bool out2 [readonly]
if in == startsAt + 1, out2 is true, else false
public property bool out3 [readonly]
if in == startsAt + 2, out3 is true, else false
public property bool out4 [readonly]
if in == startsAt + 3, out4 is true, else false
public property int startsAt [config]
starting value for in
public virtual override void execute()
Execute is called once every scan.