VXI VT1538A user manual Totalize Positive or Negative Edge State Changes

Models: VT1538A

1 84
Download 84 pages 24.07 Kb
Page 19
Image 19
Totalize Positive or Negative Edge State Changes

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 (24-bits, unsigned)

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

Figure 9. Input Totalize Count

Agilent E1538A Enhanced Frequency/Totalize/PWM SCP 15

Page 19
Image 19
VXI VT1538A user manual Totalize Positive or Negative Edge State Changes