Modelcore
Sampled-data system
Also called sampled-data control system, computer-controlled system.
A continuous plant controlled by a digital controller through a sampler and a hold, so the loop mixes continuous and discrete time.
A sampled-data system is a feedback loop in which a physical plant that evolves in continuous time is controlled by a computer that works in discrete time. A sampler (an analog-to-digital converter) reads the plant output every seconds, the controller computes a new input from the samples, and a hold (a digital-to-analog converter) keeps that input constant until the next update. Almost every modern controller is of this kind. At the sampling instants the loop is exactly a discrete-time linear system, given by zero-order hold discretization, so the theory of discrete systems applies to the samples. Between the samples the plant runs open loop, and the analysis must say what happens there as well.
The machine
Parts. With sampling period and instants :
- Plant, in continuous time: , , with , , . A nonlinear plant works the same way, without the closed forms.
- Sampler: . In practice it is preceded by an analog anti-aliasing filter.
- Digital controller, a discrete-time system: , , or the static case when the state is measured.
- Hold, the zero-order hold: for .
Exact model at the samples (theorem). Over one period the input is constant, so the variation of constants formula gives
exactly, with no approximation (Åström and Wittenmark, Section 2.3). The closed loop at the samples is the discrete system with state and matrix
Between the samples. For ,
The state between samples is a fixed linear function of and , so it is bounded by a constant times .
Computation delay. If the new input is applied seconds after the sample, with , the input over one period has two constant pieces, and then , and the model becomes
The extra state makes the order .
Example: a stable loop that sampling makes unstable. The plant with the continuous feedback , , is stable for every . With a sampler and a hold, , , and . The samples converge if and only if . At the state reaches zero in one step, and for the loop diverges, oscillating in sign.
What it counts
At the samples, the model predicts the state and the output sequence exactly, and it gives the pulse transfer function (see z-transform). Between the samples, it predicts the continuous trajectory by the formula above. The two views differ in what they can see:
- Intersample ripple. A discrete design can make the samples of the output settle while the continuous output still moves between the samples. It happens when the controller makes the input sequence oscillate, for example a design that cancels a sampled zero near : the input then alternates in sign at each step, and the continuous output ripples between samples that look constant.
- Hidden oscillations. For the oscillator with , sampled with , . A free oscillation has every sample equal to 0, so it is invisible to the controller.
- Aliasing. A signal at frequency and one at give the same samples. A disturbance above the Nyquist frequency appears in the samples as a slow disturbance. See aliasing and the sampling theorem.
Performance measures that depend on the continuous signals, such as the or norm from a continuous disturbance to a continuous error, need a model that keeps the intersample behaviour. Lifting does this: it treats the piece of each continuous signal on as one element of a function space, which gives a time-invariant discrete system with infinite-dimensional input and output spaces (Chen and Francis 1995).
Relation to other models
- Discrete-time LTI model. The samples of a sampled-data loop with an LTI plant form a discrete LTI system. This is the basis of direct digital design: discretize the plant with zero-order hold discretization and design on , for example a deadbeat control law.
- Emulation. The other route designs a continuous controller and discretizes it, by the bilinear transform or other rules (see controller discretization). It is an approximation, and its quality depends on .
- Periodic time-varying system. In continuous time, the loop is a linear time-varying system with period : shifting the time by does not change it, but shifting by less does. So it has no ordinary transfer function in continuous time; a sinusoid in gives a sinusoid plus its aliases out.
- Event-triggered and networked control. If the controller updates only when an event condition holds, instead of every seconds, the result is event-triggered control. Variable delays from a network give a time-varying and .
- Hybrid systems. A sampled-data loop is a simple hybrid system: continuous flow between samples and a discrete jump of the controller state at each sample.
Known results in the model
-
Stability (theorem). For an LTI plant, a zero-order hold and a discrete LTI controller, the continuous-time closed loop is exponentially stable if and only if is a Schur matrix, with all eigenvalues inside the unit circle. The intersample bound above gives the "if" part; the samples of a stable continuous trajectory give the "only if" part (Chen and Francis 1995).
-
Fast sampling (theorem). and . If a continuous LTI controller stabilizes the plant, its emulation by the forward Euler, backward Euler or Tustin rule stabilizes the sampled-data loop for every small enough , by continuity of eigenvalues. The theorem gives no value of . For the plant above, the bound is .
-
Controllability after sampling (theorem). If is controllable, and no two eigenvalues of with the same real part have imaginary parts that differ by a nonzero multiple of , then is controllable (Kalman, Ho and Narendra 1963; Chen 1999, Section 6.7). Observability is dual. The condition holds for almost every .
-
Pathological sampling (example). For the oscillator above with , the eigenvalues are , which differ by . With ,
so has rank 1. The continuous pair is controllable, but the sampled pair is not: the samples can never move the second state component.
-
Sampling zeros (theorem). The sampled system has, in general, zeros even when the continuous plant has fewer. As , the zeros that come from continuous zeros are close to , and so tend to 1, and the extra ones go to fixed limits that depend only on the relative degree . For , some of these limits are outside the unit circle, so the sampled system is not minimum phase for small even when the continuous plant is (Åström, Hagander and Sternby 1984). For with a zero-order hold, the zeros are and for every . A controller that cancels the zero at is unstable, and one that cancels a zero near gives the ripple described above.
-
Choice of the sampling period (rule of thumb). Fast sampling makes the loop close to its continuous design but costs computation, and makes the sampled model more sensitive to numerical errors, since then has all its eigenvalues near 1. Slow sampling loses phase margin through the hold, which acts approximately as a delay of , and risks aliasing. Practical rules relate to the rise time or the crossover frequency of the closed loop; Åström and Wittenmark (Section 2.9) discuss them. They are rules of thumb, not theorems.
References
- Karl J. Åström and Björn Wittenmark, Computer-Controlled Systems, Theory and Design, third edition, Prentice Hall, 1997 (Dover reprint, 2011), Section 2.3, Sampling a Continuous-Time State-Space System; Section 2.8, Poles and Zeros; Section 2.9, Selection of Sampling Rate; Section 3.4, Controllability, Reachability, Observability, and Detectability; Chapter 7, Section 7.3, Sampling and Reconstruction, and Section 7.4, Aliasing or Frequency Folding
- Tongwen Chen and Bruce A. Francis, Optimal Sampled-Data Control Systems, Springer, 1995, the treatment of the continuous-time behaviour of sampled-data systems, their stability, and the lifting technique for H2 and H-infinity design
- R. E. Kalman, Y. C. Ho and K. S. Narendra, Controllability of linear dynamical systems, Contributions to Differential Equations 1, 189-213, 1963, the section on the loss of controllability and observability due to sampling
- Chi-Tsong Chen, Linear System Theory and Design, third edition, Oxford University Press, 1999, Section 6.7, Controllability After Sampling
- Karl J. Åström, Per Hagander and Jan Sternby, Zeros of sampled systems, Automatica 20(1), 31-38, 1984, the limits of the zeros of the sampled system as h goes to 0, and the unstable sampling zeros for relative degree above 2
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag V0E4FG Edit this page History Report an error Markdown