Assuming that the waveform is ideally a square wave, then the only thing I can think of is a Haar Wavelet filter. This can be done with the Signal Processing Toolkit. You probably don't have this, but if you do, let me know and I post my quick filter.
Attached is the results using the data you provided.
Randall Pursley