Appendix C: Algorithms
TVS600 & TVS600A Command Reference
C–13
Phase is determined in the following manner:
1. The first MidRefCrossing (MCross1Target) and third (MCross3) in the
source (target) waveform are found.
2. The period of the target waveform is calculated (see Period above).
3. The first MidRefCrossing (MCross1Ref) in the reference waveform crossing
in the same direction (polarity) as that found MCross1Target for the target
waveform is found.
4. The phase is determined by the following:
Phase =
MCross1Ref * MCross1Target
Period
360
If the target waveform leads the reference waveform, phase is positive; if it lags,
negative.
Amplitude (voltage) measurement. The arithmetic area over the absolute value of
one waveform or if measurement gating is on, over its gated area. Remember
that one waveform is not necessarily equal to one cycle. For cyclical data you
may prefer to use the cycle area rather than the arithmetic area.
if Start = End then return the (interpolated) value at Start.
Otherwise,
Area=
ŕ
End
Start
ABS(Waveform(t))dt
For details of the integration algorithm, see page C–17.
Amplitude (voltage) measurement. The area over the absolute value of one
waveform cycle. For non-cyclical data, you might prefer to use the Area
measurement.
If StartCycle = EndCycle then return the (interpolated) value at StartCycle.
CycleArea=
ŕ
EndCycle
StartCycle
ABS(Waveform(t))dt
For details of the integration algorithm, see page C–17.
Timing measurement. The ratio of the positive pulse width to the signal period,
expressed as a percentage.
Positive Area
Positive Cycle Area
Positive Duty Cycle