Find Transfer Function from Experimental Data

Click For Summary
To find a transfer function from experimental input and output data, Fourier transforms can be utilized by performing FFT on both datasets and dividing the output FFT by the input FFT. However, this method may not yield accurate predictions without adjustments, such as applying gain and offset. Key concepts that may be overlooked include the need to calculate a new output for a new input using the inverse FFT of the product of the new input FFT and the transfer function. Open-source tools like Octave can facilitate this process with built-in system identification functions. Properly implementing these steps can enhance the accuracy of the transfer function derived from experimental data.
arcticMouse
Messages
1
Reaction score
0
I would like to find a useful function to predict the output based on the input. I'm trying to figure out how to get the transfer function given actual input and output data.

What I've tried is getting a transfer function using Fourier transforms. I'm attemping to do a fft on both the input and the output and dividing the output over the input and using fft of the absolute value to get the transfer function. The problem is it doesn't allow me to predict the output very well, though it does give me something that looks like a sum of exponential which is what I expect. Do I need to subtract an offset or apply gain and an offset? (y = mx + b sort of thing). I think I'm missing some key concept that I don't know how to describe.

Here's a simple sketch of what I'm trying to do.

http://i.imgur.com/4eo1x.png

Here's some pseudo code of what I've tried. I don't have MATLAB or anything fancy to do this for me, I'm trying to write it for an arduino project.

input_fft = fft(input);
output_fft = fft(output);
tf_fd = output_fft / input_fft;
tf = fft(abs(tf_fd));

Just a point in the right direction would be great! Maybe I'm going about this all wrong.
 
Engineering news on Phys.org
You can download opensource Octave. It has system identification functions, arx for example.
 
Welcome to PF, arcticMouse! :smile:

Are you aware that you should calculate a newoutput for some newinput with:
newoutput = fftinverse(fft(newinput) * tf_fd)
 
Last edited:
I am trying to understand how transferring electric from the powerplant to my house is more effective using high voltage. The suggested explanation that the current is equal to the power supply divided by the voltage, and hence higher voltage leads to lower current and as a result to a lower power loss on the conductives is very confusing me. I know that the current is determined by the voltage and the resistance, and not by a power capability - which defines a limit to the allowable...

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
9K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K