In this experiment, we will measure cable length by measuring the time that signal needs to propagate down the cable and back to the source. This principle is used in time-domain reflectometry, to find and locate faults or damages on long cables.
All the documentation is available HERE
DOWNLOAD Phyton Code.