LabVIEW Based Automation
LabVIEW Based Automation
Satyakesh Dubey
Naina Narang
Parmendra Singh Negi
Vijay Narain Ojha
LabVIEW Based
Automation
Guide for
Microwave
Measurements
123
SpringerBriefs in Electrical and Computer
Engineering
Series editors
K.J. Vinoy, Bangalore, India
Rakesh Mohan Jha (Late), Bangalore, India
More information about this series at http://www.springer.com/series/13885
Satyakesh Dubey Naina Narang
•
123
Satyakesh Dubey Parmendra Singh Negi
Microwave Standards, TFEEMD CSIR-National Physical Laboratory of India
CSIR-National Physical Laboratory of India New Delhi
New Delhi India
India
Vijay Narain Ojha
Naina Narang Microwave Standards, TFEEMD
CSIR-National Physical Laboratory of India CSIR-National Physical Laboratory of India
New Delhi New Delhi
India India
v
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 LabVIEW Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1 Basic Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1.1 Virtual Instruments (VI) . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1.2 Front Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1.3 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 LabVIEW Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Virtual Instrumentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3.1 Virtual Instrumentation Foundation . . . . . . . . . . . . . . . . . . . 6
2.3.2 General Purpose Interface Bus (GPIB) . . . . . . . . . . . . . . . . 6
2.3.3 Standard Commands for Programmable Instruments
(SCPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3.4 Instrument Control in LabVIEW . . . . . . . . . . . . . . . . . . . . . 8
2.4 Advanced LabVIEW Programming Techniques . . . . . . . . . . . . . . . 9
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Microwave Measurement Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1 Basic Microwave Instruments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1.1 Microwave Signal Generators . . . . . . . . . . . . . . . . . . . . . . . 12
3.1.2 Microwave Receivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2 Basic Microwave Measurement Methods . . . . . . . . . . . . . . . . . . . . 14
3.2.1 Attenuation Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2.2 Microwave Power Measurement . . . . . . . . . . . . . . . . . . . . . 17
3.2.3 Scattering Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.3 Uncertainty Evaluation in Attenuation Measurement . . . . . . . . . . . 19
3.3.1 Uncertainty in Power Ratio Technique . . . . . . . . . . . . . . . . 20
3.3.2 Uncertainty in IF Substitution Technique . . . . . . . . . . . . . . 21
3.3.3 Comparison of Measurement Results . . . . . . . . . . . . . . . . . 21
vii
viii Contents
3.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.5 Precap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4 Software Development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.1 LabVIEW-Based Automatic Measurement System . . . . . . . . . . . . . 25
4.1.1 Software Requirement Specifications. . . . . . . . . . . . . . . . . . 26
4.1.2 Design of Graphical User Interface (GUI) . . . . . . . . . . . . . . 26
4.1.3 Configuring Transmitter, DUT, and Receiver . . . . . . . . . . . 28
4.1.4 System Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4.1.5 System Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4.1.6 System Features and Drivers . . . . . . . . . . . . . . . . . . . . . . . . 32
4.2 Software Validation and Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5 Measurement Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.1 Data Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.2 Uncertainty Evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.3 Comparison of Results with Manual Measurements . . . . . . . . . . . . 39
5.4 Report Generation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
List of Figures
ix
x List of Figures
xi
About the Authors
xiii
xiv About the Authors
attenuation with high accuracy and is author of more than 100 journal and con-
ference papers.
metrology laboratories and wish for a faster execution of the experiment with the
use of customized automation software.
This book is divided into six chapters. Chapter 2 provides the basic knowledge
about the LabVIEW and its programming for instrument control. LabVIEW, i.e.,
Laboratory Virtual Instrument Engineering Workbench, is a graphical program-
ming language developed by NI for customized solution in test and measurement
laboratories. The chapter explains the control of the commonly used instruments
and devices in microwave measurements using LabVIEW. It will be seen that
LabVIEW provides an easy and fast way for automating measurements. It can be
used to control the instruments using bus level communications in a more
user-friendly way as compared to C, .NET, or MATLAB codes.
Chapter 3 introduces the readers with the common microwave measurements,
their execution, uncertainty evaluation, and applications.
Chapter 4 describes the detailed procedure of the software development process
and addresses the major considerations for ensuring the software validity and
compliance with the quality standards that are required to use the software in
metrological applications. The book guides the engineers and technicians for
implementing complete calibration software with enough details to start from
scratch.
Chapter 5 discusses the measured results and evaluation of uncertainty in the
measurement. Comparison of the results with manual execution is reported for
every example to ensure the benefit of the end user. Data collection, analysis, and
report generation are explained in detail.
Chapter 6 concludes carried out study. A completely automated calibration
process for microwave measurements is created and concluded.
An ample number of examples, illustrations, flowcharts, measurement results,
and screen shots of a worked out automation software for microwave measurement
are incorporated to provide real-life experience to the readers.
Chapter 2
LabVIEW Programming
This chapter provides the basic knowledge about the LabVIEW and its program-
ming for instrument control. LabVIEW, i.e., Laboratory Virtual Instrument
Engineering Workbench, is a graphical programming language used by test and
measurement researchers and engineers for building customized software solution
to their experiments [1–3]. It has an easy approach and can be used with ease. The
chapter provides sufficient information to the reader for starting basic programming
in LabVIEW for instrument control. This chapter can be used as a guide to connect
the instrument to the computer system and basic input/output instructions. The
programming in LabVIEW environment is based data-flow method and is mostly
graphical and easy to understand.
The chapter will provide the brief introduction to LabVIEW, LabVIEW pro-
gramming and its instrument control capabilities. It will cover the basic features to
give an understanding of the LabVIEW programming language and its environ-
ment. Examples for controlling the RF instruments explained in this chapter will
help to develop calibration suite for attenuation given in Chap. 4.
In this section, we will discuss the basic concepts about LabVIEW and its pro-
gramming technique. The section is self-contained and is sufficient to understand
the basics of instrument control using LabVIEW.
Virtual Instrument (VI) is the file on which LabVIEW coding is done. It comprises
two components—front panel and block diagram. The front panel is used to provide
© The Author(s) 2018 3
S. Dubey et al., LabVIEW Based Automation Guide for Microwave Measurements,
SpringerBriefs in Computational Electromagnetics,
https://doi.org/10.1007/978-981-10-6280-3_2
4 2 LabVIEW Programming
the control components such as a regulatory knob, string input, numerical input or
string display. The front panel serves as the graphical user interface and can be
easily designed. The block diagram, on the other hand, consists of the programming
functions such as algebraic operations, instrument input/output, signal processing,
data communication, and error handling. The programming logic is implemented on
the block diagram using the different functions available with it.
The front panel which also serves as the graphical user interface for LabVIEW
application is used to simulate the input and output mechanism. The input from the
user which is to be sent to the instruments can be entered through the numeric
controls, text controls, or Boolean input. Similarly, for the displaying the output
numeric, text, and Boolean indicators are used on the front panel. Figure 2.1 shows
the numeric and string controls and indicators that can be used to design the front
panel. The controls are driven by the user, and the indicators are used to display the
execution results. In the figure, Numeric 1 and Numeric 2 are the numeric controls,
String is the text control, Result is the numeric indicator, and String Length is the
text indicator.
The front panel shown in Fig. 2.1 will automatically be accompanied by the block
diagram. Pressing Ctrl + E opens the block diagram. For the previous example, the
node used for the controls and indicators will automatically appear on the block
diagram. Figure 2.2 shows the corresponding nodes of the control and indicators
used in Fig. 2.1. There are various functions available on the block diagram, for
example, the arithmetic operation of addition is used to add Numeric 1 and Numeric
2. Also, programming operations on text can also be done, for example, string
length function is used on String Control to calculate the string length indicated on
the String Length indicator.
It can be realized by the LabVIEW user that LabVIEW provides an easy and
shortcut methods to basic programming problems. As in the given example, the
string length function is an easy way that takes off the burden from the programmer,
unlike the other programming languages, to write a detailed code for retrieving the
length of the string.
end and GPIB compatible instrument(s) at the other end, then the PC can be used as
a system controller for the connected instrument(s). The main features of this bus
are the following:
• Standardized as IEEE 488
• 8-bit parallel communication using asynchronous handshaking protocol
• The bus has 24-pin configuration where eight are data lines, five are bus
management lines, three are handshake lines, and eight are ground lines
• One system controller and 14 instruments can be connected to a single GPIB
• The GPIB instruments on the bus are uniquely identified by 5-bit GPIB
(Primary) address ranging between 0 and 30.
Using the NI Measurement and Automation Explorer (MAX), one can detect
and configure the connected GPIB instruments on the PC. Figure 2.4 shows a GPIB
instrument detected by the NI MAX. This is possibly the first step toward the
learning of instrument control and virtual instrumentation.
Fig. 2.4 NI measurement and automation explorer (MAX) for detecting GPIB instrument
8 2 LabVIEW Programming
Fig. 2.4, the GPIB instrument with primary address 28 is connected to the PC.
Using the NI-488.2 Communicator, one can communicate with the instrument by
sending the query. For example, when string *IDN? is sent as a query, the detailed
identity of the connected instrument is returned. Here, *IDN? is an SCPI command.
To start instrument control using LabVIEW, one must be acquainted with the GPIB
or Virtual Instrument Software Architecture (VISA) functions. Figure 2.5 shows
the input and output wires of GPIB read and write functions. GPIB read function is
used to retrieve the information from the GPIB device to the controller, i.e., the PC
and GPIB write is used for sending the command from the controller to the con-
nected GPIB instrument.
The use of these two functions is shown in Fig. 2.6. The *IDN? command sent
to the source of GPIB address 28 using NI MAX is shown in Fig. 2.4. The same
operation may be programmed on LabVIEW, as given in Fig. 2.6, using simple
GPIB write and read functions. In the same manner, other SCPI commands can be
sent and bus data can be retrieved for the development of LabVIEW application for
instrument control. In Chap. 4, you will see that GPIB read and write functions are
used to develop the attenuation measurement suite on LabVIEW virtual instrument.
Fig. 2.6 Simple GPIB read and write functions used to communicate with the connected GPIB
device
Although the programming capabilities of LabVIEW are large in number, only the
techniques used in the subsequent chapters are discussed in this section. The major
focus of this book is to provide the basic introduction to the programming tech-
niques required to automate the commonly used microwave tests and measure-
ments. Previously, the use of GPIB read and write function is demonstrated which
plays an important role in GPIB instrument control. Additionally, the advanced file
functions, dialogs, and user interface functions facilitate the development of
user-friendly virtual instrument. The use of these advanced LabVIEW features will
be demonstrated in Chap. 4.
References
Depending on the type of the measurement, generator and receivers vary from one
setup to another. For example, if attenuation is being measured for a fixed or step
attenuator, then the source can be a signal generator which may or may not be a
synthesized source. Similarly, the receiver varies. For attenuation measurement,
© The Author(s) 2018 11
S. Dubey et al., LabVIEW Based Automation Guide for Microwave Measurements,
SpringerBriefs in Computational Electromagnetics,
https://doi.org/10.1007/978-981-10-6280-3_3
12 3 Microwave Measurement Systems
The detection of a signal at the receiver end is important for any measurement. The
detection techniques are evolving day by day. Some of the commonly used
receivers in microwave tests and measurements are shown in Fig. 3.2.
(a) Power Sensor and Meter:
There are different techniques to measure microwave power. Based on the user
requirements, the techniques are adopted. The three main methods are given in
Fig. 3.3. Thermocouple- and thermistor-based power sensors are usually used for
higher accuracy, linearity, and stability. Diode detectors are widely used otherwise
where high accuracy is not essential.
against the tuned receiver which has the better dynamic range and sensitivity. For
further details on the microwave devices, one may refer to Carvalho and
Schreurs [1].
Once the reader is acquainted with the microwave measurement devices, it may get
easier to understand the measurement of different microwave parameters (Fig. 3.4).
where P1 is the power indication without the attenuator in line, and P2 is the power
indication with the attenuator in line. The basic measurement setup is shown in
Fig. 3.5.
Fig. 3.4 The essential microwave parameters and their measurement discussed in this chapter
3.2 Basic Microwave Measurement Methods 15
The main techniques used for microwave attenuation measurement are power
ratio technique and IF substitution technique.
(a) Power Ratio Technique:
In Fig. 3.5, the receiver can be a power meter, VM-7 or a spectrum analyzer
depending on the measurement principle being implemented. If power ratio tech-
nique is being used to measure attenuation, then the receiver will be a power meter,
shown in Fig. 3.6. It is perhaps one of the easiest to configure. In power ratio
technique, the power sensor is preceded by a matching attenuator pad to an RF
source followed by a power sensor and the power meter indication is noted as P1.
Next, the device under test is inserted between the matching pad and power sensor.
Again the power meter indication is noted say, P2. The insertion loss is then
calculated using Eq. (3.1). Note that, unless the reflection coefficient of the
Fig. 3.6 Power ratio technique a Schematic Diagram. b Attenuation measurement system
controlled by the PC using LabVIEW application
16 3 Microwave Measurement Systems
generator (CG) and load (CL) at the insertion point is known to be zero, in Fig. 3.5,
or that the mismatch factor has been calculated and taken into consideration,
measured insertion loss and no attenuation is quoted. It is because the attenuation is
the property of the two-port network, whereas it is insertion loss which considers
the mismatch losses of signal generator and load (CG and CL).
(b) IF Substitution Technique:
If Intermediate Frequency (IF) substitution technique is implemented, then the
basic measurement system shown in Fig. 3.5 modifies as shown in Fig. 3.7. In the
IF substitution technique, the system compares the attenuation through the device
under calibration with an IF attenuation standard. A mixer along with an IF receiver
is introduced into the measurement system to generate the desired IF frequency. To
perform this substitution method, two different RF sources are required. A mixer
with calculated nonlinearity is deployed between the RF source and Local oscil-
lator. The mixer is a three-port device, two RF source will act as an input of the
mixer, and the difference between these frequencies will generate an intermediate
frequency on the output port. In the measurement, 30-MHz substitution technique is
deployed because of the 30-MHz tuned receiver (VM7), shown in Fig. 3.7. Here,
VM7 is a 30-MHz tuned receiver with the in-built local oscillator.
Scattering parameters define the forward and reverse wave propagation through a
network. Abundant literature is available on the theoretical elucidation of
S-parameters [3]. A brief description here will help in understanding the basic
concept of S-parameter and its measurement. Considering the example of a
two-port network, shown in Fig. 3.10, S-parameters should define input and output
from the network. In general, the S-parameters for a two-port network can be
given as
Fig. 3.9 An example of RF system that exploits the linearity advantage of power sensors—Fluke
96270A 27 GHz low phase noise reference source. Courtesy Fluke Calibration
where a1 and a2 are the signals entering the Port 1 and Port 2 of the two-port
network and b1 and b2 are the signals leaving the respective ports.
So, for characterizing a two-port network for its S-parameters, a VNA com-
prising of a RF source, bridges/couplers, mixers, and tuned receiver are required in
order to measure the forward and reverse signals at both the ports.
3.3 Uncertainty Evaluation in Attenuation Measurement 19
where UA is the Type-A and UB1…UBn are the Type-B uncertainty contributors [4].
And the expanded uncertainty (U), defined as a “quantity defining an interval about
the result of a measurement that may be expected to encompass a large fraction of
the distribution of values that could reasonably be attributed to the measurand”, is
given by equation
U ¼ k UC : [ ð3:6Þ
Apart from these errors, the error in the power ratio technique includes the power
sensor linearity. The Power Ratio Technique is simple and easy to configure, but it
has some limitations, such as amplitude drift, which is directly proportional to the
signal generator output amplitude drift, zero carry over, and power linearity of the
power sensor. The power sensor linearity is a key source of error in power ratio
technique as per mismatch uncertainty is concerned. Diode power sensors,
described by Cherry et al. [6], may be modeled by the following equation:
where Pin is the incident power, Vdc is the rectified DC voltage, and x and y are the
constants which are functions of parameters such as temperature, ideality factor, and
video impedance. However, power sensor linearity can be improved as given in [7].
3.3 Uncertainty Evaluation in Attenuation Measurement 21
where CG, CD are the reflection coefficient of the source and the detector, CI1, CI2
are the input reflection coefficient of the DUT for two settings of attenuation, CO1,
CO2 are the output reflection coefficient for two settings of attenuation and A1, A2
are the attenuation values of the DUT in the two settings.
Lab Ref
En ¼ pffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
2 þ U2
; ð3:9Þ
ULab Ref
where Lab is the measurement value, Ref is the reference value, ULab is the
uncertainty reported by the technique, and URef is the total uncertainty of the
reference value (including any allowance for drift or instability of the DUT). The
values of |En| > 1 require investigation. Where laboratories make a number of
similar measurements the method of analysis can be refined by comparing the
distribution of the values of En with a normal distribution [9].
22 3 Microwave Measurement Systems
3.4 Summary
The chapter discusses the important microwave measurements and its uncertainty
evaluation. The major parameters such as attenuation, microwave power, and
scattering parameters are introduced and its metrological aspects are discussed.
A generalized method in metrology of such parameters is depicted in Fig. 3.11.
Fig. 3.12 Custom designed LabVIEW application for attenuation measurement using power ratio
or IF substitution technique
3.5 Precap
References
Software for metrology is required for the reliable, fast, and improved test and
measurement results. Software development for metrology needs details about the
standards and the measurement process. Chapter 3 has detailed the major mea-
surements in microwave engineering. Now that the reader has the detailed infor-
mation about the measurements in microwave, let us implement the measurement
system using LabVIEW for attenuation measurement as a hands-on exercise.
A step-by-step approach detailed in this chapter for implementation of attenuation
measurement system. However, the understanding gained from this chapter can be
used for any other measurement that uses GPIB devices, mainly the source, DUT,
and the receiver.
A graphical user interface (GUI) uses visual elements that provide the display for
user input and output to and fro from the computer and human in an
easy-to-understand manner. Figure 4.2 shows the developed GUI for attenuation
measurement. The controls and indicators on the front panel are labeled.
The following are major elements of the GUI:
1. User input file: When the application is run, it prompts for the file path, nec-
essarily an excel sheet, in which the desired settings for measurement are
recorded by the user.
2. Transmitter: The select source control on the front panel can be used to detect
the GPIB source connected with the controller. One can provide the model of
the source in the drop down list.
3. Receiver: The select receiver control on the front panel can be used to detect the
GPIB enabled microwave receiver such as power meter or spectrum analyzer
connected with the controller. One can provide the model of the receiver in the
drop down list.
4. Measurement Technique: Based on the measurement technique, different data
flow will be required.
5. Settings fetched from user input file: The measurement settings saved by the
user in the MS Excel sheet can be fetched and shown in the table for real-time
monitoring.
6. Number of observations: Once the user input is known, the time delay between
the observations, number of observation set, total number of readings, etc., can
be asked by the user under measurement settings.
7. Measured results: The receiver’s readings against the user-defined settings can
be seen on the GUI in the real time. This provision helps in the user to monitor
the real-time readings.
8. Start button: A button to start the execution can be provided for the user to start
the measurement process.
28 4 Software Development
9. Execution timeline: The expected time to complete and elapsed time can be a
good indicator for the ease of the user.
The conceptual model for the automated microwave measurement system is shown
in Fig. 4.4. The end user will communicate with the controller through the GUI or
the VI front panel. The controls and indicators on the front panel are provided in
such a manner that the security and reliability of the software cannot be at risk by
the user. As per the SRS given above, the controller communicates over the GPIB
which was discussed in Chap. 2. The source code of the LabVIEW application lies
in the block diagram and is secured for better reliability.
System Hardware: The hardware of the automated system consists of
• IEEE-488.2 General Purpose Interface Bus (GPIB) kit,
• a microwave signal generator,
Fig. 4.3 Example of block diagram code for a turning on the source and b reading attenuation
from Tegam’s VM-7 (GPIB address: 6)
Fig. 4.6 Simple measurement settings file to be given by the user using MS Excel
The main functions that can be used in LabVIEW application for instrument
control are given in Table 4.2. These functions are of great importance to develop a
user-friendly software. One can realize that these functions can ease the program-
mer from getting into too much of programming details. For example, the execution
timeline on the front panel can be implemented easily as shown in Fig. 4.7.
32 4 Software Development
Some features that add to the functionalities of the application are that the it is
capable of dealing with fully programmable attenuators as well as the manual
attenuators; application gives the real-time readings on the front panel as well as
provides a complete observation sheet at the end of the experiment and time delay
between consecutive readings can be set. Therefore, the application gives a stan-
dalone platform to deal with a number of instruments on a single screen with
customizable settings and less manual intervention. The front panel of the
LabVIEW application is shown in Fig. 4.2.
References
10. Agilent Technologies 11713A Attenuator/Switch Driver Operating and Service Manual.
Agilent Technologies Inc. (2001)
11. T. Tasić, U. Grottker, An overview of guidance documents for software in metrological
applications. Comput. Stand. Interfaces 28(3), 256–269 (2006)
12. V. Batagelj, J. Bojkovski, J. Drnovšek, Software integration in national
measurement-standards laboratories. IET Sci. Meas. Technol. 2(2), 100–106 (2008)
Chapter 5
Measurement Results
Metrology is the science of measurement and its application. It may include both
experimental and theoretical determinations in any field of science and technology.
Broadly, the metrology is categorized into scientific, legal, or industrial metrology
depending upon the type of application and level of accuracy and precision of the
carried out measurement. In Chap. 3, details of some of the common microwave
measurement were given, out of which automation of test measurement of atten-
uation is explained in Chap. 4. The proposed LabVIEW application can measure
the attenuation of the DUT. The expression of the measurement results along with
the evaluated uncertainty is explained in this chapter.
The measured data, for example, the attenuation measured using power ratio of IF
substitution technique can be analyzed using LabVIEW. The Mathematics palette
of LabVIEW has various probabilistic and statistical functions that can be used for
analyzing the measurement results. Figure 5.1 shows the complete idea behind the
automated test setup of attenuation measurement. Once the measurement results are
fetched and shown on the LabVIEW front panel using GPIB read function, the
measured results can be analyzed, and uncertainty in the measurement can be
evaluated. In the subsequent section, an example for uncertainty calculation using
Mathematics functions is shown for better understanding.
The key sources of uncertainties are identified and listed along with their proba-
bility distributions and limits, at the highest attenuation levels that can be measured,
by power ratio technique and IF substitution technique in Tables 5.1 and 5.2,
respectively.
Table 5.3 compares the results of manual and automated power ratio technique.
It is interesting to note that, the manual and automated measurement shows a
difference greater than their expanded uncertainties at 10 GHz for 10 dB attenua-
tion. This is because the nonlinearity of the power sensor increases with the
increasing frequency and attenuation values. Hence, for manual measurement, we
use microwave tuners to obtain better matching condition, and in the case of
automated measurement, fixed attenuators of 3 and 6 dB have been used as
matching pads. Thus, at higher frequencies and higher attenuation levels, the dif-
ference between the automated and manual setup readings can be large but can be
reduced by using automated microwave tuners (Fig. 5.2).
5.2 Uncertainty Evaluation 37
Table 5.3 compares the results of manual (a) and automated power ratio (b) and
30MHz IF substitution (c) technique. From figures is quite evident that the two
measurement techniques differ in the measurand value. It is to be noted that the two
techniques are traceable to the two different reference standards, i.e., the thermistor
mount and the WBCO attenuator. So, if the results of the two techniques differ with
large values, then the evaluation of normalized error with respect to the reference
values becomes inevitable.
Hence, for the validation of measurement techniques, the En ratio is evaluated by
the LabVIEW application and found to be |En| < 1. Especially at frequency
10 GHz, attenuation measurement technique shows a difference greater than their
expanded uncertainty at 5 dB and 10 dB. In both cases |En| > 1, hence their ref-
erence standard values have been considered to evaluate |En|. The front panel of the
LabVIEW application will inform the user about En ratio acceptance with green and
rejection with red. If there is a red indication, then a new dialog box will be
executed and will ask for reference standard values in the form of MS Excel or
comma separated values (CSV) file. The application will compute the En ratio
between the measured values and the reference standard values. Hence, if finally |
En| < 1 with respect to the reference, then the LED turns to green else a red
indication will show that the measurement results are not valid, as illustrated in
Fig. 5.3. Therefore, it is concluded that the quality of the measured results is not
affected by the automation. Similarly, the values of the measurand using power
ratio technique are traceable to the microcalorimeter-based thermistor mount
standard for microwave power and should agree with that reference standard.
38
Fig. 5.2 Example LabVIEW VI block diagram for combined uncertainty evaluation
reads the same attenuation value. The results also show that 30 MHz IF substitution
technique gives an uncertainty of ±0.011 but power ratio technique is competent of
giving a better uncertainty of ±0.007 for lower level of attenuation. However, IF
substitution technique is used for higher level of attenuation measurement as a
tuned receiver has a higher dynamic range.
5.4 Report Generation 41
Modern metrology laboratory looks upon the automated test and measurement
setups for better efficiency and throughput compared to manual procedures. NI
LabVIEW can be used to develop the automated measurement systems using
instrument control and data analysis. This book focuses on the automation of the
microwave measurements. Before the software development for automation,
common microwave measurements are discussed in detail. Some fundamentals
about evaluation of uncertainty in these measurements are also discussed. Generic
software is developed for calibration process of microwave parameters using
message-based GPIB programming of instrument control. Example of attenuation
measurement is demonstrated with highlight on the fundamental techniques
required to understand LabVIEW programming. The reader would get an insight of
software development for metrological applications. The book can be used as a
guide for development of automation not just for attenuation but any of the other
measurement process in readers’ laboratory.
Uncited References
1. B. Wichmann, G. Parkin, R. Barker, Software Support for Metrology Best Practice Guide
No. 1, in Validation of Software in Measurement Systems (National Physical Laboratory,
Teddingtion, 2007)
2. P. Ciarlini, M.G. Cox, F. Pavese, D. Richter, Advanced Mathematical and Computational
Tools in Metrology VI, Volume 66 of Series on Advances in Mathematics for Applied
Sciences (World Scientific, Singapore, 2004). ISBN: 9814482412 2004
3. M.G. Cox, P.M. Harris, I.M. Smith, Software specifications for uncertainty evaluation.
National Physical Laboratory
4. N. Greif, Software testing and preventive quality assurance for metrology. Comput. Stand.
Interfaces 28(3), 286–296 (2006)