Electrical measurements report: uncertainty, BJT and spectrum
Electrical measurements report from a university lab: uncertainty from instrument specifications, propagation in indirect measurements, BJT characteristics and spectrum analysis.
https://www.electronics-engineering.com/en/electrical-measurements-report-uncertainty-bjt-spectrum/

This is the report of a university laboratory in electrical measurements: multimeter, oscilloscope, characterization of a bipolar transistor, parameter estimation in MATLAB and a spectrum analyser in LabVIEW. Reading it you learn how to state correctly the result of a measurement with its uncertainty, how to calculate it from the manufacturer’s specifications, how to propagate it in indirect measurements and how to choose the right window in spectral analysis. At the bottom of the page you will find the complete report in PDF.
Measurement and uncertainty
The result of a measurement never coincides exactly with the true value of the quantity: it is affected by errors that fall within an interval defined by the uncertainty. For this reason every result must be written together with its uncertainty, for example
.
- Direct measurements: the uncertainty is obtained from the accuracy specifications provided by the manufacturer of the instrument.
- Indirect measurements (a quantity calculated from other measured ones): the uncertainty is obtained by propagating those of the direct measurements.
In the report the uncertainties are calculated as maximum error (worst case). Today the international reference is the GUM (JCGM 100:2008) of the BIPM, which expresses the uncertainty as a standard deviation: a maximum error
with uniform distribution corresponds to a standard uncertainty
.
Instruments used
In the laboratory we used the HP 54600B digital oscilloscope, the HP 974A digital multimeter, the Wavetek FG3A waveform generator, 10X compensated probes, crocodile clip leads and a breadboard with the circuit to be analysed. To compare different instruments and to learn to read specifications written in different ways, the uncertainties were also calculated using the specifications of other instruments, as if the measurement had been repeated with them:
- HP 974A, Fluke 8060A and Norma D1216 multimeters;
- HP 54501A and HP 54600B digital oscilloscopes;
- National Instruments NB-A2000 and Lab-PC+ acquisition cards.
The calculations are in Excel tables, with functions written in VBA that describe the behaviour of each instrument: the code is given in the report next to each table.
Structure of the report
- Test B: multimeter as continuity detector, diode test and precision ohmmeter; oscilloscope with two traces in normal and XY mode; characterization of the BJT with manual (XY mode) and automatic (normal mode) measurements.
- Test C: automatic estimation of the BJT parameters with a MATLAB program.
- Test D: digital spectrum analyser built in LabVIEW.
Test B: continuity, earthing and circuit
Single-ended and earthed instruments
With the continuity test the generator and the oscilloscope were classified from the point of view of earthing. Both are single-ended: there is continuity between the outer shells of the BNC connectors of the oscilloscope (and between those of the generator outputs), so all the channels share the same reference. Both are also connected to earth: there is continuity between those shells and the earth conductor of the plug.
The circuit on the breadboard

