Home › Forums › Products › Vsig and Preset Development › C_COUNTER cannot count backwards… › Reply To: C_COUNTER cannot count backwards…
Following up on my previous message (I see it hasn't been approved yet):
Here is the version with a reset trigger, if anybody is interested.
Jean-François.
HEADM adc 2 2 adc-null adc-null CounterTest "" 4 count-obj up_trigger-obj down_trigger-obj reset_trigger-obj ;=300,-25,100,0
TRIGGER up_trigger "" UP ;=100,0,100,0
TRIGGER down_trigger trigger DOWN ;=100,125,100,0
C_MULTIPLY c_multiply down_trigger-out -1 ;=250,125,100,0
C_ADDER c_adder1 2 up_trigger-out c_multiply-out ;=375,0,100,0
TRIGGER reset_trigger "" RESET ;=100,275,100,0
C_SWITCH c_switch 2 reset_trigger-out c_adder-out 0 ;=600,150,100,0
C_ADDER c_adder 2 c_adder1-out c_switch-out ;=600,0,100,0
MONITOR count c_adder-out "current count:%.f" count ;=825,0,100,0
TAIL jfcharles2009