Docsity

Measurements course theory, Appunti di Misure Industriali

Toggle sidebar
bg1
Signal classification
Physical phenomena to be dealt with by engineers are usually the object of measurements. The primary
source is therefore a “time sequence” (or “time record”). Any single value within a time record may represent
whichever physical quantity, i.e. displacement, speed, acceleration, pressure, temperature etc.
A first rough classification provides a division between:
• Analog signals. They are continuous time functions: both the phenomenon and the representation
are continuous (i.e. all those signals, given as voltage or current, from any device in an analog
measurement system). The direct consequence is that the information is infinite, thus this data
cannot be saved on a computer.
Signals from transducers most of the times are continuous in time domain (analog). This means that
they can assume every level between a lower limit (𝑉𝑚𝑖𝑛) and an upper limit (𝑉𝑚𝑎𝑥).
∞ signal values are observed between 0 and 𝑇, each ideally formed by ∞ figures.
An example of analog signal is the vibration of a rotating shaft measured by means of a position
transducer.
Another example of analog signal is the output of a transducer used to measure the roughness:
• Digital signals. They are given at discrete times (after A/D conversion) and can be obtained either
from an acquisition board (which converts analog signals into digital ones) or from transducers that
directly produce a digital signal.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Anteprima parziale del testo

Scarica Measurements course theory e più Appunti in PDF di Misure Industriali solo su Docsity!

Signal classification

Physical phenomena to be dealt with by engineers are usually the object of measurements. The primary

source is therefore a “time sequence” (or “time record”). Any single value within a time record may represent

whichever physical quantity, i.e. displacement, speed, acceleration, pressure, temperature etc.

A first rough classification provides a division between:

  • Analog signals. They are continuous time functions: both the phenomenon and the representation

are continuous (i.e. all those signals, given as voltage or current, from any device in an analog

measurement system). The direct consequence is that the information is infinite, thus this data

cannot be saved on a computer.

Signals from transducers most of the times are continuous in time domain (analog). This means that

