Instrumentation and Measurement Technologies
In questa pagina 11
Purposes and technologies
Measurement systems must meet different initial requirements depending on the application. In general a measurement system is used to:
- measure a quantity of some kind (for information engineering, electrical quantities: voltage, current, resistance, ...);
- visualize the trend of a signal (in particular electrical signals);
- acquire and process a signal, also electrical;
- acquire and process measurements of various physical parameters in an integrated way;
- acquire and process measurements and physical parameters of various types in real time, remotely and from multiple devices simultaneously.
Corresponding measurement technologies:
| Purpose | Technology |
|---|---|
| Measure electrical quantities | laboratory instruments (multimeter) |
| View signals | time domain: oscilloscope; frequency domain: spectrum analyzer |
| Acquire signals and process/store them | Data Acquisition boards (DAQ) |
| Integrated acquisition of signals, measurement of various parameters, use for automatic control and actuation | microcontroller-based sensor platforms |
| Distributed measurement | microcontroller platforms interconnected via wired/wireless technologies (Internet of Things) |
Measuring electrical parameters
The measurement of electrical quantities gives an instant numerical indication of current, voltage, resistance, impedance, and so on. It is fundamental to:
- quantitatively determine the properties of an object (the resistance of a resistor, the voltage across a battery);
- monitor a process or the operating state of a device (the output voltage of a circuit, the current drawn by a device).
It is also fundamental because variations of electrical parameters are very often a consequence of variations of other physical phenomena: measuring the electrical parameters gives an estimate of those phenomena (see transducers in Measurement Systems - Architecture and Operating PrinciplesArchitecture of analog and digital measurement systems (sensor, conditioning, processing, conversion, display and transmission) and the three comparison principles of measurement: direct comparison, indirect comparison and comparison by substitution, with the uncertainty sources of each.Measurement Systems - Architecture and Operating Principles →).
The multimeter
Details of the instrument and its measurement methods are in Electrical Measurements - Voltmeter and MultimeterAnalog and electronic instruments (voltmeter, ammeter, ohmmeter, wattmeter) compare the measurand with the unit; the loading effect is a systematic error predicted by voltage and current dividers, and digital multimeters are specified by digits, resolution, input impedance and an accuracy of the form k1 times reading plus k2 times range.Electrical Measurements - Voltmeter and Multimeter →; the introduction given here:
- The multimeter measures various types of electrical parameters and offers an instant numerical indication.
- Handheld multimeters (also called testers) can be used in a variety of contexts; bench multimeters are designed for laboratory use with higher performance.
- Most multimeters today are digital, with a seven-segment display; in traditional analog models the indication is given by a dial with a pointer (galvanometer).
- It measures in both direct and alternating current. The measurement is made via one or more pairs of probes (tips) that connect the instrument to the element under test.
- A selector chooses the physical quantity, and with it the connection method: to measure a voltage the multimeter is placed in parallel to the circuit, to measure a current it is placed in series. The selector also chooses between different orders of magnitude (ranges) of the parameter.
- Measurable quantities: at least DC and AC current, DC and AC voltage, and resistance. Other functions: effective (rms) voltages, capacitance and inductance, frequency, diode test, continuity test (typically with a sound), temperature.
Instruments shown on the slides:
- an analog multimeter with a mirrored multi-scale dial and a selector (ranges for AC voltage, DC voltage, DC current, AC current and resistance);
- a handheld digital multimeter with an LCD (showing 00.0), POWER and HOLD buttons, a range selector and input terminals (A, mA, V/Hz/ohm, COM);
- a bench digital multimeter, 5 1/2 digits (Agilent 34450A). The display shows a main reading of 05.5000 V DC (range 10 V) and a secondary reading of 0.50000 A DC (range 1 A), mode AUTO. Keys: DCV, ACV, resistance (2W/4W), Cont (continuity/diode), DCI, ACI, Freq, Temp, Null, Math, Data Log, Store/Recall, and range and resolution arrows. Terminals: input (V, ohm), Sense (4-wire ohm), 10 A and 100 mA; labelled limits 1000 VDC / 750 VAC, CAT II 300 V;
- two selector close-ups showing positions such as DCV, ACV, DCmA, ohm ranges, OFF; and a handheld meter with HOLD, MINMAX and RANGE buttons and positions for Hz, V, mV, temperature, ohm/capacitance, continuity/diode, mA and A.
Visualizing a signal in the time domain
The visualization of a signal in the time domain allows an immediate evaluation of its characteristics. Main purposes for an electronic designer:
- detection of waveforms: accurate measurement of the signal trend and of parameters such as amplitude and waveform, to learn how the devices affected by the signal work or to verify that the trend stays within pre-established limits; it improves understanding of the phenomenon that originates the signal;
- diagnostics: verifying that a device works correctly or detecting any anomaly that might require maintenance or, for a prototype, a revision of the project or of the circuit.
The oscilloscope
- The oscilloscope is the instrument for visualization and analysis of signals in the time domain.
- As in any measurement there is a finite observation interval, so the instrument must be synchronized with the evolution of the observed signal.
- It displays, on a plane with a reference coordinate system, the joint trend of two (or more) quantities; usually Cartesian axes (other systems such as polar are possible but less common). Typically it acquires at least two signals simultaneously, so several traces can be shown and compared.
- The slide shows a bench digital oscilloscope (Tektronix TBS 1202B-EDU) with two channels: the display shows two sinusoids and menu buttons (Type Edge, Source Ch2, Slope Rising, Mode Auto); front panel groups: Vertical (position, menu, scale of channel 1 and 2), Horizontal, Trigger, with two input connectors and an external trigger input. The badge reads 200 MHz and 2 GS/s (small print, partly illegible on the image).
Display modes
- Amplitude as a function of time: requires an internal time reference (timebase), which gives the horizontal axis its calibration.
- XY mode: two distinct signals are acquired and the amplitude of one is shown as a function of the other; each point on the screen corresponds to a pair of values at the same instant. Time is not explicitly shown: it can only be imagined as the movement of the point that draws the curve. The slide shows an ellipse as an example.
Grid, cursors and scale factors
- The screen has a grid of 8 vertical and 10 horizontal divisions for a first approximate evaluation.
- For the actual measurement, cursors (horizontal or vertical lines positioned by the operator) are used; the instrument computes the numerical value of their position from the set scale factors and shows a calibrated indication with units on the screen.
- A screenshot (Tektronix style) shows channel 1 menu entries: Coupling DC, BW Limit (On/Off, 200 MHz), Volts/Div Coarse, Probe 1X Voltage, Invert Off; status bar: channel 1 at 500 mV per division, timebase M 25.0 ns, trigger level 622 mV, 20.0000 MHz, "Trig'd" and "M Pos: 0.000 s".
Setting up an observation
To analyze one or more signals as functions of time you need to:
- Set the duration of the observation interval by adjusting the horizontal scale factor.
- Adjust the amplitude scale (vertical scale factor), which corresponds to setting the amplification or attenuation of the input channel.
- Synchronize the acquisition so that the part of the signal of interest falls in the observation interval.
Single event: the scope must capture the input in the interval where the event occurs; for simplicity the synchronization command starts the acquisition. With a command before the event the acquisition window includes the rise and the decay (left plot on the slide: ramp, peak, damped oscillation); if the command comes later, the window shows only the tail of the event (right plot).
Repetitive signal: the displayed trace must be updated to show changes, so the acquisition must be repeated with the portion of signal displayed always the same; hence the need for synchronization. Each cycle has:
- Acquisition phase: duration , set by the observation interval chosen by the user.
- Set-up phase (reset): duration , prepares the oscilloscope for a new acquisition and depends only on the instrument. During it the scope cannot acquire, so a minimum time must elapse between two consecutive acquisitions.
- Wait phase: duration , used so that the next acquisition phase coincides with the interval where the significant part of the signal is present again.
Acquiring and processing a signal
Often it is not enough to display a signal: its trend must be acquired for a given time interval. Once acquired and stored in digital form, the signal can be processed with a computing tool (typically a computer) to:
- extract the information it contains;
- carry out various analyses (for example spectral analysis);
- make it available for control operations;
- eliminate harmful components such as noise.
Data acquisition boards (DAQs)
- DAQ (from Digital AcQuisition) boards allow real-time acquisition of analog and digital signals.
- They can be inserted directly onto the internal (ISA, PCI, ...) or external (RS232, USB, ...) bus of a PC.
- Typical resources: a number of analog input channels (typically 8 to 16), some analog output channels and a number of digital input and output ports.
- They usually have timing circuits and provide different values of uncertainty and sampling frequency depending on cost.
- They convert analog signals into binary codes the computer can manage, and convert numerical information from the computer into analog signals (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 →).
- They can make measurements of various kinds on one or more signals simultaneously and generate ad-hoc signals at the output.
- Management is quite simple because they interface immediately with ad-hoc (LabVIEW) or general-purpose (Matlab) software environments, in which graphical visualization and control interfaces, called Virtual Instruments (VI), replace traditional control panels.
- Despite the versatility, these instruments have lower accuracy and sampling frequencies limited to a few hundred kilohertz.
Pictures on the slides: two National Instruments USB boards with screw terminals, labelled "USB-6251, 16 inputs, 16-bit, 1.25 MS/s multifunction I/O" (small print, only partly legible) and "USB-6008, 8 inputs, 12-bit, 10 kS/s multifunction I/O"; and a LabVIEW virtual instrument with a waveform chart (a sine wave and a horizontal line), two analog gauges "Channel 1" and "Channel 2" (range -10 to 10), a Stop button, a DeviceDriver field and SampleRate 1000.
Other useful laboratory instruments
Benchtop power supply
- It transforms alternating current (or voltage) into direct current, generating DC currents (and voltages).
- It powers components in a specific voltage range and is comparable to an ideal voltage (or current) generator.
- The voltage is selected in a range, usually up to a few tens of volts (for example 30 V); the current has a maximum of a few amperes (for example 5 A).
- The key parameter is the maximum output power. Bench supplies typically have two or more outputs.
- Instrument shown (Sorensen XDL 35-5TP DC power supply): displays 35.000 V / 3.000 A and 15.000 V / 5.000 A; outputs Output 1, Auxiliary (with a 2.7 V / 3.3 V / 5.0 V selector) and Output 2; front panel ratings 15 V 5 A, 35 V 3 A, 35 V 500 mA.
Signal generator
- It generates periodic signals of various types.
- Sinusoids are important to test circuits that, within their operating limits, behave linearly: the response is still a sinusoid at the same frequency but with different amplitude and phase.
- A periodic square wave can be used to detect the step response of a linear system using oscilloscope measurements.
- Generators usually produce, besides sinusoids, triangular, square and impulsive waveforms; digital generators can synthesize any waveform very accurately.
- Instrument shown (Agilent 33120A, 15 MHz function/arbitrary waveform generator): display 1.000,000,0 kHz; keys AM, FM, FSK, Burst, Sweep, Noise, Arb; Freq, Ampl, Offset, Single, Recall; SYNC and OUTPUT connectors with the 50 ohm output marking.
Acquiring signals in an integrated way
- Measurement activities are crucial in infinite applications, and the acquisition of numerical data about physical phenomena is often functional to integrated visualization and control systems with built-in computation tools that process the measured values in real time.
- Such systems are part of daily life (the home thermostat, digital scales).
- The measurement devices are very often transducers that convert the physical quantity into an electrical signal, then acquired and processed by various computation tools.
- The measurement activity must be accompanied by prototyping and engineering activity, at software and hardware level, to implement the whole system.
Embedded systems
- Integrated systems based on miniaturized computing platforms, customized at hardware and software level and designed for a specific purpose, are called embedded systems.
- Their inputs are very often numerical data on physical-environmental parameters acquired via sensors.
- The heart of an embedded system is the computing tool: microcontrollers or microprocessors.
- Microcontrollers contain ADCs, so for signal acquisition they have functions similar to a DAQ.
- An embedded system can therefore acquire and process a wide range of parameters thanks to analog or digital sensors interfaced with the input channels of the computing system.
Single Board Microcontrollers
- To simplify their use, computing tools are often integrated into boards that allow connecting peripheral components (sensors, actuators, visualization systems) with connection cables.
- These are Single Board Microcontrollers: programmed through ad-hoc Integrated Development Environments (IDEs), they manage the simultaneous acquisition of signals from multiple input lines and, after processing, perform actuations on output lines (see Arduino PlatformArduino is a family of open single-board microcontroller boards built on Atmel AVR chips (UNO, Mega, Micro), extended with stackable shields and programmed through its own IDE.Arduino Platform →).
- With them one can build integrated measurement systems in which the measured parameters are exploited in a transparent manner to implement the functions that require their acquisition.
- Boards shown: an ST Nucleo-G474RE and an Arduino UNO.
The microcontroller chip
- The same functions can be implemented with a bare microcontroller (the chip), but this needs harder prototyping: connections between peripherals and microcontroller are more complex.
- Programming is also more complex because, unlike single board microcontrollers, the chip cannot be connected directly to a computer.
- The advantage: the entire embedded system can be developed in an integrated layout and customized more easily for the final application scenario.
- Chips shown: an Atmel MEGA32U4-AU (surface-mount, flat package) and a 16-pin through-hole package.
Distributed measurement systems
- The possibility of remotely transmitting the acquired values significantly increases the flexibility of the platforms.
- Besides transmitting to a remote acquisition and processing system, distributed systems measure the same or different parameters in multiple places, giving a geographically extended dimension to the system.
- The large number of data transmission technologies developed in recent years, particularly wireless, allows implementation both in local areas and on a large scale; integration with the Internet makes it possible to place autonomous measurement systems practically anywhere (see 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 →).
Wireless Sensor Networks (WSN)
- A WSN is a network of measurement systems made of autonomous devices distributed in space that use sensors to monitor physical and environmental parameters in a coordinated manner and in multiple locations.
- It is interconnected with a centralized structure, often in the Cloud, which receives the collected information, manages and reprocesses it.
- Each node has one or more sensors, a radio transmitter (or another wireless device), a microcontroller and an energy source, normally a battery.
- In practice they are embedded systems equipped with connectivity.
Internet of Things (IoT)
- Miniaturization of embedded systems and more efficient data transmission lead to a huge number of acquisition platforms integrated within devices and objects of all kinds.
- The privileged channel for transmitting and sharing these data is the global network: the objects become nodes of the Internet, the Internet of Things paradigm.
- Measurement systems are the edge of this infrastructure: they are the interfaces between the external world and the network, transforming physical parameters into information made available globally.
- IoT nodes are therefore embedded systems where the connection to the Internet plays a crucial role. The slide shows examples: environmental sensors, a smoke detector, a weather station, a motion sensor and a smart speaker. More in 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 →.
Versione ripasso
- Purpose to technology:
| Purpose | Technology |
|---|---|
| measure electrical quantities | multimeter |
| view signals | oscilloscope (time domain), spectrum analyzer (frequency domain) |
| acquire signals and process/store them | DAQ boards |
| integrated acquisition, control and actuation | microcontroller-based sensor platforms |
| distributed measurement | microcontroller platforms over wired/wireless links (IoT) |
- Why measure electrical parameters: to determine properties of an object (resistance, battery voltage) and to monitor a process or device state. Electrical variations are often the consequence of other physical phenomena, so they give an estimate of them (transducers: Measurement Systems - Architecture and Operating PrinciplesArchitecture of analog and digital measurement systems (sensor, conditioning, processing, conversion, display and transmission) and the three comparison principles of measurement: direct comparison, indirect comparison and comparison by substitution, with the uncertainty sources of each.Measurement Systems - Architecture and Operating Principles →).
- Multimeter (details in Electrical Measurements - Voltmeter and MultimeterAnalog and electronic instruments (voltmeter, ammeter, ohmmeter, wattmeter) compare the measurand with the unit; the loading effect is a systematic error predicted by voltage and current dividers, and digital multimeters are specified by digits, resolution, input impedance and an accuracy of the form k1 times reading plus k2 times range.Electrical Measurements - Voltmeter and Multimeter →):
- handheld (tester) for general use, bench for laboratory with higher performance;
- digital (seven-segment display) or analog (dial with pointer, galvanometer);
- measures DC and AC current, DC and AC voltage and resistance; also rms voltages, capacitance, inductance, frequency, diode, continuity (with a sound), temperature;
- two probes (tips) connect it to the element under test;
- selector chooses the quantity and the range;
- voltage: in parallel; current: in series.
- Bench DMM example (Agilent 34450A): 5 1/2 digits; main reading 05.5000 V DC on the 10 V range, secondary 0.50000 A DC on the 1 A range; keys DCV, ACV, 2W/4W resistance, continuity/diode, DCI, ACI, frequency, temperature, Null, Math, Data Log; Sense terminals for 4-wire resistance; limits 1000 VDC / 750 VAC.
- Why look at signals in the time domain:
- detection of waveforms: amplitude, shape, checking that the trend stays within limits;
- diagnostics: checking that a device works correctly or finding an anomaly that requires maintenance or a revision of the circuit.
- Oscilloscope (full treatment in The OscilloscopeThe oscilloscope displays the joint trend of two or more quantities; its functional blocks are input channels, trigger and synchronization, time base and acquisition and display, and its input impedance, bandwidth, rise time, coupling, hold-off and probe compensation determine how faithfully a signal is shown.The Oscilloscope →):
- shows the joint trend of at least two signals on Cartesian axes;
- the observation interval is finite, so the acquisition must be synchronized with the signal;
- display modes:
- amplitude versus time, which needs an internal timebase to calibrate the horizontal axis;
- XY: amplitude of one signal against the other at the same instants; time is implicit in the motion of the point (the slide shows an ellipse).
- screen grid: 8 vertical and 10 horizontal divisions for a first estimate;
- cursors give the calibrated value, computed from the scale factors.
- Setting up an observation:
- horizontal scale factor: duration of the observation interval;
- vertical scale factor: amplification or attenuation of the input channel;
- synchronization: the interesting part of the signal falls in the interval.
- Single event: the synchronization command starts the acquisition; if it comes before the event the window shows rise and decay, if after only the tail.
- Repetitive signal: each cycle has acquisition time (set by the observation interval), set-up (reset) time (depends only on the instrument) and wait time . Two consecutive acquisitions need at least , and the wait time aligns the next acquisition with the significant part of the signal.
- Acquiring and processing: once stored in digital form the signal can be analysed (e.g. spectral analysis), made available for control, and cleaned of harmful components such as noise.
- DAQ boards (more in Data Acquisition SystemsA DAQ module multiplexes several analog inputs through a programmable gain amplifier into one ADC, stores the samples in a buffer and hands them to a PC, with sampling timing, trigger modes (digital, analog level, window, pre-trigger) and input configuration (differential or referred to ground) that the user must know.Data Acquisition Systems →):
- real-time acquisition of analog and digital signals; inserted in the internal (ISA, PCI) or external (RS232, USB) bus of a PC;
- typical resources: 8 to 16 analog inputs, some analog outputs, digital I/O, timing circuits;
- convert analog to binary codes and back (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 →);
- used with LabVIEW (Virtual Instruments) or Matlab;
- limits: lower accuracy than bench instruments, sampling frequency up to a few hundred kHz.
- Bench power supply: converts AC to DC, works as an ideal voltage or current generator; voltage up to a few tens of volts (e.g. 30 V), current up to a few amperes (e.g. 5 A); key parameter is the maximum output power; two or more outputs.
- Signal generator:
- sinusoids test linear circuits: the response has the same frequency but different amplitude and phase;
- a periodic square wave shows the step response of a linear system on the oscilloscope;
- also triangular and impulsive waveforms; digital generators synthesize any waveform (Agilent 33120A, 15 MHz).
- Integrated acquisition: measurement feeds integrated visualization and control systems with built-in computation (home thermostat, digital scales). Transducers turn the physical quantity into an electrical signal.
- Embedded systems (see Embedded Systems and MicrocontrollersAn embedded system is a computing system built for one specific function inside a larger system, made of a powering system, a processing unit (microcontroller or system-on-chip), memory, sensors and actuators, human-machine interfaces and transceivers.Embedded Systems and Microcontrollers →): miniaturized computing platforms customized for one purpose; their inputs are numerical data from analog or digital sensors. Microcontrollers include ADCs, so they do the job of a DAQ.
- Single board microcontrollers (Nucleo-G474RE, Arduino UNO, see Arduino PlatformArduino is a family of open single-board microcontroller boards built on Atmel AVR chips (UNO, Mega, Micro), extended with stackable shields and programmed through its own IDE.Arduino Platform →): programmed with an IDE, easy connections, simultaneous acquisition and actuation on outputs.
- Bare chip (e.g. Atmel MEGA32U4): integrated layout and customisation, but harder prototyping, and it cannot be connected directly to a computer for programming.
- Distributed systems: remote transmission of acquired values, measurements in several places, local or large-scale links; Internet integration places measurement systems practically anywhere (see 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 →).
- WSN: autonomous devices with sensors, a radio, a microcontroller and a battery, linked to a centralized (often cloud) structure that reprocesses the data.
- IoT: objects become Internet nodes; measurement systems are the edge, the interface between the external world and the network. 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 →.
- Typical errors:
- voltmeter connected in series, or ammeter in parallel;
- forgetting that the scope needs between two acquisitions;
- assuming DAQ boards match bench-instrument accuracy and bandwidth.