You are on page 1of 5

Measurement 95041--Pro318

The auto-diagnosis system of an


intelligent measuring instrument

F. F e r r a r i s and M . P a r v i s
Dipartimento di Automatica e Informatica, Politecnico di Torino,
Corso Duca degli Abruzzi 24, 10129, Torino, Italy

The methodological aspects and the design of the automatic self-diagnosis (auto-
diagnosis) system of a high-performance measuring instrument for electrical
quantities are described. The auto-diagnosis system can recognise ~not only severe
failures which require out-of-service instrument setting, but also slight failures simply
affecting accuracy or not basic features; in the latter case, the instrument is set
working in degraded conditions. The auto-diagnosis process is performed making
reference to the instrument architecture, based on independent and interconnected
functional units, and using an analysis technique, called 'extending ring', to detect
failing subsystems.
The auto-diagnosis system is divided into two main parts, conceived for separate
aims: one is named 'off-line full test auto-diagnosis system' and performs, at power
up or on user request, a full comprehensive test; the other, named 'on-line
auto-diagnosis system', continuously monitors the instrument behaviour while
operating normally to reveal failures or error conditions that can derate the whole
performance.

Keywords: measuring instrument, microprocessor, auto-diagnosis, extending ring

Introduction results of the auto-diagnosis procedures are not only


'pass-fail' responses, but also statements such as 'the
The auto-diagnosis system in a high-performance instrument is being used in degraded conditions' (ac-
microprocessor-based measurement instrument is not an curacy or feature loss); such conditions cannot usually be
optional feature. Such apparatus is so complex and detected by inspecting measurement results only, but
available data processing features so powerful that not require a more complete test to be executed.
only must the failure diagnosis be performed by experi- The auto-diagnosis method is referred to the chosen
enced testers, but the very existence of a failure may be instrument architecture, which is based on strongly
difficult to notice; in fact, slight failures may easily be independent functional units (the most important are
misunderstood and remain unrecognised if only measure- pointed out in Ferraris et al, 1987) and has a high level of
ment results are considered, so that the instrument may modularity. The management section, microprocessor-
be kept in use even if uncertainties are out of the rated based, is logically separate from the data conversion,
values. acquisition and processing systems; information is
In this article we describe the auto-diagnosis system interchanged by a fast and simple communication
of a particular high-performance measuring instrument protocol.
(see Parvis, 1986, and Ferraris et al, 1987, for the To perform the tests, the well known loop-back techni-
description of the whole apparatus), but the metho- que has been chosen - i e, information is 'written' into the
dological aspects and the design features can be extended tested unit using digital or analogue signals (stimuli) and
to most intelligent measuring systems. the unit outputs (responses) are 'read' through the
The auto-diagnosis is obviously carried out on both management section communication lines; then the man-
digital and analogue circuits, but, for the sake of brevity, agement section performs failure detection by means of
in this article we point out only the analogue circuits and the stimuli and responses knowledge, processed accord-
related digital ones, rather well known techniques having ing to a functional model of the unit under test.
been used for the merely digital circuitry, The auto-diagnosis philosophy, carried out for the
analogue and the related digital devices, is based on tests
performed by an 'extending ring' technique. In Fig 1 two
successive steps of such a process are sketched. In the first
Auto-diagnosis philosophy
the DUT (Device Under Test) 1 is tested, linking the
It is worth stating that we intend to use the term 'auto- decision unit to the DUT 1 input and output channels
diagnosis' in a quite wide sense: in our meaning, the (suitably chosen) by means of a stimulation unit and a

176 Measurement Vol 5 No 4, Oct-Dec 1987


Ferraris and Parvis

o)
DISCONNECTED
TESTING SYSTEM } INPUTS

IDUT2 I

I i DISCONNECTED
DECISION I OUTPUTS
UNIT

T i
D,NO
. L I
UNIT F

_ __ J

