Plot_Waveform() working

FOR loop problem corrected using:

for val in range(len(APTimes))