I am trying to obtain the transfer function of a system experimentally in the frequency domain. The input is a sine signal at different frequencies (chirp signal to be specific). I have acquired the input and output data signals. Now, I am having difficulties with obtaining the phase shift between output and input signals. Can anyone help me with this?