b)
DISCONNECTED DISCONNECTED
TESTINGSYSTEM I INPUTS INPUTS

STIMULATION {
UNIT
7J I q DUT 2 -- - -

I I DISCONNECTED
OUTPUTS
DISCONNECTED
OUTPUTS
Fig 1 'Extending ring' auto-diag-
nosis process example:
I 0Ec,s,ON I (a) First step: The DUT 1 is being
UNIT tested. The inputs and outputs of
the D UT 2 are disconnected. The
J T non-involved DUT 1 inputs and
outputs are disconnected
I I "D,N0 L I (b) Secondstep: The DUT 2 is being
UNIT F tested, using D UT 1 jor informa-
J tionflow. The non-involved inputs
and outputs are disconnected

reading unit; the D U T 1 inputs (and, when necessary, To satisfy the auto-diagnosis process exigencies, some
some outputs) not related to the auto-diagnosis process rules must be followed:
are disconnected. In the second step the test is extended to
the D U T 2 with the same ring structure, using the already A Key points must be found out and auxiliary circuitry
tested D U T 1 as a communication channel. Therefore, in must be added for stimulating purposes, in order to
a typical step, the information interchange between make it possible to observe the functional unit res-
testing system and component under test is carried out by ponse from pre-defined initial conditions.
means of a ring in which devices tested in previous steps B It must be possible to disconnect and settle to a known
are also involved. value the functional unit inputs, when not involved in
According to this philosophy, the whole functional unit an auto-diagnostic procedure.
test is performed first on the devices which compose the C The outputs and some internal quantities of every
unit communication core (for example, buses and related functional unit must be made available to the manage-
drivers); then it is progressively extended to the remaining ment section.
devices as far as the unit is completely tested. D It must be possible to open feedback loops, in order
This approach is particularly suitable for measurement to remove their failure masking effects.
instrumentation analogue circuits, in which, in general, it E The clock rate must be selectable, to allow the instru-
is easy to find out cascade or loop connections between ment to run more slowly during the auto-diagnosis
components, having few input channels. In this case, it is process.
also rather easy to design and implement simple hardware In our instrument these features have been mainly
solutions for connecting and disconnecting the devices to obtained with a careful initial design. It is also worthwhile
be tested. pointing out that the auto-calibration circuits are, to a
Measurement Vol 5 No 4, Oct-Dec 1987 177
Ferraris and Parvis
great extent, suitable for the auto-diagnosis process; so, (d) Slight[hilure: it regards failures of components which
only a little amount of additional circuitry was needed. perform functions not affecting basic instrument
working; thus, the user can still use the instrument,
although without some feature.
Auto-diagnosis system (e) Severe.failure: this failure concerns components which
affect the basic instrument working or which are
Generalities possible sources of failure propagation to other
devices; in this case, the safety circuits are started and
The whole auto-diagnosis process is split into several the instrument is set out of service.
specific tests, shown in the next paragraphs, performed
on the functional units to be proved. Each of them Information from all performed tests is processed by
interacts with the functional units which perform the the management section and the operator is given one
management of the instrument, as shown in Fig 2. of the following possible messages, which are directly
In order to execute a test, the auto-diagnosis system related to each of the five test results listed above 1'
manages its stimulating circuits and directly reads the (A) OK: instrument usable
responses ('stimulator' and 'reader' circuits in the figure). (B) Incipient failure: instrument usable, but to be serviced
it is obvious that when, as mentioned at the end of the (C) Loss of accuracy: instrument working in degraded
preceding paragraph, circuits and procedures needed for conditions
auto-calibration are also suitable for the auto-diagnosis (D) Slight failure: instrument working in degraded
process, the auto-diagnosis system simply drives the conditions
auto-calibration tasks and reads the corresponding (E) Severe failure: instrument not usable.
results.
The block diagram in Fig 3 sketches visually the whole
Then, for every test, a diagnostic decision is taken using
process, also pointing out other operations performed by
stimuli and responses information. Possible results are:
the auto-diagnosis system.
(a) OK: everything is working well. If the instrument is usable (cases A, B, C or D), after
(b) lneipient .failure: peculiar to some slowly evolving processing the test results and the content of the historical
failures, it is detected on the basis of related auxiliary memory (see next paragraph), a short-term performance
quantities measurement (for example, the decreasing
commutation speed of digital components or the
increasing temperature of analogue devices). This
condition does not affect any feature or the accuracy, Note 1 It is obvious that:
but must be considered, because of its possible (a) the combination of more than one fault may give rise to
consequences. an overall malfunctioning of a new kind (eg, two slight
failures may correspond to a severe failure);
(c) Loss qf accuracy: this warning is sent when some (b) unless expressly stated, it is convenient to stop auto-
component (usually an analogue one) is working diagnosis and to send a fault message - when an overall
badly, in such a way that only an accuracy loss results. severe failure condition is revealed.

STIMULI ~ ~I~ ESTIMATED


CORRECTION MEASUREMENT
AUTOCALIBRATION AND UNCERTANTIES
UNCERTAINTIES
RESPONSES PROCESS ESTIMATION
q PROCESSES
COMMANDS RESULTS

FUNCTIONAL AUTODIAGNOSIS
O.K. -T
LOSS OF ACC.
j
I.~l
MANAGEMENT
-1 TO THE
USER
INClP. FAIL. J
UNIT TESTS
SLIGHT FAIL. 3
SECTION
UNDER TEST
SEVEREFAIL.~I r I

AUTODIAGNOSIS PROCESS
[__ J
SAFETY
CIRCUITS

Fig 2 The auto-diagnosis process interactions with the other functional processes
178 M e a s u r e m e n t Vol 5 No 4, Oct-Dec 1987
Ferraris and Parvis

~ ULI

~ ENVIRONM.AND
ANALYSS., J

PERFORMANCE
PREVISION

Fig 3 Full-test auto-diagnosis block diagram

prevision is emitted. The test results will also be used, Each of these is highlighted in the next paragraphs.
m normal working, to correct the measurements carried
out and to improve the uncertainties estimation. Full-test auto-diagnosis
If any problem arises during tests (cases B, C or D), a
failure analysis is performed to obtain reparation aids This task performs the complete test set inside the
and hypotheses about failures aggravation are presented. instrument and checks over the metrological and func-
In terms of operating tasks, the complete auto- tional performances.
diagnosis system can be logically split into two major Test running is incompatible with normal working, so
tasks, conceived for separate aims: it is carried out off-line, at power up, on user request
or when the on-line fast test detects serious problems.
• full-test off-line auto-diagnosis; For a good test a hardware improvement is usually
• on-line fast test. required, but, as mentioned above, this is not normally

INPUT SIGNAL
SUCC. APPR. A/D CONV. COMPAR.
OUTPUT
= "-F °

MAIN ] CONVERT.
I D/ACONV. [ D/A CONV. OUTPUT
?, >

I PROGRAMM. S. A. R. h
VOLTAGE S-
REFERENCE II
T~ PARALLEL
SAR INPUT
II
is
COMMAND

Fig 4 A simplified high-performance instrument input stage designed to be suitable for the diagnosis process. Dashed
lines indicate the new access points. PA : programmable amplifier, C: comparator, SAR: successive approximation register
Measurement Vol 5 No 4, Oct-Dec1987 179
Ferraris and Parvis
a severe problem because of the slight modifications and programmable amplifier) are continuously tested
needed. A simple example, clarifying the concept, is to reveal potentially dangerous failures while still in
sketched in Fig 4, where a simplified high-performance asymptomatic stage; test results are then processed in
instrument input stage is presented: a powerful test can order to obtain a fail-safe behaviour. The monitoring
be easily carried out with only two access points (high- process can be:
lighted in the figure with dashed lines and italic • direct, ie, applied to the potentially dangerous
characters) 2. quantities (for example, voltages or currents in
The analogue full-test auto-diagnosis can be viewed as selected points measured and checked with bound
a superset of the self-calibrating procedures and is carried values);
out in two steps. • indirect, ie, applied to quantities related to normal
I The first step is just a static calibration cycle performed work (for example, the temperatures of some com-
by means of a calibration standard. The scaling and ponents or the instrument supply current).
correction parameters extracted in this step are used 2 As frequently as possible (at the end of the measuring
to calibrate the measuring channels, but are also stored interval or during the acquisition process, if the samp-
and compared with the old parameters recorded in a ling rate allows it), known standard signals are
permanent memory (environmental and historical measured and measurement results are compared with
memory); in such a way a calibration history is the known values.
obtained, allowing the prediction of the short-time ifa failure or accuracy loss is recognised, the instrument
behaviour by means of a previously identified degrad- automatically stops the normal working and starts the
ation model. full-test procedures.
2 In the second step the instrument behaviour is checked
under dynamic conditions by means of 'analogue
stimuli' provided inside the apparatus. We have used Conclusions
three types of stimuli:
• Slow triangular waves, to monitor all the A/D The main characteristics of an auto-diagnosis system
converter states, revealing problems as missing designed for a specific instrument have been presented.
codes. Methodological aspects and solutions adopted are refer-
• Programmable fast triangular waves, to test the red to an instrument architecture of such a generality that
measuring channels at high-speed sampling rate, can be easily extended to most intelligent measuring
revealing problems as slew-rate limitations. systems.
• Microsteps superimposed on a programmable con- Particular emphasis has been given to a test strategy
stant voltage (see also Souders, 1982), to monitor based on an 'extending ring' technique, suitable for
the fast dynamic response of both converter and instruments whose functional units architecture is well
signal conditioning devices, revealing problems as definable.
parasitic oscillations. The described auto-diagnosis process requires only
little hardware improvements due to the strong con-
nection between it and other processes; in particular, the
On-line fast test auto-calibration one, which allows it to share significant
parts of the circuitry.
While operating, the complete test set and the sophistic-
The system has not been completely implemented yet,
ated results analysis described above are not strictly
but it seems to be suitable for this kind of apparatus,
necessary, but it is important only to warrant the user especially if it will be realised (as it has been planned) as
that the instrument still meets the main specifications.
an 'expert system' whose task is to manage the auto-
The requirement is obtained in two ways:
diagnosis procedures, modifying them, if necessary,
I Hardware critical elements (for example, A/D converter according to the exigencies of high-level users and the
evolutional history of the instrument itself.
Note 2 A possible test procedure can be sketched as follows:
(a) Digital tests are performed by loading, via parallel input,
suitable patterns to the Successive Approximation References
Register (SAR) and by monitoring the converter output.
(b) Functional tests are executed on comparator and bias Ferraris, F., Gorini, I. and Parvis, M. 1987. 'Intelligent
D/A converter, using the latter D/A to force comparator multi-input instrument for electrical measurements',
switching. Measurement, 5(2), 55--60.
(c) Functional and static characteristic tests on D/A con-
verters are obtained by monitoring the comparator out- Parvis, M. 1986. 'Strumento intelligente per la misura di
put while both D/A converters are handled. grandezze elettriche', Doctorate thesis by Politecnico
(d) Auto-calibration of the A/D converter is performed, di Torino.
using the programmable voltage reference.
Souders, T. M. 1982. 'A dynamic test method for high-
(e) Dynamic tests on the A/D converter are executed using
the bias D/A converter as stimulator and presetting the resolution A/D converters' I E E E Trans on I M , IM-
main D/A converter by the SAR parallel input. 31,1,3 5.

180 M e a s u r e m e n t Vol 5 No 4, Oct-Dec 1987

You might also like