Im trying to build a IR remote control to switch of televisions. If you don't know already, the codes are pulse width modulated on/off times using a 38khz carrier wave. I've got the hardware and know the method, but Im having issues getting the on/off times from my remote. Im using a sound card oscilloscope, which is a probe connceted to the signal output by my IR receiver. I'm using MATLAB to get the on/off times. The problem is that it doesn't work. As you know, sound cards have a sampling frequency of 44.1Khz and most IR remote controls operate around 38Khz. So obviously I will experience some aliasing. Is there any way to recover the correct on/off times ?