# Analog, discrete, digital: deciphered

## Unlike the virtual world within a computer, the real world is "analog." Real-world variables can change at any time, not just at the end of a scan cycle or sampling interval. Variables measured by a computer are "discrete." They remain constant until the next sampling interval, even if real-world values change.

11/01/2004

Unlike the virtual world within a computer, the real world is 'analog.' Real-world variables can change at any time, not just at the end of a scan cycle or sampling interval.

Variables measured by a computer are 'discrete.' They remain constant until the next sampling interval, even if real-world values change.

Computer variables are also 'digital'—represented by a finite string of digits or bits. 'Digitalization' limits the precision with which an analog variable from the real world can be stored digitally in a computer.

The graphic shows an extreme case of how a computer can misrepresent the values of a real-world variable through discretization and digitalization.

Graphing the discretized variable reflects the general shape of the original real-world variable, but without the smooth curves. Note also that the discretized variable lags behind its analog counterpart, since its value can only change after the analog variable has already changed. The digitalization graph shows how the computer's accuracy is reduced even further because the variable is limited not only by the times when it can change, but the values it can assume.

Fortunately, faster sampling and higher precision storage in today's computers can greatly reduce the effects of discretization and digitalization.

Though fast sampling is usually beneficial, it is not always necessary for a feedback controller to sample a process variable as fast as it can. Likewise, extremely high precision may not help the controller achieve the desired closed-loop performance.

Consider the example in the graphic again, but suppose now that the analog variable represents some pressure, temperature, or flow rate to be controlled. Typically, such real-world variables do not change abruptly. Inertia and friction tend to limit their fluctuations to smooth, continuous curves.

In mathematical terms, such variables are said to have limited bandwidth. That is, the variable looks more like a low-frequency sinusoid than a high-frequency sinusoid. In such cases, the famous Nyquist Theorem states that sampling the variable at rates above a certain cutoff is a waste of computing power. All information required to completely reconstruct the original signal from the sampled data is contained in the samples collected at the cutoff rate. Additional samples resulting from faster sampling won't help the controller gain any more useful information from the sampled signal.

In this example, the analog variable appears very much like a sinusoid that completes two cycles of varying amplitude in about 8 seconds. Signal bandwidth is therefore somewhere around 0.25 cycles per second. The Nyquist Theorem would place the cutoff frequency at twice that value so that a sampling interval of 0.5 samples per second (or one sample every two seconds) would be adequate to glean all of the useful information contained in this signal. Therefore, the sampling rate shown in the discretization graph—one sample per second—should be fast enough.

The case for limiting the precision of the controller's storage to modest levels is easier to make. Real-world process variables are usually corrupted to some extent by measurement noise that limits the accuracy of data even before being sampled and stored. Using high-precision storage registers for the purpose would be overkill.

The Engineers' Choice Awards highlight some of the best new control, instrumentation and automation products as chosen by...
The System Integrator Giants program lists the top 100 system integrators among companies listed in CFE Media's Global System Integrator Database.
Each year, a panel of Control Engineering and Plant Engineering editors and industry expert judges select the System Integrator of the Year Award winners in three categories.
This eGuide illustrates solutions, applications and benefits of machine vision systems.
Learn how to increase device reliability in harsh environments and decrease unplanned system downtime.
This eGuide contains a series of articles and videos that considers theoretical and practical; immediate needs and a look into the future.
Additive manufacturing benefits; HMI and sensor tips; System integrator advice; Innovations from the industry
Robotic safety, collaboration, standards; DCS migration tips; IT/OT convergence; 2017 Control Engineering Salary and Career Survey
Integrated mobility; Artificial intelligence; Predictive motion control; Sensors and control system inputs; Asset Management; Cybersecurity
Featured articles highlight technologies that enable the Industrial Internet of Things, IIoT-related products and strategies to get data more easily to the user.
This article collection contains several articles on how automation and controls are helping human-machine interface (HMI) hardware and software advance.
This digital report will explore several aspects of how IIoT will transform manufacturing in the coming years.
Infrastructure for natural gas expansion; Artificial lift methods; Disruptive technology and fugitive gas emissions
Mobility as the means to offshore innovation; Preventing another Deepwater Horizon; ROVs as subsea robots; SCADA and the radio spectrum
Future of oil and gas projects; Reservoir models; The importance of SCADA to oil and gas
Automation Engineer; Wood Group
System Integrator; Cross Integrated Systems Group
Jose S. Vasquez, Jr.
Fire & Life Safety Engineer; Technip USA Inc.
This course focuses on climate analysis, appropriateness of cooling system selection, and combining cooling systems.
This course will help identify and reveal electrical hazards and identify the solutions to implementing and maintaining a safe work environment.
This course explains how maintaining power and communication systems through emergency power-generation systems is critical.