Implemented waveform reading and conversion to real values.