Measurement Systems - Architecture and Operating Principles
In questa pagina 4
In questa pagina 3
What a measurement system is
- Measurements are fundamental to: the quantitative determination of a physical phenomenon; determining the functional characteristics of a device; the control of a process; the validation of a physical law.
- A measurement system is a device, or set of devices, whose input is the quantity of interest and whose output is the measure of that quantity.
- The fundamental operation is to refer the quantity to be measured to a predefined scale of values in which the measurement unit is identified. A measure is expressed by the triad measured value, uncertainty, measurement unit (Measurement UncertaintyThe measurement process as comparison with a standard, error versus uncertainty, systematic and random errors, type A uncertainty from repeated observations (mean, variance, standard deviation, standard uncertainty), type B uncertainty from prior information, and the combined uncertainty as root sum of squares.Measurement Uncertainty →).
- In a measurement system, information is associated with a signal: a quantity that varies over time according to a predefined law, often describable by a mathematical function in whose parameters the desired information is contained.
- Different categories of instruments can be reduced to a set of basic elements with well-defined functions: this is the subject of the science of measurement, or metrology.
Electronic measurement systems
- In an electronic measurement system the information is contained in an electrical signal, generally a voltage.
- Electronic systems play a leading role because electrical signals are those that can be processed by modern computation systems: an electrical signal can be digitized and then easily processed by digital components such as controllers and processors.
- Measurement systems are divided into analog and digital, the latter being considerably more widespread today.
- The key functions that allow an instrument to interact with the physical system are similar for all instruments and, in principle, do not depend on the internal structure of the instrument.
Analog and digital systems
Block diagrams from the slide.
ANALOG SYSTEM
+--------+ +-------------+ +------------+ +-------------------+
| sensor |-->| signal |-->| processing |-->| comparison |--> MEASURE
+--------+ | conditioning| +------------+ | (inputs: SAMPLE)|
+-------------+ +-------------------+
|<- analog to digital conversion ->|
(dashed box on the slide)
DIGITAL SYSTEM
+--------+ +-------------+ +--------------------------------+ +------------+
| sensor |-->| signal |-->| sampling --> quantization |-->| processing |--> MEASURE
+--------+ | conditioning| | ^ REFERENCE ^ SAMPLE | +------------+
+-------------+ +--------------------------------+
analog to digital conversion (dashed box)- Analog systems: sensor, signal conditioning, processing, then a comparison with a sample (a known quantity) that yields the measure.
- Digital systems: sensor, signal conditioning, then analog-to-digital conversion made of sampling (driven by a reference) and quantization (driven by a sample), followed by processing, which yields the measure. Sampling theory is in Sampling and the Sampling TheoremSampling multiplies a continuous-time signal by a pulse train, which replicates its spectrum every omega_s; if the signal is band-limited with maximum angular frequency omega_M and omega_s exceeds 2 omega_M, an ideal low-pass filter recovers it exactly (Shannon theorem and sinc interpolation formula).Sampling and the Sampling Theorem → and Aliasing and Anti-Aliasing FiltersAliasing is the overlap of spectral replicas that occurs when the band-limited or Nyquist assumptions of the sampling theorem fail; an anti-aliasing low-pass filter with cut-off omega_s/2 applied before sampling removes it at the price of losing the high frequencies; two worked exercises.Aliasing and Anti-Aliasing Filters →; conversion is in Analog-to-Digital ConversionAnalog-to-digital conversion consists of sampling (sample-and-hold), uniform quantization with step Delta and error uniformly distributed in plus or minus Delta over 2, and binary coding; flash, successive-approximation and integrating converters trade speed against resolution.Analog-to-Digital Conversion →.
System elements
Sensors
- When the quantity to measure is not electrical, an interface element is needed between the quantity and the electronic circuits: the transducer, a device that converts a physical quantity into another, in our case into an electrical quantity.
- In the metrological field the sensor is the sensitive element; the transducer also includes the auxiliary elements necessary to provide the electrical output signal.
- The transducer output can be considered an electrical signal source, represented by an equivalent voltage source controlled by the input quantity. At best, measurand and electrical signal have a linear correspondence.
- The slide shows photographs of eight sensor modules (no captions; two boards carry readable labels: a "Light Sensor" board with a photoresistor and an ultrasonic "PING" module).
Analog signal conditioning
Circuits for analog processing or sampling must operate in a well-defined operating range, so the signal must be adapted to them. Conditioning also:
- makes the instrument robust against disturbances and electrical noise;
- allows measurements on multiple ranges of values;
- guarantees specific conditions of impedance matching.
Commonly used devices: amplifiers, attenuators, filters (see Signal Acquisition - Sampling, Conditioning and FilteringAcquiring a signal means conditioning it, sampling it uniformly at Fs at least twice the (filtered) bandwidth to avoid aliasing, quantizing it and, when needed, reconstructing it by interpolation.Signal Acquisition - Sampling, Conditioning and Filtering →).
Analog signal processing
- The input signal is transformed into a measurable quantity, typically a direct voltage, a time interval or a frequency.
- A circuit then performs the measurement: since all the operations on measurand and signal are known, the value of the measurand can be uniquely derived from the measured direct voltage, time or frequency.
- To indicate the value attributed to the measured quantity, a comparison must take place with another quantity, homogeneous to it, whose value is known. A device that reproduces or provides this value is called a standard or, more generally, a reference.
- Two standards are commonly used in electronic instrumentation: voltage references (obtained with ad-hoc circuits, for example stabilized Zener diodes) and time and frequency references (usually quartz oscillators).
- These devices produce constant voltages or frequencies over time, so the measurand must not vary, at least for the time needed to complete the comparison: the signal must be, at least in the short term, stationary.
Digital signal processing
- The analog signal must first be digitized: a discretization in time (sampling) and then a discretization in amplitude (quantization).
- A digital signal is a sequence of amplitude measurements, each associated with the instant of time to which it refers.
- Numerical instruments must contain internally both a standard for the amplitude measurement (generally a voltage reference) and a time reference to scan the sampling instants with adequate accuracy.
- The parameter of the signal that carries the information on the measurand is determined later, through suitable processing and estimation algorithms.
Visualization and transmission
- Once obtained, the measurement must be displayed, typically on screens.
- The measured value can also be transmitted to other computation or display systems, via wired or wireless systems.
- These two operations are of considerable importance because of the widespread adoption of automatic measurement systems, especially in industry (see Internet of Things and Application ScenariosThe Internet of Things joins ubiquitous computing (objects that sense, decide and act) with Internet connectivity (objects that transmit, use cloud computing and network information); an IoT system has nodes, a network and a back-end, and is applied in smart city, home, mobility, health, industry, farming and grid scenarios.Internet of Things and Application Scenarios → and Data Transmission Technologies - Wired, Wireless, LAN and WANSurvey of the data transmission technologies used to connect measurement and IoT nodes, from local ones (RFID, NFC, Bluetooth, WiFi, ZigBee) to wide-area ones (LoRa, SigFox, GSM/GPRS, UMTS, LTE, LTE-M, NB-IoT, 5G), with frequencies, ranges and bit rates.Data Transmission Technologies - Wired, Wireless, LAN and WAN →). The slide shows an oscilloscope screen, a coaxial cable with connectors and a radio-equipped development board.
Operating principle: comparison
A measurement instrument provides a numerical indication that must be referable to the measurement unit of the quantity considered. It is therefore necessary to compare the measurand with a homogeneous standard of known value. In the simplest case the comparison is direct, but this is often impossible, so several techniques exist; the choice depends on the nature of the quantity, the characteristics of the devices the instrument is made of and the degree of accuracy to be achieved.
Direct comparison
Blocks (from the slide): a reference (quantity ) and the measurand (quantity ) enter an equivalence detector, whose output goes to a decision element, which outputs the result .
+-----------+
| reference |
+-----------+
| c
v
+-------------+ e +------------------+
| equivalence |------>| decision element |----> x <= c0 +- U_X
| detector | +------------------+
+-------------+
^ x
|
+-----------+
| measurand |
+-----------+- Reference quantity: homogeneous to the measurand, of variable value , referred to a suitable standard and directly compared with the measurand. The uncertainty of the measurement is greater than or, at the limit, equal to the uncertainty with which the reference quantity is known.
- Equivalence detector: a device characterised by an input-output relation
with the two quantities to compare as inputs and the detection quantity as output. The equivalence condition occurs when takes a specific, predefined value.
- Decision element: detects when reaches the value corresponding to the equivalence condition.
The measure is
where is the value of the reference quantity for which the equivalence condition is satisfied and is the measurement uncertainty. Here it is implicitly assumed that : the method is unbiased. In an unbiased method, when the measurand is zero the reference quantity must also be zero.
Sources of uncertainty in a direct comparison:
- the intrinsic uncertainty of the measurand, of the sample and of the detector, linked to the models used to describe them;
- the uncertainty due to imperfect knowledge of the states of the measured system, of the sample and of the detector, mainly caused by the effects of the environment;
- the resolution limits.
The resolution threshold is the minimum variation of the value of the measurand that can be perceived around an (apparent) equivalence condition; it generally depends on the characteristics of the equivalence detector and of the decision element, and on the values of the reference quantity and of the measurand.
Examples on the slides:
- Analog version: balances (a steelyard with a sliding weight and a two-pan balance with weights as the reference).
- Digital version: an analog-to-digital converter chip (ADC12010). The transfer characteristic shown is that of a 3-bit converter: output codes from 000 to 111 against the input , with step , thresholds at , maximum quantization error and below the full scale (see Analog-to-Digital ConversionAnalog-to-digital conversion consists of sampling (sample-and-hold), uniform quantization with step Delta and error uniformly distributed in plus or minus Delta over 2, and binary coding; flash, successive-approximation and integrating converters trade speed against resolution.Analog-to-Digital Conversion →).
Indirect comparison
Used when measurand, reference quantities and detection quantity are not all homogeneous with each other. Blocks: transducers and convert the measurand and the reference into homogeneous quantities and , which enter the equivalence detector; the decision element gives .
+-----------+ c +------------+ T_C(c)
| reference |----->| transducer |-----------+
+-----------+ +------------+ v
+-------------+ e +------------------+
| equivalence |---->| decision element |--> x <= f(c0) +- U_X
| detector | +------------------+
+-----------+ x +------------+ ^
| measurand |----->| transducer |------+
+-----------+ +------------+ T_X(x)- One or more transducers: they allow the comparison when measurand, reference and detection quantities are not all homogeneous, and they allow reaching the equivalence condition when the reference quantity or quantities are not variable.
- One or more reference quantities, compared with the measurand.
- Equivalence detector and decision element as in the direct comparison.
Given the measure to acquire and the representative values of the known quantities that satisfy the equivalence condition:
from which
where is the equivalence relation, related to the characteristics of the transducers.
Simplest version: only the measurand has a transducer, ; the reference goes directly to the detector, and the result is .
Examples on the slides: a dial kitchen scale and a small ceramic disc component with two leads (neither is captioned).
Comparison by substitution
A method based on two subsequent comparisons.
+-------------------+
| stability standard|
+-------------------+
| s
v
+-------------+ e_x, e_c +------------------+ if e_x = e_c
| equivalence |----------->| decision element |---> x <= c0 +- U_X
| detector | +------------------+
+-------------+
^
| (switch)
x --o +-----------+ +-----------+
+-----|measurand | | reference |--- c(On the slide a switch connects the detector input either to the measurand or to the variable reference .)
- First comparison: the equivalence is sought between the effects produced by the measurand and those produced by a given quantity of variable value (the stability standard).
- Second comparison: the measured system is replaced by a variable reference, and the value of is chosen so as to regain the equivalence condition without changing the value of : if , then .
The time factor is essential: to avoid further uncertainties, the value of must remain constant for the whole time between the two comparisons.
Uncertainty sources in the substitution method:
- the intrinsic uncertainty of the measurand and of the sample;
- the intrinsic uncertainty due to variations in the state of the measured system, of the reference, of the detector and of the stability standard;
- the comparison resolution limits.
Compared with the direct comparison, the intrinsic uncertainty of the equivalence detector no longer appears: knowledge of the relation between , and is not of interest, only the resolution of the detector. However, uncertainties from possible instabilities over time of the stability sample and of the detector are added.
The method is more interesting with indirect comparison, because then even the characteristic of the transducer becomes irrelevant for the measurement uncertainty. In that scheme the switch selects the transducer input between and , and the transducer output feeds the equivalence detector.
Versione ripasso
- Measurement system: a device or set of devices whose input is the quantity of interest and whose output is its measure. A measure is the triad value, uncertainty and unit (Measurement UncertaintyThe measurement process as comparison with a standard, error versus uncertainty, systematic and random errors, type A uncertainty from repeated observations (mean, variance, standard deviation, standard uncertainty), type B uncertainty from prior information, and the combined uncertainty as root sum of squares.Measurement Uncertainty →).
- Information is carried by a signal, a quantity varying over time according to a law whose parameters contain the information. In electronic systems the signal is usually a voltage, which can be digitized and processed by computers.
- Analog chain: sensor, signal conditioning, processing, comparison with a known sample, measure.
- Digital chain: sensor, conditioning, sampling (driven by a time reference), quantization (driven by a voltage reference), processing, measure. The A/D part is Analog-to-Digital ConversionAnalog-to-digital conversion consists of sampling (sample-and-hold), uniform quantization with step Delta and error uniformly distributed in plus or minus Delta over 2, and binary coding; flash, successive-approximation and integrating converters trade speed against resolution.Analog-to-Digital Conversion →; sampling theory is in Sampling and the Sampling TheoremSampling multiplies a continuous-time signal by a pulse train, which replicates its spectrum every omega_s; if the signal is band-limited with maximum angular frequency omega_M and omega_s exceeds 2 omega_M, an ideal low-pass filter recovers it exactly (Shannon theorem and sinc interpolation formula).Sampling and the Sampling Theorem → and Aliasing and Anti-Aliasing FiltersAliasing is the overlap of spectral replicas that occurs when the band-limited or Nyquist assumptions of the sampling theorem fail; an anti-aliasing low-pass filter with cut-off omega_s/2 applied before sampling removes it at the price of losing the high frequencies; two worked exercises.Aliasing and Anti-Aliasing Filters →.
- Sensor = the sensitive element. Transducer = sensor plus the auxiliary elements that give an electrical output. The output is an equivalent voltage source controlled by the measurand; ideally the relation is linear.
- Signal conditioning: brings the signal into the operating range of the following circuits, makes the instrument robust against disturbances and noise, allows several measurement ranges and guarantees impedance matching. Devices: amplifiers, attenuators, filters (Signal Acquisition - Sampling, Conditioning and FilteringAcquiring a signal means conditioning it, sampling it uniformly at Fs at least twice the (filtered) bandwidth to avoid aliasing, quantizing it and, when needed, reconstructing it by interpolation.Signal Acquisition - Sampling, Conditioning and Filtering →).
- Analog processing: turns the signal into a measurable quantity (DC voltage, time interval or frequency), then compares it with a standard (reference). Standards used in electronics: voltage references (e.g. stabilized Zener diodes) and time or frequency references (quartz oscillators). The measurand must be stationary for the time the comparison takes.
- Digital processing: a sequence of amplitude values, each tied to its time instant. The instrument needs an amplitude standard (voltage reference) and a time reference; estimation algorithms then extract the parameter that carries the information.
- Output: display, or transmission over wired or wireless links (Internet of Things and Application ScenariosThe Internet of Things joins ubiquitous computing (objects that sense, decide and act) with Internet connectivity (objects that transmit, use cloud computing and network information); an IoT system has nodes, a network and a back-end, and is applied in smart city, home, mobility, health, industry, farming and grid scenarios.Internet of Things and Application Scenarios →).
- Operating principle: comparison. The measurand is compared with a homogeneous standard of known value. The method depends on the nature of the quantity, the devices used and the accuracy wanted.
Direct comparison
- Blocks: a reference of variable value and the measurand enter an equivalence detector with output ; the decision element recognises the equivalence condition (a predefined value of ).
- Measure:
where is the reference value at equivalence. The method is unbiased if : zero measurand means zero reference.
- Uncertainty sources: intrinsic uncertainty of the measurand, the sample and the detector; imperfect knowledge of the states (mostly environment); resolution limits.
- the resolution threshold is the smallest variation of the measurand perceived around equivalence; it depends on the detector, the decision element and the values involved.
- the uncertainty of the measurement is at least that of the reference.
- Examples: analog balance; ADC (3 bits, step ).
Indirect comparison
- Used when measurand, reference and detection quantity are not all homogeneous. Transducers and turn and into homogeneous quantities and that enter the detector.
- Equivalence: , so
where is the equivalence relation, which depends on the characteristics of the transducers.
- Simplest version: only the measurand has a transducer; the reference goes straight to the detector.
- Useful when the reference cannot be varied: a transducer makes the equivalence reachable.
Comparison by substitution
- First comparison: the effects of the measurand are balanced against those of a stability standard of variable value; the detector output is .
- Second comparison: the measurand is replaced by a variable reference , and is adjusted until the same effect is obtained, , without changing . Then .
The time factor is essential: must stay constant for the whole time between the two comparisons.
Uncertainty sources: intrinsic uncertainty of the measurand and the sample; variations of the state of the system, reference, detector and stability standard; resolution limits.
Versus direct comparison, the detector's intrinsic uncertainty drops out: only its resolution and the instability of count.
Typical errors:
- confusing sensor and transducer (the transducer includes the auxiliary electrical circuits);
- assuming a direct comparison can be more accurate than the reference it uses;
- forgetting the time-stability requirement of the substitution method.