they can assume every level between a lower limit (𝑉

𝑚𝑖𝑛

) and an upper limit (𝑉

𝑚𝑎𝑥

∞ signal values are observed between 0 and 𝑇, each ideally formed by ∞ figures.

An example of analog signal is the vibration of a rotating shaft measured by means of a position

transducer.

Another example of analog signal is the output of a transducer used to measure the roughness:

  • Digital signals. They are given at discrete times (after A/D conversion) and can be obtained either

from an acquisition board (which converts analog signals into digital ones) or from transducers that

directly produce a digital signal.

The value of the signal is known at discrete time instants, so they are formed by a discrete number

of points and thus can be saved in a computer. Along with the discretization on the horizontal axis

(time discretization), there is also a discretization on the vertical axis: not all the possible values can

be represented.

By properly choosing the sampling frequency (which determines the interval of acquisition Δ𝑡) and

the number of bits of the acquisition board (which determines the width of the output levels), the

loss of information when passing from analog to digital is negligible.

The advantages of digital signals are:

o The data can be stored and processed in a computer

o The signal is very robust to noises. In fact, when a voltage signal (i.e. analog signal produced

by a sensor) is acquired, it can be corrupted by noises. These noises can be produced, for

example, by magnetic fields (electro-magnetic interference). On the contrary, digital signals

can be barely corrupted as the data are represented using bits. For this reason, the shorter

is the time before digitalization, the better is the final signal.

It also exists another kind of signal: the logical signal. It is a special kind of codification, it is the easiest one,

as it has just two discrete states, marked as Boolean values ON and OFF. Its origin either a digital signal or an

analog one. In both cases a low level and a high level are considered for the quantity being analysed. Typical

signals belonging to this family are:

  • Trigger signals
  • TTL signals (transistor to transistor logic). They are standard signal that allow the communication

between devices of different manufacturer.

Example of logical signal: TTL signal

Deterministic signals

They can be either periodic or non-periodic.

Periodic signals

Let’s start with periodic signals: they are given in the time domain as functions whose shape exactly repeats

itself at well-defined time lags, all equal to each other. Thus, for them is it possible to define a period 𝑇

𝑝

. So,

the following relation is valid:

𝑝

Where 𝑇 𝑝

is the time needed to complete a single cycle (period), while 𝑓

0

1

𝑇

𝑝

is the fundamental frequency,

i.e. the number of cycles for each base time unit.

Periodic signals can be further classified as single harmonic or complex harmonic. In the first case, they are

defined in time domain by functions such as:

0

Thus, they can be described using three parameters: amplitude 𝑋, frequency 𝑓

0

and initial phase 𝜃.

As mentioned before, they have a discrete spectrum. As an example, this kind of signal is obtained from an

unbalanced rotating shaft

Instead, complex harmonic signals are the sum of many harmonic components (i.e. sines or cosines),

therefore it can be decomposed in a Fourier series:

0

𝑛

cos( 2 𝜋𝑓

𝑛

𝑛

∞

𝑛= 1

Where 𝑓 𝑛

0

(higher order frequencies are integer multiples, by means of 𝑛, of the fundamental

frequency) and 𝑋 0

is the mean value. Each harmonic component has its own amplitude 𝑋

𝑛

, frequency 𝑓

𝑛

and

initial phase 𝜃 𝑛

. The mean component can be considered as a cosine at null frequency (no oscillations).

Let’s look at the following example of complex harmonic signal.

There are three harmonic components and the period is 𝑇 𝑝

0 , 2 𝑠, which can be calculated by measuring the period of each

component and then making the minimum common multiple. As it

can be noticed, the fundamental frequency 𝑓 0

= 5 𝐻𝑧 is not a real

component (i.e. the amplitude in correspondence of this frequency

is zero). However, all the three components have a frequency that

is an integer multiply of 𝑓

0

Examples of complex harmonic signal, is the movement of a piston

and the vibration of a frame.

Periodic single harmonic signal

Non-periodic signals

They can be further classified as quasi-periodic or transient. In the case of a quasi-periodic signal, a signal

made of the sum of many harmonic components generally is not periodic. It is periodic only if the ratio

between any frequency related to the different harmonic components and the fundamental frequency is a

rational number:

𝑛

0

Thus, in this case a fundamental period 𝑇 𝑝

cannot be defined. Quasi-periodic signals are those satisfying the

following condition:

0

𝑛

cos

𝑛

𝑛

∞

𝑛= 1

In other words, the mathematical formulation is very similar to the one of periodic signals. However, in order

to have a quasi-periodic signal, the following ratio must not be a rational number for at least one couple of

integer values 𝑛 and 𝑚:

𝑛

𝑚

0

0

i.e. if at least the frequency of one harmonic component is not an integer multiple of the fundamental

frequency.

For this reason, in this case a fundamental frequency cannot be defined so the signal will not repeat itself

after a certain amount of time.

Some natural phenomena exist, producing quasi-periodic signals: this happens whenever the effects of

different periodic signals are superimposed. An example is the vibratory response of a multi-jet airplane

engine when the rotation speeds of the turbines are not well synchronized. Also in this case, the spectrum is

discrete and it is similar to that of a complex periodic signal.

Eventually, there are transients. They are signals which are not periodic nor quasi-periodic. In other words,

all signals not belonging to any of the already described categories, at the same time being expressed in

terms of suitable time functions (i.e. a mathematical formulation exists), are to be considered as transients.

They are not directly described by a series of sines and cosines (e.g. impulse, reaction force of a rocket,

response of a system to a step input, etc.), however they may exist mathematical laws that describe them.

Spectral analysis of these signals cannot be discrete but just continuous.

Spectrum of a quasi-periodic signal

Random signals

These signals are generated by random processes and are represented by sample functions (which become

sample records if these functions are observed for a finite time lag). A stochastic process is defined by the

ensemble of all the possible records. Therefore, each record may be seen as a physical realization of a random

process. Random signals may be stationary or non-stationary. Those which are stationary are further

subdivided into ergodic and non-ergodic signals. In any case, the spectrum of random signals is continuous.

Examples of random signals are the vibration of an umbrella under the rain and the wind speed, i.e.

phenomena that involve many random variables.

What is the meaning of stationarity? Let’s consider an ensemble

of time records defining a random process (i.e. 𝑁 signals, each

of them coming from a different sensor). The mean value (also

called process first order moment at time 𝑡

1

, indicated with 𝜇

𝑥

can be computed at any specific time 𝑡 1

by averaging over the

ensemble. This means that the instantaneous value of every

record is taken at time 𝑡 1

, then all the values are summed and

divided by the number of considered records.

𝑥

1

) = lim

𝑁→∞

𝑘

1

𝑁

𝑘= 1

Where 𝑥 𝑘

1

) is the value of the signal 𝑘 at the time 𝑡

1

Note that it is calculated considering an infinite number of

signals 𝑁, so an infinite numbers of transducers.

Furthermore, by taking the record values at times 𝑡

1

and 𝑡

1

the correlation (also called joint moment, 𝑅 𝑥𝑥

) can be evaluated:

𝑥𝑥

1

1

  • 𝜏) = lim

