Appendix A 483
Additional Lab Exercises
General Programming Techniques
n TotSize: This object simply gives you the number of elements in an
array. Since this array contains the number of failures, dividing this by
the total number of elements in the original waveform, 256, and
multiplying by 100 gives us the percentage of failures.
n Formula:
A/256*100 is the formula used to compute the percentage of
failures, since the
Function Generator and Noise Generator are
set to put out 256 points.