March 17, 2006, 10:30 am
Could any one give a hint to use C language to implement a plant first
order hold? Thanks.
Re: implement first order hold
DEDE wrote:
What are you trying to Do?!?
A first-order hold is most useful to model the action of a DAC at the
interface of a discrete-time digital control system with the outside
world. In fact, I think of it as a mathematical construct which takes
impulses as input and outputs rectangular pulses that just happen to be
at the system sampling rate -- as such it is doomed to forever be a
mathematical construct, because impulses do not exist in reality.
The closest thing that I can think of to a first-order hold would be a
sample-and-hold block, whose behavior in system-modeling language would
be a sampler followed by a hold. A sample-and-hold would be an easy
thing to implement in C -- maintain a state variable for it, and only
update the state on the samples that you're supposed to remember.
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
Posting from Google? See http://cfaj.freeshell.org/google/
Site Timeline
- » Suggestions for flexible / rugged data cable?
- — Next thread in » Industrial Control Group
-

- » Honeywell PKS configuration Manuals
- — Previous thread in » Industrial Control Group
-

- » Measurement validation for process signals
- — Newest thread in » Industrial Control Group
-

- » A new attraction : "Velo-rail"
- — The site's Newest Thread. Posted in » Model railroading in the UK
-

- » DRMM 2012: Kein 35Mhz-B-Band
- — The site's Last Updated Thread. Posted in » RC and scale modeling (German)
-


Subject