𝑁→∞

𝑘

1

𝑁

𝑘= 1

𝑘

1

Where 𝜏 is a time delay.

Generally speaking, when 𝜇 𝑥

1

) and 𝑅

𝑥𝑥

1

1

  • 𝜏) values vary with time 𝑡

1

, the random process is defined

as non-stationary. In the particular case in which the mean value and the correlation do not vary with 𝑡 1

, the

random process is said to be weakly stationary. Therefore, for weakly stationary signals the mean value is

constant, while the correlation is just function of the time delay 𝜏. So:

𝑥

1

𝑥

𝑥𝑥

1

1

𝑥𝑥

In case all the infinite higher order moments and the joint moments are independent from the time 𝑡 1

, the

casual process is defined as strictly-strongly stationary or stationary in the strict sense. However, this

condition will not be considered here.

Let’s now suppose to be in a stationary situation: the process can be either ergodic or non-ergodic. Let’s

consider, as before, 𝑁 signals. The quantities 𝜇 𝑥

and 𝑅

𝑥𝑥

are redefined as:

𝑥

(𝑘) = lim

𝑇→∞

𝑘

𝑇

0

𝑥𝑥

(𝜏, 𝑘) = lim

𝑇→∞

𝑘

𝑘

𝑇

0

𝑥

is not a function of time, but of the considered record 𝑘: thus, it is the mean value of a certain record.

Ensemble of time history records

Instead, 𝑅

𝑥𝑥

is a function of both the considered record 𝑘 and the time delay 𝜏. Once the record index 𝑘 has

been fixed, 𝑅 𝑥𝑥

represents a curve in 𝜏:

In this definition (not in previous one), 𝑅 𝑥𝑥

is called auto-correlation function.

If all the records have the same 𝜇 𝑥

and 𝑅

𝑥𝑥

(i.e. they are independent from the record index 𝑘), the stationary

random process is ergodic:

𝑥

𝑥

𝑥𝑥

1

𝑥𝑥

If just one of these conditions is not verified, the process is not ergodic.

Summing up, stationarity and ergodicity consider the average of the signal in two different “directions”: in

the case of stationarity, the average is calculated in the transverse direction, considering the value assumed

by each signal at a certain time instant; instead, in the case of ergodicity, the average is calculated in the

longitudinal direction (i.e. over time), considering the values assumed by one signal.

What’s the physical meaning of stationarity and ergodicity? In order to understand this point, let’s consider

the measurements of wind speed along the bridge. To realize the measure, anemometers (crosses in the

following image) are placed along the deck and on the towers. Each transducer will produce a time record,

so 𝑁 time records are obtained.

Once these time records are available, the stationarity of the process can be checked: in this case 𝜇

𝑥

and 𝑅

𝑥𝑥

do not depend on time. This implies that also other statistical indexes are not changing in time. In other

words, the statistical features of wind do not change in time. For this reason, the characteristics of the wind

