how to discretize a continuous PID controller.?? in simulink... without using discrete PID block..??

a. how to discretize continuous PID controller without using Discrete PID block..? in simulink.
b. how to sample error signal in simulink?
Any help will be appreciated..
ThanKs

Answers (1)

You can discretize your PID controller by adding a zoh block, and set its sample time as small as possible.
Can you explain what do you want to do?

2 Comments

infact i designed a continuous pid controller for the plant with transfer function 100/(s.^2+s+100) Now i want to discretize it so that i can implement the position form and velocity form of PID.
Secondly, you referred zoh block.. it is connected at the output of the discrete PID. what about input?? which block we have to put at input terminal of PID to take samples of the error signal.?
in literature is is called sample/ hold and ADC converter. I was wondering how to implement it??
In real control you use DAC and ADC. The input of your PID should pass through a quantizer(simulate your ADC) and its output through a zoh block (simulate your DAC with hold element)

Sign in to comment.

Asked:

on 7 Mar 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!