I have a previous knowledge of the system, so I've the lower and upper bound of the frequency response test.
I'm performing the response frequency test, as follow:
The input to the system is given one frequency per time, and after X cycles at the same frequency,the frequency is increased by a factor, F.
The X cycles are chosen appropriately to let the transient of the system vanish, and the increment F is chosen to have enough frequency to recreate the bode diagram.
To get the gain and the phase of the system for a given frequency, I've chosen only the portion that the system is in the steady state, and after I applied the least square method to the input and measurement (output of the system).
My doubts regarding about the implementation in the real world, because I cannot sampled the output and write in the input at the same time. Then, the input u(k) and output(k) are not synchronize.
I suppose the phase of the system in high frequency may be unreliable due to this problem. But, what is the correct sequence to minimize the undesirable effect on the test, without increasing the sampling frequency?
Do the calculation of the sine - Write at the Input of the system - Read the output
Read the output - do the calculation of the sine - Write at the Input
Second question.
I should compensate the zero-order-hold, during the phase estimation? I mean I should increase the phase by a factor ws*T/2, where ws is the sampling frequency?
Thank you in advanced.