smxx
Full Member level 4
- Joined
- Aug 18, 2005
- Messages
- 193
- Helped
- 25
- Reputation
- 50
- Reaction score
- 13
- Trophy points
- 1,298
- Location
- iran(ahwaz)
- Activity points
- 2,546
Hi
How we can implement a transfer function of a control system "H(S)" by a micro-controller.
I now that we have to transfer from "S" domain to "Z" and then to "difference Equation",:arrow:y=a*y(n-T)+b*y(n-Kt)+...+x".
that x is the sample of input and y is state of of system and T is the sampling time.
In micro-controller programing there is many "if",interrupt,and branching that shift the sampling time and real time calculation.
How we can solve this.
thanks
How we can implement a transfer function of a control system "H(S)" by a micro-controller.
I now that we have to transfer from "S" domain to "Z" and then to "difference Equation",:arrow:y=a*y(n-T)+b*y(n-Kt)+...+x".
that x is the sample of input and y is state of of system and T is the sampling time.
In micro-controller programing there is many "if",interrupt,and branching that shift the sampling time and real time calculation.
How we can solve this.
thanks