I faced a very simple yet problematic phenomena when trying to find the bode plot of an unknown system with oscilloscope.
as we know we can simply inject a signal to a system by a signal generator and swipe the frequency then measure the input and output of the system and then by comparing the gain and phase shift plot the bode diagram.
here is the problem. when you have an unknown system with no prior knowledge. how can you find that the phase shift is positive or negative. as it can be seen in the picture the phase shift both can be considered +20 and -160