Title: Measuring and testing with square-wave signals