
Totalize Positive or Negative Edge State Changes
Use [SENSe:]FUNCtion:TOTalize (@<ch_list>) to configure channels to totalize. Totalize means to simply count state transitions (either positive going, or negative going). Figure 9 A shows totalizing transitions between each algorithm execution. Figure 9 B shows totalizing all transitions starting from the time the module last received an INITiate command.
Use [SENSe:]TOTalize:RESet:MODe INIT TRIG,(@<ch_list>) to configure the totalize channel to either reset its count once each trigger event, or only when the module is INITiated. Use INP:POL INV to sense negative edges. The count capacity is 16,777,215
To totalize state changes at channel 44 starting from INITiate time
*RST
SENS:TOT:RES:MOD INIT,(@144) SENS:FUNC:TOT (@144) ALG:DEF ’ALG1’,’writecvt(I144,44);’
INIT
. . .
SENS:DATA:CVT? (@44)
ch 44 totalize reset at INIT ch 44 is totalize input
alg sends count to CVT
get totalize count from cvt