can be studied (by means of a statistical approach) shortening the time considered in the analysis (i.e. for

each time record, just a portion is considered). This allows to reduce the amount of data needed for the

analysis.

Instead, for what concerns ergodicity, the conditions to be checked are that both the mean value and the

auto-correlation function of any time record are the same. So, the statistical features of the signal (e.g.

standard deviation) are the same, independently from which signal (i.e. time record) is considered. This

So, when checking stationarity and ergodicity, a certain scatter has to accepted. The important point is that

the scatter does not have a defined trend and does not change significantly. If these two condition are

verified, the conditions for ergodicity or stationarity are verified.

Example – Casino dice game

We are in a casinò and we play dice game. We would like to understand if some statistical citeria can help us

to elaborate a game strategy and thus to win. The game requires to estimate the sum of different dice rolls.

15 banks play with 3 rolls, while 5 banks play with 5 rolls. Each bank repeat the game 20 times per day. I want

to find a game strategy: does it exist a statistical approach that we can apply in order to win?

The time records of the rolls are:

Since this is a random process, stationarity can be studied. Each bank can be seen as a sensor and the game

number as a time instant. Let’s consider the first index of stationarity, 𝜇 𝑥

1

There is some scatter, but the scatter does not exhibit a particular trend (horizontal line). Moreover, the

scatter does not change. Checking also the other index, it is possible to say that the process is stationary: the

features are non-time dependent.

Let’s now look at ergodicity:

The mean values for different banks (3 or 5 rolls) are different: the random process does not show common

features among the various banks, so it is not ergodic. However, two ergodic subsystems can be identified.

Therefore, we can conclude that it is worth analysing what happens on a limited number of game repetitions

because the statistical features of the phenomenon do not change with time. It is also worth analysing what

happens on just 2 banks (one with 3 and one with 2 dices).

Signal analysis in time domain

Let’s see the computation of some simple indexes that are used to extract some useful information about

the considered phenomenon. Examples of these indexes are the peak-to-peak amplitude, the maximum

positive amplitude etc., as shown in the following image.

The first index is the mean value 𝜇

𝑥

, which is defined as:

𝑥

= lim

𝑇→∞

𝑇

0

Obviously, this formulation can be used just for continuous (i.e. ideal) signals. When dealing with real signals

(i.e. discrete, obtained from an acquisition board) the integral is substituted by a sum and 𝑇 is replaced by

𝑛 ∙ Δ𝑡 (Δ𝑡 = sampling time, 𝑛=number of samples).

The mean value can be calculated also in another way. In this case it is called “mean value for non-biased

signals (null mean)”. Actually, it is the mean value of the absolute value of the signal, not of the original signal.

However, it is similar to the one defined previously:

𝑥

= lim

𝑇→∞

𝑇

0

Another important index is the mean square value, defined as:

2

= lim

𝑇→∞

2

𝑇

0

It is related to the mean power content of the signal and so to the mean power content of the considered

physical phenomenon. Most of the time the root mean square (RMS) value is used in place of the mean

square value:

2

= lim

𝑇→∞

2

𝑇

0

Again, the RMS is an index of the power content of the signal, but dimensionally it is not a power: it has the

same unit of measurement of the signal, for this reason it can be understood more easily. In any case, the

meaning of RMS and mean square value is the same.

Then, there is the variance 𝜎

𝑥

2

Eventually, the maximum value is calculated: it represents the highest peak. It is the maximum point of the

signal compared to the mean value, whatever its sign. Thus, the crest factor represents the height of the

highest peak of the signal, normalized with respect to the RMS.

Let’s now see how the crest factor can be used in real applications. Let’s consider two signals, which are

representative of real signals in some applications.

For example, they may represent the vibration of the case of a machine moved by gears in two cases: on the

left there is the vibration when the gears are working properly, while on the right there is the vibration when

a gear has a damaged tooth. The crest factor can help to build an automatic system to recognize damages:

when a tooth is damaged, the crest factor is significantly higher due to the spike. The crest factor is the

correct index to use because:

  • Order 1 moment (mean value): it is almost the same in the two cases, the difference is not significant
  • Order 2 moment (RMS): as for the mean value