- R1: 100 Ω resistor, 5 % tolerance, 1/4 W;
- R2: 120 Ω resistor, 5 % tolerance, 1/4 W;
- R3: 470 Ω logarithmic potentiometer, 1/4 W;
- R4: 10 kΩ logarithmic potentiometer, 1/4 W;
- TR: isolation transformer; E: battery;
- BJT: NPN transistor under test (BC107).
The continuity test also verified the isolation of the transformer: there is no continuity between primary and secondary. The transformer is needed because the oscilloscope grounds are connected to earth: without it, connecting the probe ground to a point of the circuit that is not at earth potential would create a short circuit through the earth conductor. The isolated secondary leaves the circuit floating and lets us choose the reference point.
Measuring the resistances
The multimeter replaces the tolerance range with the much narrower range of the measurement uncertainty. Values measured with the HP 974A:
| Resistance | Measured value | Nominal value |
|---|---|---|
| R1 | 102.6 Ω | 100 Ω |
| R2 | 119.0 Ω | 120 Ω |
| R3 (maximum) | 521 Ω | 470 Ω |
| R4 (maximum) | 9.87 kΩ | 10 kΩ |
R1 and R2 are within the 5 % tolerance. The specifications of the HP 974A as an ohmmeter (4½ digits, 50 000 counts) on the 500 Ω range are: resolution 10 mΩ, accuracy ±(0.06 % + 2 counts). In the report the maximum absolute error is
![]()
where
is the gain error (the percentage part),
the quantization error and
the offset and non-linearity error (the counts of the specification multiplied by
).
Worked example: direct and indirect measurement
For R1 = 102.6 Ω on the 500 Ω range:
, so
, that is 0.084 %. For R2 = 119.0 Ω one obtains
(0.081 %).
In indirect measurements, for a difference the absolute errors are added, for a ratio the relative ones:
![]()
So
with
, and
with a relative error of 0.165 %, that is
. Note how the difference of two close values has a relative uncertainty (about 1.1 %) much larger than that of the single measurements.
BJT characteristics with the oscilloscope
The voltage across R1 is proportional to the collector current (
) and goes to one channel; the collector-emitter voltage goes to the other. In XY mode the screen directly traces the output characteristic
for the base current set with R3 and R4 and read on the ammeter. In normal mode the two traces are acquired over time and saved for automatic processing.
Test C: BJT parameters in MATLAB
A MATLAB program estimates the transistor parameters from the data saved by the oscilloscope in test B, with a simplified model of the output characteristic derived from the Ebers-Moll model with the Early effect: collector current with open base
, product
between emission coefficient and thermal voltage, current gain
and Early voltage
. For
above about 1 V the exponential term is negligible and the characteristic is a straight line, estimated by least squares; the exponential term is then estimated with a second linear regression on the logarithm. The gain obtained almost coincides with the one measured in the first part.
Test D: spectrum analyser in LabVIEW
In the last test a digital spectrum analyser was built in LabVIEW: a signal generator (sine, square, triangular), a noise generator (uniform or Gaussian white), a block that applies the window and computes the spectrum with the FFT, and a block that estimates the amplitude and frequency of the main line. The choice of window decides the trade-off between amplitude accuracy and frequency resolution; its equivalent noise bandwidth (ENBW, in bins) is used to correct the estimates:
| Window | ENBW (bins) | Typical use |
|---|---|---|
| Rectangular | 1.00 | signals with frequency exactly on one bin |
| Hann | 1.50 | general use |
| Hamming | 1.36 | close lines |
| Blackman | 1.73 | lines of very different amplitude |
| Blackman-Harris (4 terms) | 2.00 | large dynamic range |
| Flat-top | 3.77 | precise amplitude measurement |
In the report the Hann window is called by its old name “Hanning”. The original project was written with LabVIEW 6.
The instruments today
The HP measuring instruments passed to Agilent in 1999 and then to Keysight in 2014; the NB-A2000 (NuBus bus) and Lab-PC+ cards have long been out of production and today USB or Ethernet acquisition modules are used. The methods, however, are the same: read the specifications, calculate and propagate the uncertainty, choose the window.
In summary
- Every measurement is stated with its uncertainty; for direct measurements it is obtained from the manufacturer’s specifications.
- In indirect measurements the absolute errors add up for sums and differences, the relative ones for products and ratios.
- Single-ended, earthed oscilloscopes and generators require an isolation transformer to measure on a floating circuit.
- In XY mode the oscilloscope traces the output characteristic of the BJT; MATLAB estimates its parameters by least squares.
- In spectral analysis the window (and its ENBW) determines amplitude accuracy and resolution.






Benvenuti nella pagina su «Prova di Laboratorio e Relazione di Misure Elettriche». L'ho scritta pensando a chi studia ingegneria elettronica: se un passaggio non vi torna, un esercizio vi dà un risultato diverso o volete altro materiale sull'argomento, chiedete pure nei commenti e vi risponderò. Un voto con le stelle qui sopra mi aiuta a capire quali pagine migliorare.