Appendix B: Algorithms
Appendices
AĆ14
Maximum
Amplitude (voltage) measurement. The maximum voltage. Typically the most
positive peak voltage.
Examine all Waveform[ ] samples from Start to End inclusive, and set
Max equal to the greatest magnitude Waveform[ ] value found.
Mean
The arithmetic mean for one waveform. Remember that one waveform is not
necessarily equal to one cycle. For cyclical data you may prefer to use the
cycle mean rather than the arithmetic mean.
If Start = End then return the (interpolated) value at Start.
Otherwise,
Mean=
ŕ
End
Start
Waveform(t)dt
(End * Start) SampleInterval
For details of the integration algorithm, see page AĆ17.
Minimum
Amplitude (voltage) measurement. The minimum amplitude. Typically the
most negative peak voltage.
Examine all Waveform[ ] samples from Start to End inclusive, and set Min
equal to the smallest magnitude Waveform[ ] value found.
Negative Duty Cycle
Timing measurement. The ratio of the negative pulse width to the signal
period expressed as a percentage.
NegativeWidth is defined in Negative Width, below.
If Period = 0 or undefined then return an error.
NegativeDutyCycle =
NegativeWidth
Period
100%
Negative Overshoot
Amplitude (voltage) measurement.
NegativeOvershoot =
Low * Min
Amplitude
100%
Note that this value should never be negative (unless High or Low are set
outĆofĆrange).