What Is A Virtual Instrument and How Is It Different From A Traditional Instrument?
What Is A Virtual Instrument and How Is It Different From A Traditional Instrument?
What Is A Virtual Instrument and How Is It Different From A Traditional Instrument?
traditional instrument?
Virtual instruments are defined by the user while traditional instruments have fixed, vendor-
defined functionality.
Figure 1. Traditional instruments (left) and software based virtual instruments (right) largely
share the same architectural components, but radically different philosophies
Every virtual instrument consists of two parts – software and hardware. A virtual instrument
typically has a sticker price comparable to and many times less than a similar traditional
instrument for the current measurement task. However, the savings compound over time,
because virtual instruments are much more flexible when changing measurement tasks.
By not using vendor-defined, prepackaged software and hardware, engineers and scientists
get maximum user-defined flexibility. A traditional instrument provides them with all
software and measurement circuitry packaged into a product with a finite list of fixed-
functionality using the instrument front panel. A virtual instrument provides all the software
and hardware needed to accomplish the measurement or control task. In addition, with a
virtual instrument, engineers and scientists can customize the acquisition, analysis, storage,
sharing, and presentation functionality using productive, powerful software.
Fundamentally, because virtual instrumentation is software-based, if you can digitize it, you
can measure it. Therefore, measurement hardware can be viewed on two axes, resolutions
(bits) and frequency. Refer to the figure below to see how measurement capabilities of virtual
instrumentation hardware compare to traditional instrumentation. The goal for National
Instruments is to push the curve out in frequency and resolution and to innovate within the
curve.
Virtual instruments are compatible with traditional instruments almost without exception.
Virtual instrumentation software typically provides libraries for interfacing with common
ordinary instrument buses such as GPIB, serial, or Ethernet.
In addition to providing libraries, more than 200 instrument vendors have contributed more
than 4,000 instrument drivers to National Instruments Instrument Driver Library. Instrument
drivers provide a set of high-level, human-readable functions for interfacing with
instruments. Each instrument driver is specifically tailored to a particular model of instrument
to provide an interface to its unique capabilities.
To find an instrument driver or learn how to create one for an instrument, visit ni.com/idnet.
How are virtual instruments and synthetic instruments
different?
A fundamental trend in the automated test industry is a heavy shift toward software-based test
systems. For example, the United States Department of Defense (DoD) is one of the world’s
largest customers of automated test equipment (ATE). In order to reduce the cost of
ownership of test systems and increase reuse, the DoD, through the Navy’s NxTest program,
has specified that future ATE use an architecture built on modular hardware and
reconfigurable software called synthetic instrumentation. The adoption of synthetic
instrumentation represents a significant development in the specification of future Military
ATE systems, and reflects a fundamental shift as reconfigurable software takes center-stage
in future systems. Successful implementation of software-based test systems, such as
synthetic instrumentation, requires an understanding of the hardware platforms and software
tools in the market, as well as an understanding of the distinction between system-level
architectures and instrument-level architectures.
An example of recent National Instruments innovation accelerating test, control and design is
FPGA-based hardware programmed using LabVIEW FPGA. If an engineer needs a new
hardware capability, like onboard DSP, or a new triggering mode, you can drill down even
further to define this capability in the same software and deploy it to an on-board FPGA.
Engineers and scientists have always been able to use LabVIEW to create highly integrated
user-defined systems using modular I/O but they can now extend custom configurability to
the hardware itself. This degree of user-configurability and transparency will change the way
engineers build test systems.
Figure 1. LabVIEW offers user-defined instruments and customizable hardware
To learn more about virtual instrumentation and other essential technologies for test, visit
ni.com/modularinstruments.
Virtual Instrumentation for Industrial I/O and Control
PCs and PLCs both play an important role in control and industrial applications. PCs bring
greater software flexibility and capability, while PLCs deliver outstanding ruggedness and
reliability. But as control needs become more complex, there is a recognized need to
accelerate the capabilities while retaining the ruggedness and reliabilities.
Independent industry experts have recognized the need for tools that can meet the increasing
need for more complex, dynamic, adaptive, and algorithm-based control. The PAC is the
industry’s request and virtual instrumentation’s answer.
PACs deliver PC software flexibility with PLC ruggedness and reliability. LabVIEW
software and rugged, real-time, control hardware platforms are ideal for creating a PAC.
To learn more about virtual instrumentation and programmable automation controllers, visit
ni.com/pac.
Virtual Instrumentation for Design
The same design engineers that use a wide variety of software design tools must use
hardware to test prototypes. Commonly, there is no good interface between the design phase
and testing/validation phase, which means that the design usually must go through a
completion phase and enter a testing/validation phase. Issues discovered in the testing phase
require a design-phase reiteration.
In reality, the development process has two very distinct and separate stages – design and test
are two individual entities. On the design side, EDA tool vendors undergo tremendous
pressure to interoperate from the increasing semiconductor design and manufacturing group
complexity requirements. Engineers and scientists are demanding the capability to reuse
designs from one tool in other tools as products go from schematic design to simulation to
physical layout. Similarly, test system development is evolving toward a modular approach.
The gap between these two worlds has traditionally been neglected, first noticeable in the
new product prototype stage. Traditionally, this is the stage where the product designer uses
benchtop instruments to sanity-check the physical prototypes against their design for
correctness. The designer makes these measurements manually, probing circuits and looking
at the signals on instruments for problems or performance limitations. As designs iterate
through this build-measure-tweak-rebuild process, the designer needs the same measurements
again. In addition, these measurements can be complex – requiring frequency, amplitude, and
temperature sweeps with data collected and analyzed throughout. Because these engineers
focus on design tools, they are reluctant to invest in learning to automate their testing.
Systems with intrinsic-integration properties are easily extensible and adapt to increasing
product functionality. When new tests are required, engineers simply add new modules to the
platform to make the measurements. Virtual instrumentation software flexibility and virtual
instrumentation hardware modularity make virtual instruments a necessity to accelerate the
development cycle.
What is virtual instrumentation?
With virtual instrumentation, software based on user requirements defines general-purpose
measurement and control hardware functionality. Virtual instrumentation combines
mainstream commercial technologies, such as the PC, with flexible software and a wide
variety of measurement and control hardware, so engineers and scientists can create user-
defined systems that meet their exact application needs. With virtual instrumentation,
engineers and scientists reduce development time, design higher quality products, and lower
their design costs.
Figure 1. Virtual instrumentation combines productive software, modular I/O, and scalable
platforms.
National Instruments introduced virtual instrumentation more than 25 years ago, changing the
way engineers and scientists measure and automate the world around them. In 2004, National
Instruments sold more than 6 million channels of virtual instrumentation in 90 countries.
Today, virtual instrumentation has reached mainstream acceptance and is used in thousands
of applications around the world in industries from automotive, to consumer electronics, to
oil and gas.
Why is virtual instrumentation necessary?
Virtual instrumentation is necessary because it delivers instrumentation with the rapid
adaptability required for today’s concept, product, and process design, development, and
delivery. Only with virtual instrumentation can engineers and scientists create the user-
defined instruments required to keep up with the world’s demands.
To meet the ever-increasing demand to innovate and deliver ideas and products faster,
scientists and engineers are turning to advanced electronics, processors, and software.
Consider a modern cell phone. Most contain the latest features of the last generation,
including audio, a phone book, and text messaging capabilities. New versions include a
camera, MP3 player, and Bluetooth networking and Internet browsing.
However, this increase in functionality comes with a price. Upgraded functionality introduces
the possibility of unforeseen interaction or error. So, just as device-level software helps
rapidly develop and extend functionality, design and test instrumentation also must adapt to
verify the improvements.
The only way to meet these demands is to use test and control architectures that are also
software centric. Because virtual instrumentation uses highly productive software, modular
I/O, and commercial platforms, it is uniquely positioned to keep pace with the required new
idea and product development rate. National Instruments LabVIEW, a premier virtual
instrumentation graphical development environment, uses symbolic or graphical
representations to speed up development. The software symbolically represents functions.
Consolidating functions within rapidly deployed graphical blocks further speeds
development.
The third virtual instrumentation element – using commercial platforms, often enhanced with
accurate synchronization – ensures that virtual instrumentation takes advantage of the very
latest computer capabilities and data transfer technologies. This element delivers virtual
instrumentation on a long-term technology base that scales with the high investments made in
processors, buses, and more.
In summary, as innovation mandates software use of to accelerate new concept and product
development, it also requires instrumentation to rapidly adapt to new functionality. Because
virtual instrumentation applies software, modular I/O, and commercial platforms, it delivers
instrumentation capabilities uniquely qualified to keep pace with today’s concept and product
development.
Why has virtual instrumentation been so successful?
Virtual instrumentation achieved mainstream adoption by providing a new model for building
measurement and automation systems. Keys to its success include rapid PC advancement;
explosive low-cost, high-performance data converter (semiconductor) development; and
system design software emergence. These factors make virtual instrumentation systems
accessible to a very broad base of users.
PC performance, in particular, has increased more than 10,000X over the past 20 years.
Virtual instruments takes advantage of this PC performance increase by analyzing
measurements and solving new application challenges with each new-generation PC
processor, hard drive, display, and I/O bus. These rapid advancements, combined with the
general trend that technical and computer literacy starts early in school, contribute to
successful computer-based virtual instrumentation adoption.
Figure 2. A 10,000x performance increase for PCs helps drive virtual instrumentation system
performance.
Finally, system design software that provides an intuitive interface for designing custom
instrumentation systems furthers virtual instrumentation. LabVIEW is an example of such
software. The LabVIEW graphical development environment offers the performance and
flexibility of a programming language, as well as high-level functionality and configuration
utilities designed specifically for measurement and automation applications.
At the heart of any virtual instrument is flexible software, and National Instruments invented
one of the world’s best virtual instrumentation software platforms – LabVIEW. LabVIEW is
a powerful graphical development environment for signal acquisition, measurement analysis,
and data presentation, giving the flexibility of a programming language without the
complexity of traditional development tools. Since 1986, when National Instruments
introduced LabVIEW for the Macintosh, it has quickly and consistently attracted engineers
and scientists looking for a productive, powerful programming language to use in test, control
and design applications. Today, LabVIEW is the preferred graphical development
environment for thousands of engineers and scientists.
For engineers who prefer text-based programming, National Instruments also offers
LabWindows/CVI, an application development environment for ANSI C, as well as tools for
virtual instrument development using Visual Studio .NET, Measurement Studio.
Figure 4. LabVIEW is a leader in application software used in PC-based data acquisition and
instrument control.
While software is the heart of every virtual instrument, almost every virtual instrument
requires measurement hardware to accurately acquire the measurement. Independent of the
programming environment chosen, virtual instrumentation software must provide excellent
integration with system measurement hardware. National Instruments software, including
LabVIEW, offers open connectivity to tens of thousands of sensors, cameras, actuators,
cameras, traditional instruments and plug-in devices (USB, PCI, etc.) from thousands of
third-party hardware vendors.
In 2004, National Instruments measurement hardware provided customers with more than
6,000,000 virtual instrumentation measurement channels. From low-cost USB data
acquisition, to process control vision systems and image acquisition, to RF measurements at
2.7 GHz, to GPIB bus communication, National Instruments has shown more than 25,000
companies that it offers the measurement hardware and scalable hardware platforms required
to complete virtual instruments.
What makes National Instruments different from other
virtual instrumentation companies?
National Instruments has been a virtual instrumentation leader for more than 25 years. This
leadership has grown and been sustained through constant and consistent innovation.
Because National Instruments invented and innovated the premier virtual instrumentation
graphical development environment, LabVIEW, it attracts thousands of engineers and
scientists building virtual instruments. By understanding customer project development
needs, National Instruments has consistently delivered significant software innovations,
including Express technology, the LabVIEW Real-Time Module and LabVIEW PDA
Module, and SignalExpress:
1. Express technology
National Instruments created Express technology for LabVIEW, LabWindow/CVI, and
Measurement Studio in 2003 to reduce code complexity while preserving power and
functionality. Today, more than 50 percent of data acquisition customers use DAQ Assistant
to simplify data acquisition tasks.
3. NI SignalExpress
Design and test engineers asked National Instruments for virtual instrumentation software
that interactively measures and analyzes data. In response, National Instruments created
SignalExpress – a drag-and-drop, no-programming-required environment ideal for
exploratory measurements.
In addition to the strong software differentiator, National Instruments offers the most broad
and innovative I/O selection among virtual instrumentation companies. To help engineers and
scientists meet accelerating demands, National Instruments constantly releases products to
further extend breadth. A few recent examples of NI hardware innovation include USB DAQ
devices, M Series DAQ devices, and National Instruments CompactRIO:
1. USB DAQ Devices
In a recent survey, 70 percent of National Instruments data acquisition (DAQ) customers said
they plan to purchase multifunction USB DAQ in the near future. That month, National
Instruments released the USB-6008, setting a new low price point for multifunction DAQ at
$145 (US).
Here are a few examples of how customers use National Instruments virtual instrumentation
products:
1. AP Racing – Building Formula 1 Caliper and Brake Test Dynamometers
For more than 30 years, AP Racing has been a world leader in brake caliper and race clutch
technology and manufacturing. AP Racing concluded that a unique new dynamometer would
be a distinct advantage, and virtual instrumentation using National Instruments DAQ devices
and LabVIEW provided the flexibility it needed to innovate in the marketplace.
One of the most powerful features that LabVIEW offers is its graphical programming
paradigm. With LabVIEW, engineers and scientists can design custom virtual instruments by
creating a graphical user interface on the computer screen through which they:
• Operate the instrumentation program
• Control selected hardware
• Analyze acquired data
• Display results
They can customize the LabVIEW user interface, or front panel, with knobs, buttons, dials,
and graphs to emulate traditional instrument control panels of, create custom test panels, or
visually represent process control and operation.
Figure 2. LabVIEW virtual instruments include the user interface and application logic.
Determine virtual instrument behavior by connecting icons to create block diagrams, which
are natural design notations for scientists and engineers. With graphical programming,
engineers and scientists can develop systems more rapidly than with conventional
programming languages, while retaining the power and flexibility needed to create a variety
of applications. LabVIEW is an open environment that includes ready-to-use libraries for
everything from serial, Ethernet, and GPIB communication to motion control, data
acquisition, and image acquisition.
How does virtual instrumentation take advantage of the
latest software trends?
Traditional instrumentation solutions, by nature of their fixed packaging and vendor-defined
nature, can’t rapidly adapt to new software technologies. Because of its inherent flexibility,
virtual instrumentation is much better suited to incorporating new tools and technology –
users can simply upgrade their software, rather than purchase a new system.
Over the 20+ years of its development, LabVIEW has tightly integrated cutting edge software
technology while still providing a seamless transition from version to version. With the long
project lifetimes often found in the test and measurement industry, it’s critical that LabVIEW
provide a stable platform for development over many decades. However, to ensure maximum
productivity of its users, LabVIEW must also take advantage of new technologies as they
arise.
Many software packages get caught in the trap of rapid adoption of new technology without
regard to longevity. For example, software packages based primarily on the Microsoft
platform of technology over the past 15 years have had several instances where their software
had to be totally redefined due to the discontinuity of the latest technology, such as COM,
ActiveX, and most recently, .NET.
LabVIEW has always incorporated and continues to incorporate these technologies to ensure
that the user has access to the latest tools, but integrates them in such a way that there is no
need to completely rework existing code. New technologies, such as .NET, can simply be
added in to existing applications as needed.
What is measurement and control services software?
Measurement and control services software is equivalent to the I/O driver software layer.
However, it is much more than just drivers. Though often overlooked, it is one of the most
crucial elements of rapid application development. This software connects the virtual
instrumentation software and the hardware for measurement and control. It includes intuitive
application programming interfaces, instrument drivers, configuration tools, I/O assistants,
and other software included with the purchase of National Instruments hardware. National
Instruments measurement and control services software offers optimized integration with
both National Instruments hardware and National Instruments application development
environments.
As an example, National Instruments raised the bar for data acquisition software when it
introduced NI-DAQmx for the Windows OS and increased the ease, speed, and power with
which scientists and engineers take measurements. NI-DAQmx leverages several
technologies that legacy drivers do not exhibit including multithreading, simplified
application programming interface (API), interactive configuration, and intelligent multi-
device synchronization. Additionally, NI-DAQmx supports broad ranges of programming
languages, devices, buses, sensors, and even mixed signal types. With NI-DAQmx, a new
user to data acquisition can easily create an application that leverages parallel processing and
synchronizes multiple devices all with interactive, configuration-based programming.
Fundamentally, because virtual instrumentation is software-based, if you can digitize it, you
can measure it. Therefore, measurement hardware can be viewed on two axes, resolutions
(bits) and frequency. Refer to the figure below to see how measurement capabilities of virtual
instrumentation hardware compare to traditional instrumentation. The goal for National
Instruments is to push the curve out in frequency and resolution and to innovate within the
curve.
Standard hardware platforms that house the I/O are important to I/O modularity. Laptop and
desktop computers provide an excellent platform where virtual instrumentation can make the
most of existing standards such as the USB, PCI, Ethernet, and PCMCIA buses. Using these
standard buses, National Instruments can focus on measurement hardware innovation while
benefiting from inevitable PC platform innovation (for example, USB 2.0 and PCI Express).
Figure 2. Modular I/O and scalable platforms such as USB, PCI, and PXI provide flexibility
and scalability.
The 132 MB/s bandwidth provided by the 32-bit, 33MHz PCI bus still present on most
desktop PCs was a good match for plug-in peripherals 10 years ago, but now can be
monopolized by a single device, such as a Serial-ATA drive. And Gigabit LAN cards – at
1000 Mb/s – use approximately 95 percent of available PCI bandwidth. PCI bus architecture
requires it to share the available 132 MB/s with all devices on the bus, so high-bandwidth
devices such as Serial-ATA drives and Gigabit LAN cards strangle other devices on the PCI
bus. To remedy these limitations, a new peripheral bus called PCI Express has recently
started to appear in new PCs. PCI Express maintains software compatibility with PCI, but
replaces the physical bus with a high-speed (2.5 Gb/s) serial bus. Data is sent in packets
through transmit and receive signal pairs called lanes with about 200 MB/s bandwidth per
direction, per lane. Multiple lanes can be grouped together into x1 (“by-one”), x2, x4, and x8
lane widths. Unlike PCI, which shares bandwidth between all devices on the bus, this
bandwidth is provided to each device in the system. PCI Express benefits for virtual
instrumentation are obvious. Plug-in devices such as data acquisition devices and frame
grabbers can use the increased bandwidth for faster acquisitions and higher throughputs, and
multiple system devices benefit from guaranteed bandwidth availability.
USB 2.0, now standard on all new desktop and laptop PCs, also offers significant benefits to
virtual instrumentation. Initially created to connect peripherals such as keyboards and mice to
the PC, USB has quickly become the ubiquitous standard for sending data to and from the PC
and electronic devices, including digital cameras, MP3 players, and even data acquisition
devices. The USB plug-and-play nature makes usability and device portability extremely
simple. The PC automatically detects when a new device has been plugged in, queries for
device identification, and appropriately configures the required drivers. In addition, USB is
hot-pluggable, so, unlike other data buses, there is no need to power down the PC before
adding or removing a device. The high speed of USB 2.0 improves data throughput by 40X
compared to USB 1.1, increasing bandwidth to 480 Mb/s.
All new PCs come with USB 2.0 ports, and PCI Express is emerging as the new plug-in bus
standard. As Intel, Dell, HP, and other vendors continue to develop systems and components
based on these technologies, economies of scale continue to improve performance and costs.
Virtual instrumentation and National Instruments products will continue to use these bus
technology advances to provide higher speed test and measurements products at even lower
prices.
What are the benefits of Ethernet for virtual
instrumentation?
Virtual instrumentation systems frequently use Ethernet for remote test system control,
distributed I/O, and enterprise data sharing. The primary benefit in using Ethernet is cost. In
nearly all cases, the Ethernet network preceded the measurement system, so it often adds little
cost to the measurement system itself. Ethernet provides a low-cost, moderate-throughput
method for exchanging data and control commands over distances. However, due to its
packet-based architecture, Ethernet is not deterministic and has relatively high latency. For
some applications, such as instrumentation systems, the lack of determinism and high latency
make Ethernet a poor choice for integrating adjacent I/O modules. These situations are better
served with a dedicated bus such as PXI, VXI, or GPIB.
Often, a virtual instrumentation system uses other buses in conjunction with Ethernet.
Typically, a network node consists of modular I/O clusters. Each cluster uses a high-speed,
low-latency bus to exchange data between different I/O modules. To communicate with
neighboring nodes, transfer data to a remote location, or accept commands from a remote
location, the network nodes use the Ethernet network.
Figure 4. Example of Ethernet/LAN based virtual instrumentation system