I forgot to say the pseudocode requeriment is for the virtual oscilloscope experiment. Thanks again.