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

AI Thread Summary
To tune a PID controller, one can either use online tuning directly on the system or obtain the system's transfer function for offline simulation. The discussion highlights the importance of understanding the system's behavior, especially if it is non-linear. Users express a preference for using MATLAB's Simulink for simulations and seek assistance in generating specific waveforms, such as sine and cosine waves with varying frequencies and amplitudes. The conversation also touches on the practicality of tuning the controller based on real system responses. Overall, the focus is on effectively simulating and tuning control systems using available software tools.
cristian1500
Messages
8
Reaction score
0
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:
http://www.facstaff.bucknell.edu/mastascu/econtrolhtml/Model/Model5.html
 
Engineering news on Phys.org
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.
 
I would use simulink in matlab.
 
can anyone tell me how can i generate a sine or cos wave signal with increasing frequency as the simulation time proceeds
 
You mean a chirp?
Using what software? In Matlab you would -not surprisingly- use the "chirp" command...
 
@f95toli: thanks 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
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Back
Top