On the contrary, the CF increases of about 400%.

Why the maximum value of the signal cannot be used as indicator? Let’s suppose that the machine is not

damaged and that the speed of the shaft increases. If the speed increases, the vibration amplitude increases

as well and so the maximum value: it may be misleading.

On the other hand, in this case the CF would have almost the same value because both the numerator and

the denominator increase (the variance increases). This is why the normalization is needed.

Probability density function

The probability density function 𝑝(𝑥) at level 𝑥 is defined as the probability that an instantaneous value of a

signal is between 𝑥 and 𝑥 + Δ𝑥, where Δ𝑥 is infinitesimal. In other words, 𝑝(𝑥) is the probability that the

signal has a value equal to 𝑥 at a given time instant.

= lim

Δ𝑥→ 0

Where 𝑃(𝑥) is the cumulative probability function: it is the probability that the signal assumes a value equal

or lower than 𝑥.

1

𝑥 1

−∞

1

∞

−∞

The quantity 𝑃

is the probability that the value of the signal is between 𝑥 + Δ𝑥 and 𝑥 and

𝑥. 𝑃(𝑥) can be calculated as the time in which the value of the signal is lower than 𝑥, divided by the total

time:

So:

= lim

𝑇→∞

𝑛

Where each 𝑡

𝑛

represents one of the time intervals, within T, in which the signal lies between 𝑥 + Δ𝑥 and 𝑥:

If only samples are available, the probability 𝑃(𝑥) can be calculated as the number of samples below a certain

value divided by the total number of samples. The final result is:

Moreover, when dealing with a random signal, if the probability density function is known (i.e. the histogram

has been obtained), it is possible to understand if the process is stationary and ergodic. Let’s consider the

previous example, the dice game. The following graphs show the occurrence plot (bank 1) for 1000 game

repetitions (left) and for further 1000 repetitions (right). The distributions are similar because the

phenomenon is stationary.

Instead, the following graphs show the occurrence plot for 1000 game repetitions (banks 1,2,16 and 17). The

process is ergodic between banks 1 and 2 and between banks 16 and 17, since the distributions are similar.

There are also other two indexes that are relevant. The first one is the Skewness coefficient, which is an

asymmetry factor:

3

𝑖

3

3

𝑁

𝑖= 1

It defines a distribution asymmetry around its sample mean value:

  • Negative skewness means that data are more on the left than on the right side with respect to the

mean value

  • Positive skewness means a polarization of data towards the right with respect to the mean value

The skewness for a normal distribution (or whichever symmetrical distribution) is zero.

Lastly, there is the kurtosis coefficient (or flatness coefficient):

4

𝑖

4

4

𝑁

𝑖= 1

The definition is quite similar to the skewness coefficient, but now the powers of both numerator and

denominator are even (fourth-power), and then there is − 3 , which is just a normalization factor needed in

order to have 𝛼̂ 4

= 0 in the case of a gaussian distribution.

Kurtosis is an index of distribution width, as compared to a Gaussian (for which this index is null):

  • Negative kurtosis means a flatter distribution than a normal (Gaussian) one: there are less points on

the tails and more points close to the mean value:

  • Positive kurtosis means a sharper distribution than a normal (Gaussian) one: there are more points

towards the tails than close the mean value

4

has a clear sensitivity to high amplitude peaks thanks to the 4

th

power, so that it is a good tool to identify

the presence of peaks in signals. Usually, it gives a more stable value than the crest factor since it works on

the whole time record. As the crest factor, this index can be used, for example, in machines that contain

gears so to identify damages. Getting back to the previous example:

It can be observed that the skewness coefficient is

almost the same (the signal is not symmetric just for

a single point). Instead, the kurtosis coefficient

varies significantly, even though not as much as the

crest factor. So, in the case of a single spike (just one

damaged teeth) the crest factor is preferred.

But what happens when many teeth are damaged?

As it can be seen, many spikes are present. The mean

value and the RMS are similar to the previous values.

Instead, the crest factor is lower than the case of a

