Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Obtain transfer function of a system and simulate it with a PID controller

  1. Oct 20, 2009 #1
    I want to tune my PID controller. For this I could either do this on-line using the controller on the system, or I could try to obtain the systems' transfer function and then simulate it off-line together with the PID controller to tune it to the desired behavior. I suspect the system is non-linear but I'm not sure.

    Do you have any experience with off-line simulations of a system control loop? Is it possible to obtain a systems' transfer function?

    Here is a first approach to the problem:
  2. jcsd
  3. Oct 20, 2009 #2


    User Avatar
    Science Advisor
    Gold Member

    I can't image why you would NOT want to tune your controller on the system it's going to control. If you know the system well enough to produce some sort of input signal that simulates it, why not just enter the parameter data into the controller then run your system and see how well you really knew it.
  4. Oct 20, 2009 #3
    I would use simulink in matlab.
  5. Feb 21, 2010 #4
    can anyone tell me how can i generate a sine or cos wave signal with increasing frequency as the simulation time proceeds
  6. Feb 21, 2010 #5


    User Avatar
    Science Advisor
    Gold Member

    You mean a chirp?
    Using what software? In Matlab you would -not surprisingly- use the "chirp" command...
  7. Feb 22, 2010 #6
    @f95toli: thanx for ur reply
    using simulink!
    i know we can use a chirp for cosine ,but how can i change the amplitude of the wave
    and i also need to genrate a similar sine wave with increasing freq and constant amplitude
    can you help me out
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook