Ok, but why you can not just read all the waveform at once and then supply values sequentally at a given rate (using delays, or, better, wait for multiple function)? Or, If the waveform is huge and you don't want to load it at once you can read your text file line by line, converting each line to waveform data and, as earlier, suppling this data to the graph at the given rate? (But beware, that in this case you will be much more dependent of your OS reading file speed, and, may be, not able to achieve given rate).