In the previous blog we introduced the various types of signals present in a digital control system and highlighted the pros and cons. In this blog we take a a closer look at the digital control system.
A digital control system, can only cope with digital signals. That is because it is inherently discrete in time and space. This is caused by the processors clock rate and due to the finite word length of a digital system. For instance, a 32 [bit] computer which runs at 4 [GHz] has a time resolution of 0.25 [ns] and the value of an unsigned integer can only range from 0 to 232 − 1.
Figure 1 shows the digital control system in its most elementary form. Herein is the sampler. The sampler converts the analog output signal of the plant at time to a digital measurement signal at discrete-time . As mentioned in the previous blog, the digital signal is obtained by sampling and quantization of the analog signal. In final, denotes the recronstructor, also known as a digital-analog convertor (DAC), it converts the digital control signal provided by the controller to an analog control signal .
Figure 2 shows that the sampler exists out of two devices namely; i) a sample and hold (SH) device and ii) a analog-digtal convertor (ADC).
The SH device knows two different states. The first state is called the track state at which the analog input signal is tracked by the SH device. The track state is also refereed to as sample state. However because of the ambiguous meaning of the word sample we will use the track, which is also commonly used in literature. The second state is called the hold state at which the analog input signal is being kept constant for a short period of time. The hold state is activated when the hold command is given. During the hold state the ADC is able to process and digitize the signal. The hold command can be triggered by any logic device. While there are many more aspects and subtleties to be considered with a SH device this gives a summarized overview of its functionality.
Various different strategies exists at what time instance the hold command is triggered. These are called sampling strategies.
- Periodic sampling; the sampling instances are equally spaced, that is to say with and , given in [s], being the sampling period. See also Figure 2(a). The sampling period is often also denoted as the sampling rate or sampling frequency , given in [Hz]. It is related to the sampling period by .
- Multi-order sampling; a pattern of sampling instances are repeated periodically, as a result . See Figure 2(b).
- Event-based sampling; the sampling instances are generated based on a event in the system. For instance, when a certain measurement threshold has been crossed. See Figure 2(c) in which the signal is sampled at every value.
- Random sampling; the sampling time instances are chosen at random, see Figure 2(d).
Periodic sampling is the most common in industry. That is because of several reason; i) most deterministic behavior, ii) extensively been researched, iii) easiest to model and iv) easiest to obtain key performance indicators, for instance, in time- and frequency domain. Finally, proofing stability for the other sampling strategies is much harder then for periodic sampling.
In the next blog, we will go deeper in the mathematics behind sampling.