single teeth damaged, so it is not reliable as before.

On the contrary, the kurtosis coefficient is quite high:

even though the spikes are smaller, it still increases.

This happens because the kurtosis coefficient

considers all the points of the signal, so it can take

into account the number of spikes as well. In real

applications, usually both CF and kurtosis coefficient

are monitored. In fact, the CF is used to detect the

first damage while the kurtosis index is used for

further damages.

Sampling strategies & order tracking

The problems concerned with the sampling strategies that are going to be discussed are:

  • When to start the acquisition?
  • When to stop the acquisition?
  • How to carry out signal sampling?

The starting time is not important if the phenomenon is random. There is not a specific time instant that is

more significant than the others because the future values of the signal are unknown. So, there is no way to

define a priori the starting time. Different acquisition strategies can be used:

  1. Manual start/stop
  2. Start/stop linked to the intensity of the phenomenon (trigger on the signal level)

To understand what a trigger is, consider a deterministic signal (in blue). The trigger is a device that allows to

start the acquisition when a reference signal (trigger signal) exceeds a fixed value (TL) with a fixed slope (slope

In other words, the acquisition system monitors the signals and

when it reaches a certain intensity with a certain slope, the

acquisition starts. Obviously, the signal to monitor (trigger

signal) and the trigger level must be specified.

When acquiring random signals, the trigger signal is usually one of the signals to measure. Moreover, the

threshold level is often fixed in terms of RMS value computed over a significant time window.

For example, consider the measurement of wind intensity (m/s). Suppose to not be interested in a single gust

of wind but in constant high-strength wind. It is possible to distinguish between them by using a trigger on

the RMS value of the signal: the acquisition starts when the trigger level is overcame.

In any case, remember that this is just a way to select the data to acquire, there is not the need to start the

acquisition in a specific time instant due the nature of the signal (random).

Example – wind on a bridge: If a random phenomenon must be acquired in different points (i.e. different

sensors placed along the bridge), there must be a common start/stop to start the acquisition of the

transducers at the same time instant. Doing so, the signals coming from different devices can be

compared/correlated. To this purpose, an automatic acquisition system is needed.

On the contrary, in the case of deterministic phenomena the starting instant is much more important. If the

acquisition starts always in the same condition of the phenomenon, the time records will be almost identical.

The signal noise (which is always present) is random. The use of a trigger is necessary to synchronise the

different transducers and the subsequent acquisitions of the phenomenon. The trigger signal can be:

  • One of the signal to acquire (internal trigger)
  • An addition signal (external) which is somehow related to the physical phenomenon (external trigger)

For example, let’s suppose to have a mono-harmonic signal and to acquire the data with the same sensor at

different times. If the acquisition is started manually, the records will be something like:

i.e. they will be identical, but the initial phase will be different: it is impossible to compare the different

records to understand if the signal is evolving in time (i.e. the phenomenon is changing). (N.B. in this case is

quite easy to notice that the signal is the same and the records are just shifted in time, but usually

deterministic signal are much more complicated). So, in order to carry out the comparison is important to

use a trigger. Doing so, the signal will have the same initial phase.

To understand the difference between an internal and an external trigger, assume to study the dynamic

behaviour of a system. To this purpose, an impact hammer (i.e. an hammer with a load cell on its tip) is used

to make the system vibrate and measure the response (so to characterize its FRF). In this case, a trigger is

used on the input force:

In this case the trigger signal (the input force) is one of the signal that has to be analysed, it is involved in the

phenomenon. So, the trigger is an internal one. However, if the acquisition starts when TL is reached, the

first part of the response will be lost. So, a pre-trigger (which is a time) is used: the values of the signal in the

interval [𝑡, 𝑡 − 𝑝𝑟𝑒𝑡𝑟𝑖𝑔𝑔𝑒𝑟 ] are stored. The acquisition system is continuously acquiring data: if the trigger

condition is not satisfied after a certain time, these data are thrown away; vice versa, if it is satisfied, the

previous data are saved.

Trigger not used

Trigger used

Impact hammer - input force

System's response

Internal trigger