fsdafs
fsdafs
It’s time to get the actionable insight you need from your data. Building a measurement
system that will take you into the future involves much more than choosing a DAQ
device, you have to consider each part of your system. That includes physical components
such as sensors, DAQ devices, and computers, along with software and software
components including drivers and reporting tools.
This guide walks walk you through the top seven things you should consider to
make the most of your DAQ investment, ensuring that your system is ready for the
measurements of today and tomorrow:
16 How to Choose the Right DAQ Device: Bus and Form Factor
How to Choose
the Right Sensors
Overview
Before you design a measurement system, you need the right sensors (or transducers).
Today’s market offers a multitude of sensors that measure different phenomena—
you’ll even find multiple sensors that measure the same phenomena, including
thermocouples and resistance temperature detectors (RTDs) for temperature
measurements, for example.
This chapter categorizes and compares the most common sensor types for measuring
seven of these phenomena to help you choose the best options for your application:
04 Temperature
04 Strain
06 Sound
07 Vibration
09 Pressure
10 Force
03
The Complete Guide to Building a Measurement System
Temperature
The most common temperature-measurement sensors are thermocouples, thermistors, and RTDs.
Temperature
Required Signal Conditioning Accuracy Sensitivity Comparison
Sensor
Self-powered
Amplification
Inexpensive
Thermocouple Filtering Good Good
Rugged
Cold-junction compensation
Offers a large temperature range
Amplification
Very accurate
RTD Filtering Best Better
Very stable
Voltage excitation
Amplification
High resistance
Thermistor Filtering Better Best
Low thermal mass
Voltage excitation
TABLE 1
Common Temperature Sensors
Thermocouples
Strain
Thermocouples, the most popular temperature sensors,
are effective in applications that require a large Strain typically is measured by a resistive strain gage.
temperature range. They are inexpensive ($1 to $50 These flat resistors usually are attached to a surface
USD) and have a response time of fractions of a second. that is expected to flex or bend—for example, an
Due to material properties, however, it’s hard for them airplane wing. Strain gages can measure very small
to achieve a temperature accuracy of less than 1 °C. surface twists, bends, and pulls. Wiring more than one
resistive strain gage together creates a bridge.
RTDs
Using more strain gages can help you achieve a more
RTDs are nearly as popular as thermocouples and sensitive measurement—for example, you can use up
can maintain a stable temperature reading for years. to four active strain gages to build a Wheatstone bridge
In contrast to thermocouples, RTDs have a smaller circuit in a full-bridge configuration. You also can choose
temperature range (-200 to 500 °C), require current to use half-bridge (two active strain gages) and quarter-
excitation, and have a slower response time (2.5 to bridge (one active strain gage) configurations. The
10 s). RTDs primarily are used for accurate temperature more active strain gages you use, the more accurate
measurements (±1.9 percent) in applications that your readings are. Table 2 highlights the different
are not time critical. RTDs can cost between $25 and bridge benefits and drawbacks.
$1,000 USD.
Strain gages require current or voltage excitation and
are susceptible to temperature drift, bending strain,
Thermistors
and axial strain, which can give false readings if you
Thermistors have a smaller temperature range (-90 don’t use additional resistive strain gages. See Table 2
to 130 °C) than the previous sensors. They have the for common strain gage mounting options.
best accuracy (±.05 °C), but are more fragile than
thermocouples or RTDs. Thermistors involve excitation Axial bridges measure material stretching or
like the RTD; however, the thermistor requires voltage pulling apart.
rather than current excitation. Typically, a thermistor Bending bridges measure a stretch on one side of
costs between $2 and $10 USD. a material and the contraction on its opposing side.
Torsional and shear bridges measure material twist.
04
The Complete Guide to Building a Measurement System
Strain is measured with a dimensionless unit (e or ε), which is equivalent to a small change in length divided by the full
length of the object under measure.
Sensitivity MV/V
Strain Gage Setup Bridge Type Details
@100 Ue
Axial
Better: Rejects bending strain, but not
½ 1.0 temperature. Must use dummy gages
if compensating for temperature.
TABLE 2
Common Strain Gage
05
The Complete Guide to Building a Measurement System
Sound
Microphones measure sound. There are several types of microphones to consider when you choose a sensor.
Impedance
Microphones Price Environment Sensitivity Comparison
Level
Most used
Prepolarized Condenser Medium Tough Medium Best condenser designs
Best in humid environments
Most used
condenser designs
Externally Polarized Condenser High Tough Better Good
Best in high-temperature
environments
Low quality
Carbon Microphone Low Average High Good Used in early basic
telephone handset design
Better with
Electret Low Average Low Better
high frequencies
Suitable for shock
Piezoelectric Medium Tough High Good and blast pressure
measurement applications
Resistant to moisture
Dynamic/Magnetic High Tough Medium Better Not good in highly
magnetic environment
TABLE 3
Common Sound Sensors
06
The Complete Guide to Building a Measurement System
Vibration
Ceramic Piezoelectric Sensor or Accelerometer
Vibration or acceleration is most commonly measured using a ceramic piezoelectric sensor or accelerometer.
Natural Damping
Vibration Sensors Number of Scale Factor Comparison
Frequency Coefficient
TABLE 4
Common Vibration Sensors
Three major factors differentiate vibration sensors: The Proximity Probes and LVDTs
natural frequency, the damping coefficient, and a scale
Proximity probes and LVDTs are similar: Both are limited
factor. Scale factor relates the output to an acceleration
to steady-state acceleration or low-frequency vibration
input and is linked to sensitivity. Together, the natural
measurement; however, the LVDT vibration sensor has
frequency and damping coefficient determine
a slightly higher natural frequency, meaning that it can
vibration-sensor accuracy. In a system consisting of a
handle/detect more vibration. The proximity probe is
spring and attached mass, if you were to pull the mass
simply a spring mass attached to a potentiometer wiper.
back away from equilibrium and release the mass, the
mass would vibrate forward (past the equilibrium) and
Variable Reluctance Vibration Sensor
backward until it came to rest. The friction that brings
the mass to rest is defined by the damping coefficient, A variable reluctance vibration sensor uses permanent
and the rate at which the mass vibrates forward and magnets and movement through coils to measure
backward is its natural frequency. motion and vibration. This special vibration sensor
registers output only when the mass it is measuring is in
Ceramic piezoelectric vibration sensors are the most
motion, which makes it particularly useful in earthquake
commonly used sensors because they are the most
shock studies and oil exploration to pick up vibrations
versatile. You can use these vibration sensors for shock
reflected from underground rock strata.
measurements (explosions and failure tests), high-
frequency measurements, and slower, low-frequency
vibration measurements. They offer a higher than
average natural frequency. However, this sensor has
outputs typically in the millivolt range and requires a
high-input impedance, low-noise detector to interpret
voltages from its piezoelectric crystal.
07
The Complete Guide to Building a Measurement System
Linear and Rotary Known for tolerance Handles a high degree of power
Variable Differential of dirty industrial Requires signal conditioning
High High High
Transformers (LVDT) environments RVDTs typically operate over any
or (RVDT) and precision angular range of ±30 to 70 °C
Not good where high resolution
is required
Noncontacting Not good for use when a large
Tolerance of dirty gap exists between sensor and
Eddy-Current environments target (optical and laser sensors
Medium Medium Varies
Proximity Probe Not sensitive to are better)
material between Good when mounted on a
sensor and target reasonably stationary mechanical
structure to measure nearby
moving machinery
Line of sight to target required
for measurement
Reflective Light Good for use when large gap exists
Varies Standard Varies High
Proximity Sensor between sensor and target
Accuracy determined by quality
of sensor
TABLE 5
Common Position Sensors
08
The Complete Guide to Building a Measurement System
Optical Encoders which can add to cost. Also, these sensors must be
accurately aligned inside heavy, expensive packaging
Another common position sensor is the optical encoder,
and contain wound coils that are expensive to
which can be either linear or rotary. These devices
manufacture. In addition to their cost, they are known
determine speed, direction, and position with fast, high
for their high precision.
accuracy. As the name suggests, optical encoders use
light to determine position. A series of striped bars
Eddy-Current Sensors
divide the distance to be measured by counts. The more
counts, the higher the accuracy. Some rotary optical Eddy-current sensors are moderately priced and
encoders with up to 30,000 counts offer tremendous use magnetic fields to determine position. They are
accuracy. Also, because of their fast response time, used less in applications that require highly detailed
they are ideal for many motion-control applications. positioning information or where large gaps exist
between the sensor and the target. These sensors are
Sensors with physical components that attach to a
better used on assembly lines when mounted on a
system, such as potentiometers, add a small amount
reasonably stationary mechanical structure to measure
of resistance to the movement of the system’s parts.
nearby moving machinery or products. For more
Encoders hardly produce any friction when they move
precise positioning information, use a light proximity
and are very lightweight. However, several important
sensor instead.
items add to their cost: They require seals to operate
within a harsh or dusty environment, and in high-
Reflective Light Proximity Sensors
accuracy applications, they need their own bearings to
avoid misalignment when incorporated into products. Reflective light proximity sensors use a beam’s travel
time to and from a reflective target to determine
LVDTs distance. They have a quick response time and are
excellent for applications in which large gaps exist
LVDTs and their rotary counterparts (RVDTs) use magnetic
between the sensor and target. These sensors require
induction to determine position. They are both effective
line of sight, and accuracy and quality directly affect
for industrial and aerospace applications because
their price.
of their robustness. Both require signal conditioning,
Pressure
High or low pressure is relative—like with heat. It can be “hot” in a room, but the temperature in that room is nothing
compared to the temperature on the surface of the sun. With pressure, the comparison makes the measurement.
Pressure Relative
Tire Example Comparison
Measurement Types
TABLE 6
Relative Pressure Measurements
09
The Complete Guide to Building a Measurement System
There are five common pressure measurement types: Sealed pressure measurements are differential
Absolute, gauge, vacuum, differential, and sealed. pressure measurements taken with a known
Consider the following example of measuring the comparison pressure. Typically this pressure is
pressure within a tire, and note how each major type sea level, but it could be any pressure, depending
is relative to a different reference pressure. on the application.
An absolute pressure measurement includes Each of these measurement types could alter your
the standard pressure from the weight of the pressure values, so you need to know which type of
atmosphere (101.325 kPa) and the additional measurement your sensors are acquiring.
pressure within the tire. The typical tire pressure is Bridge-based (strain gages), or piezoresistive, sensors
34 PSI, or about 234 kPa. The absolute pressure is are the most commonly used pressure sensors because
234 kPa plus 101.325 kPa, or 331.325 kPa. of their simple construction and durability. These
A gauge pressure measurement is relative to the characteristics lower cost and make them ideal for
local atmospheric pressure and is equal to 234 kPa higher channel systems.
or 34 PSI.
These common pressure sensors can be either
Vacuum pressure is relative to either an absolute
conditioned or nonconditioned. Typically, conditioned
vacuum or local atmospheric pressure. A flat
sensors are more expensive because they contain
tire could have the same pressure as the local
components for filtering and signal amplification,
atmosphere or 0 kPa (relative to atmospheric
as well as excitation leads and regular measurement
pressure). This same vacuum pressure measurement
circuitry. If you are working with nonconditioned
could equal 234 kPa (relative to an absolute vacuum).
pressure bridge-based sensors, your hardware needs
Differential pressure is just the difference between signal conditioning.
any two pressure levels. In the tire example, this
means the difference in pressure between two Check the sensor’s documentation so that you
tires. It also could mean the difference between know whether you need additional components
atmospheric pressure and the pressure inside a for amplification or filtering.
single tire.
Force
Load Cell Sensors Price Weight Range Accuracy Sensitivity Comparison
TABLE 7
Common Load Cell Sensors
10
The Complete Guide to Building a Measurement System
At one time, mechanical lever scales primarily measured The canister load cell can handle larger loads than both
force. Today, strain-gage-based load cells are the S- and beam-style load cells. It also can handle load
most common because they do not require as much movement easily and is highly sensitive; however, the
calibration and maintenance as scales do. sensor requires horizontal load protection.
Load cells can be either conditioned or nonconditioned. Pancake or low-profile load cells are designed in such
Typically, conditioned sensors are more expensive a way that they require absolutely no movement to
because they contain components for filtering, achieve an accurate reading. If your application has
signal amplification, and excitation leads, as well as time constraints or requires quick measurements,
regular measurement circuitry. If you are working consider using a canister load cell instead.
with nonconditioned bridge-based sensors, your
Button and washer load cells typically measure the weight
hardware needs signal conditioning. Check the sensor’s
of smaller objects (up to 200 lb). Like pancake or low-
documentation so that you know whether you need
profile load cells, the object being weighed must not be
additional components for amplification or filtering.
moving to obtain an accurate measurement. The load also
Beam-style load cells are useful when a linear force is must be centered on what is usually a small scale. The
expected, and they are typically used to weigh both benefit to these load cells is that they are inexpensive.
small and large items (10 lb up to 5k lb). They have an
Read more about common sensor types
average sensitivity but are highly accurate. These load
and terminology
cells offer simple construction and low cost.
Download the Engineer’s Guide to Accurate
The S beam load cell is similar to the beam style except
Sensor Measurements
for its design. Because of this design difference (the
load cell’s characteristic S shape), the sensor is effective
for high side-load rejection and measuring the weight
of a load that is not centered. This low-cost load cell’s
design is also simple.
11
The Complete Guide to Building a Measurement System
12
The Complete Guide to Building a Measurement System
A DAQ device that performs multiple functions typically is called a multifunction I/O device. Both DAQ devices that
perform a single function and multifunction I/O devices have a fixed number of channels. Your application dictates
which device is the right fit; however, it is good practice to consider if you might need to scale the system in the future.
If so, it’s probably cost-efficient to select a device that offers more channels than you currently require. This is especially
true if you are using the DAQ device for a limited amount of time on one application and plan to move on to another
application, expecting to use the same device.
Another option is a modular platform that you can customize to your exact requirements. A modular system consists
of a chassis to control timing and synchronization along with a variety of I/O modules. An advantage of a modular
system is that you can select different modules that have unique purposes for more configurations. With this option,
you can find modules that perform one function more accurately than a multifunction device. Another advantage is
that you can select the number of slots for your chassis. While a chassis has a fixed number of slots, you can purchase
a chassis that has more slots than you need now to give you the ability to expand in the future.
For example, thermocouples output signals in the mV range that require amplification to optimize the limits of the
analog-to-digital converters (ADCs). Additionally, thermocouple measurements benefit from lowpass filtering to
remove high-frequency noise. Signal conditioning provides a distinct advantage over a DAQ device alone because
it enhances both performance and measurement accuracy.
13
The Complete Guide to Building a Measurement System
Table 8 summarizes common signal conditioning for different types of sensors and measurements.
Bridge
Amplification Attenuation Isolation Filtering Excitation Linearization CJC
Completion
Thermocouple X X X X
Thermistor X X X X
RTD X X X X
Strain Gage X X X X X
Load,
Pressure,Torque X X X X
(mV/V, 4–20 mA)
Accelerometer X X X X
Microphone X X X X
Proximity Probe X X X X
LVDT/RVDT X X X X
High Voltage X X
TABLE 8
Sensors and Measurement Signal Conditioning
If your sensor is listed in Table 8, you should be Choosing a DAQ device with a sample rate at least 10X
conditioning your sensor signals. You can build the frequency of your signal will measure or generate
external signal conditioning or use a DAQ device with a more accurate representation of your signal.
built-in signal conditioning. Many devices include
For example, suppose you want to measure a sine
direct connectivity to common sensors for convenient
wave that has a frequency of 1 kHz. According to the
integration. For a more in-depth guide on sensor
Nyquist theorem, you must sample at 2 kHz at least,
signal conditioning, download the Engineer’s Guide
but you should ideally sample at 10 kHz to measure
to Accurate Sensor Measurements.
or generate a more accurate signal representation.
Figure 1 compares a 1 kHz sine wave measured at
How fast do I need to 2 kHz and 10 kHz.
you should sample at least 10X the maximum frequency 10 kHz versus 2 kHz Representation of a 1 kHz Sine Wave
14
The Complete Guide to Building a Measurement System
Typical DAQ devices have voltage ranges of ±5 V or A common specification for a manufacturer’s
±10 V. Represented voltage levels are distributed uncertainty is absolute accuracy. This specification
evenly across a selected range to take advantage of the provides the worst-case error of a DAQ device at
full resolution. For example, a DAQ device with a ±10 V a specific range. An example calculation for an NI
range and 12 bits of resolution (212 or 4,096 evenly multifunction device’s absolute accuracy is:
distributed levels) can detect a 5 mV change, whereas
a device with 16 bits of resolution (216 or 65,536 evenly ABSOLUTE ACCURACY = ([READING * GAIN ERROR] +
[VOLTAGE RANGE * OFFSET ERROR] + NOISE UNCERTAINTY)
distributed levels) can detect a 300 µV change.
ABSOLUTE ACCURACY = 2.2 MV
Many application requirements are met with devices
that have 12, 16, or 18 bits of resolution. However, if you Note that an instrument’s accuracy depends not only on
are measuring sensors with small and large voltage the instrument, but on the type of signal it’s measuring.
ranges, you likely can benefit from the dynamic data If the signal being measured is noisy, the measurement’s
range available with 24-bit devices. The voltage range accuracy is adversely affected. There are many DAQ
and resolution required for your application are primary devices with varying degrees of accuracy and price
factors in selecting the right device. points. Some devices provide self-calibration, isolation,
and other circuitry to improve accuracy. While a basic
DAQ device may provide an absolute accuracy of more
than 100 mV, a higher-performance device with such
features may have an absolute accuracy of around 1 mV.
15
The Complete Guide to Building a Measurement System
QUICK REFERENCES
16
The Complete Guide to Building a Measurement System
When taking waveform measurements, you need to Another important factor in single-point I/O
achieve a certain sampling rate and resolution based applications is determinism, which is a measure of how
on how fast your signal is changing. You can calculate consistently I/O can execute on time. Determinism is
the minimum required bandwidth by taking the number important for control applications because it directly
of bytes per sample (rounded up to the next byte), impacts control loop reliability, and many control
multiplied by the sampling speed, and then multiplied algorithms are designed with the expectation that
by the number of channels. the control loop always executes at a constant rate.
Any deviation from the expected rate makes the
For example, a 16-bit device (2 bytes) sampling at
overall control system less effective and less reliable.
4 MS/s on four channels would be:
Therefore, when implementing closed-loop control
2 BYTES 4 MS applications, you should avoid buses such as wireless,
* * 4 CHANNELS = 32 MB/S
S SEC Ethernet, or USB that are high-latency with poor
determinism. In general, internal buses such as PXI
Your bus bandwidth needs to be able to support Express or the FPGA in an NI CompactRIO chassis
the speed at which data is being acquired, and it is are better for low-latency single-point I/O applications
important to note that the actual system bandwidth will than external buses such as USB or wireless.
be lower than the theoretical bus limits. Actual observed
bandwidth depends on the number of devices in a Communication bus software implementation plays
system and any additional bus traffic from overhead. a large role in bus latency and determinism. Buses
If you need to stream a lot of high-resolution data from and software drivers that support an RTOS provide
several channels, bandwidth may be the most important the best determinism, and therefore give you the
consideration when choosing your DAQ bus. highest performance.
17
The Complete Guide to Building a Measurement System
External buses such as USB and Ethernet are particularly Consider the environments into which you may need
good for portable DAQ systems because of their quick to take your DAQ system, and ensure that your DAQ
hardware installation and laptop compatibility. Bus- system can handle it. Look for operating temperature
powered USB devices which are powered via the USB and shock and vibration ratings: For extreme
port offer additional convenience because they do not environments, consider the ingress protection (IP)
require a separate power supply. rating, which tells you a device’s dust- and water-
resistance level. For example, NI FieldDAQ™ devices
18
The Complete Guide to Building a Measurement System
The PXI platform, which includes PXI and PXI Express, An increasingly popular time-based synchronization
offers the tightest synchronization between multiple technology is time-sensitive networking (TSN).
devices. This open standard was designed specifically TSN is an open-source update to the IEEE Ethernet
for high-performance synchronization and triggering, standard designed to address measurement and
offering several ways to synchronize I/O modules control system needs. Some DAQ devices support
within the same chassis as well as synchronizing a subset of the TSN standard denoted as 802.1AS,
multiple chassis. which offers tight synchronization between devices
using a standard Ethernet cable. Leveraging 802.1AS,
Time-based synchronization techniques simplify
these devices support synchronization within <1 μs
synchronization between devices, providing accurate
over a distance of 100 meters. Devices that support
synchronization without additional hardware or cabling.
TSN, or a subset of the standard, include certain
In a time-based system, multiple devices on a network
NI CompactDAQ chassis, NI FieldDAQ, and certain
such as Ethernet individually set their clocks to a common
NI CompactRIO devices.
time source.
Distributed
Bus Waveform Streaming Single-Point I/O Portability
Measurements
TABLE 9
Bus-Selection Guide Based on Application Requirements with NI Products
19
The Complete Guide to Building a Measurement System
USB
USB delivers an inexpensive and easy-to-use connection
between DAQ devices and PCs. USB 2.0 has a maximum
theoretical bandwidth of 60 MB/s, which is shared among
all devices connected to a single USB controller.
20
The Complete Guide to Building a Measurement System
PXI
PXI bridges the gap between desktop PC systems,
high-end VXI, and GPIB systems. The PXI Systems
Alliance, with more than 200 members, maintains this
open standard, and in 2006, passed the PXI Express
specification to deliver PCI Express data-transfer
technology to the PXI platform.
21
The Complete Guide to Building a Measurement System
24 Do I need an RTOS?
QUICK REFERENCE
22
The Complete Guide to Building a Measurement System
23
The Complete Guide to Building a Measurement System
Do I need an RTOS?
The OS is an important feature to consider when choosing a DAQ computer. By far, the most common general-
purpose OS is Windows, but DAQ and control applications can require a more specialized OS.
An RTOS can operate deterministically, so that applications execute according to precise timing requirements.
An RTOS is deterministic because it does not determine which process happens when; rather, you define process
order and timing, giving you more control over your application and the ability to execute at faster rates than with
a nondeterministic OS. This is especially relevant in control applications in which you need to prioritize critical tasks
above others.
Industrial
PXI System Desktop Controller, Laptop Tablet
NI CompactRIO
TABLE 10
Computer Selection Features
24
The Complete Guide to Building a Measurement System
25
The Complete Guide to Building a Measurement System
compatible with my OS? the driver is rewritten for the native language. This
provides better performance and a more seamless
You can choose from OSs including Windows, macOS, experience because functions and documentation are
and Linux, which offer different advantages for different directly built into the application software.
tasks, operations, and deployments. Each of these OSs In some cases, a wrapper may not be provided for
also may have different versions, distributions, or designs your preferred language, or even at all, so you must
for specific processors. For example, Windows offers manually write your own wrapper to interface with your
versions for 32-bit and 64-bit processors, and open- application software. When evaluating a DAQ system,
source Linux OSs include hundreds of varieties. Each check to see what languages the driver can support,
type, release, and version of an OS functions differently and if possible, access the documentation for that
and may or may not be cross-compatible. language. Ideally, you can get full driver functionality
As a result, DAQ drivers generally do not support every from the driver in a wide variety of application software.
single OS type and version. Most DAQ drivers work with
Windows OS releases, as they are the most common.
NI’s DAQ driver, NI-DAQmx, supports most Windows
What documentation
and several Linux variants. comes with the driver?
If you use an alternative OS, remember to confirm
Drivers feature many forms of documentation, including
whether the DAQ device driver supports it before
user manuals, functions references, release notes,
choosing a DAQ device. You generally can find the
known issues, and example code. Having to navigate
OS and version support in the driver readme files.
through poor, incomplete, or muddled documentation
wastes time. When a driver’s programming interface
How well does the is poorly documented, you can spend an unnecessary
and frustrating amount of time running functionality
driver integrate with trial-and-error tests. Although trial and error can
26
The Complete Guide to Building a Measurement System
27
The Complete Guide to Building a Measurement System
QUICK REFERENCE
28
The Complete Guide to Building a Measurement System
29
The Complete Guide to Building a Measurement System
When evaluating application development environments the complex grammar and syntax rules that you must
that require you to learn a new language, consider those follow to successfully compile and run the code.
that direct your focus to your engineering problem, not
Graphical programming languages, such as the one
low-level programming-language details. For example,
offered in NI LabVIEW, are often easier to learn because
you might find that text-based languages, such as ANSI
the implementation is more intuitive and visually
C/C++, are often more challenging to learn because of all
consistent with the way an engineer thinks.
training options to help DAQ applications. With these examples, you never
need to start from scratch.
me get started? You can save time by simply modifying the shipping
Also consider getting-started resources that come with examples to meet the needs of your system development.
the application software. These resources can help
you get up and running with a new software tool in
less time. Here are a few helpful resources for getting
Is there a community to
started with any software tool: reach out to when I get
Evaluation—A free evaluation gives you the stuck?
opportunity to test things out for yourself and
determine if the tool meets your application needs. The ecosystem that surrounds software is just as
important as the software tool itself. A healthy
Online curriculum—Online tutorials, videos, and
ecosystem provides a wealth of resources that make it
white papers are valuable when learning basic
easy for you to learn a new software tool and guide you
application software concepts.
with feedback as you develop your application. Before
Classroom instruction—An application software
you purchase, browse a community’s forums and
class is the perfect way to get up to speed and begin
determine how active it is and the kind of information
developing your DAQ system. Course price and level
being shared (code, discussions, tips, and tricks). You
of detail depends on the instructional setting. Often,
want a community that is heavy with activity and
you can find options ranging from free seminars
includes shared information that is closely aligned with
to formal classroom instruction, to instructor-led
the problems you are solving.
online courses.
Additionally, an application software’s ecosystem of
users often drives future development. Check to see
30
The Complete Guide to Building a Measurement System
if the organization behind an application software look for a tool offering functions related to your field
is responsive to its community’s needs and whether or application type.
the user base can provide input that guides future
Proper data-analysis tools contain more than 600 built-
software features.
in functions. While basic and complex math operations
are beneficial, you need functions specific to your
What kind of analysis area of interest. If your application deals with control,
look for proportional integral derivative (PID) control
do I need to perform? functions. If you have an optical character recognition
(OCR) application, make sure your tool contains
Raw data is not always the most useful way to those functions. Look for software products with an
communicate. Data transformations—removing signal ecosystem of add-ons to extend product functionality,
noise, compensating for environmental effects such as including third-party industry-expert analysis. This way,
temperature and humidity, and calibrating equipment you reduce time and cost associated with developing
error, for example—help turn raw data into useful these functions yourself.
data. Most engineering applications aim to produce
useful data, and that requires comprehensive signal If you need inline analysis, be sure that your application
processing for any analysis tool used in data acquisition. software includes built-in or expansion capabilities.
There are two main ways that you can analyze or If your needs involve offline analysis, your application
process data: software must be able to save data to a format that
your offline analysis package can consume.
Offline analysis, also known as postprocessing, takes
place after you’ve saved your data to file. Offline
analysis is a good fit for an application such as
What kind of data
FlexLogger software, which emphasizes logging data visualization do I need?
to be postprocessed after you run the test. See the
Data Management chapter for more details on Data visualization—from simply graphing an acquired
postprocessing and offline analysis. signal to correlating measurement data with video,
Inline analysis implies that data is analyzed in sound, or 3D model projection—is common in almost all
the same application in which you acquired it. measurement systems. Selecting the right visualization
If your application involves monitoring a signal technique could mean the difference between being
and changing testing variables based on incoming able to appropriately derive actionable information
data characteristics, inline analysis is the right from raw data and missing important insight.
choice. By measuring and analyzing certain signal As with analysis, visualization can happen inline or offline.
aspects, you can make the application adapt to The final chapter discusses offline visualization (typically
certain circumstances and incorporate execution considered report generation).
parameters—perhaps saving the data to disk in
case of alarm or increasing the sampling rate if the Inline reporting happens in the DAQ software so
incoming values exceed a threshold limit. To perform that you can follow data trends, view critical system
inline analysis, your application software must have information, and create an engaging UI. For example,
built-in signal analysis functions or the ability to you can display acquired data on a monitor so that
easily integrate external IP. a technician can see the signal being measured and
ensure proper connections.
Most data-analysis tool vendors produce a well-
If you run inline analysis with inline visualization, the
documented listing of their tool functions, which is
monitor may display a filtered version of the same
helpful if you know your specific signal-processing
signal. While this architecture gives you “instant
needs. But if you don’t know exactly what you need,
feedback,” since you can visualize acquired data in
31
The Complete Guide to Building a Measurement System
near-real time, it means that your chosen application Or, because application requirements change over
software must contain the required visualization tools. time, you’ve invested time and money creating analysis
routines or custom IP in older or alternative tools.
For visualization, most engineers require, at a minimum,
In these cases, look for a data analysis package that
basic charting and graphing capabilities. Luckily, almost
can incorporate these external analysis routines. Don’t
every data visualization tool on the market can make
reinvent the same functionality in the newer tool when
simple charts and graphs, and dedicated visualization
your existing algorithms are validated to work correctly.
tools offer robust additional capabilities that help you
learn more from your data. Whether you created your analysis routine in another
programming language, used a script in an older
It’s important to consider visualization scalability and
financial-analysis tool, or inherited some configuration
customizability. Out-of-the-box application software
file, confirm with your software vendor that you can
can include a wide variety of charts and graphs and
incorporate your legacy analysis routine in their data-
present multiple plots in a single graph. They might
analysis tool. If you can’t do so easily, you could spend
have indicators and visualization techniques, but may
precious time recreating your functionality in the new
not give you complete control over how you show your
tool. Modern data-analysis tools should be open to
data. Development environments, on the other hand,
using IP created in other environments.
offer extensive, in-depth customizability so that you can
control every facet of how you visualize your data. Be
sure to choose a development environment that makes Software Selection Table
GUI design easy—some text-based programming
languages make visualizing data challenging. Based on the questions and considerations covered
above, Table 11 highlights the differences between
TABLE 11
DAQ Software Selection Guide
Read about NI FlexLogger software, ready-to-use application software for data logging
Find out how NI LabVIEW, the development environment that accelerates engineering, can help you meet your
application and system needs
32
The Complete Guide to Building a Measurement System
33
The Complete Guide to Building a Measurement System
File Format
Traditional file types rarely meet all of the requirements
you need in a file format. For example, ASCII files are
exchangeable, but very large and slow to read and
write. Binary files read and write speeds can keep up
with high-speed hardware, but these files are difficult
to share.
34
The Complete Guide to Building a Measurement System
that I need?
have a limiting maximum y-axis count.
35
The Complete Guide to Building a Measurement System
Additionally, if you have immense reporting needs—for example, if your reports often span dozens of pages—ensure
that the reporting tool you choose can export your report in your desired format at your desired size. The last thing
you want to do is recreate all of your work at the very end of your system’s design simply because your reporting tool
can’t create reports at your required length.
Find out how NI DIAdem can help you manage and report your measurement data
36
The Complete Guide to Building a Measurement System
Next Steps
Let’s get started designing your measurement system. We’ll help you pick the right sensors to measure the physical
phenomena you’re interested in and select the proper DAQ device to read those signals to analyze, visualize, and
report out on your data.
FIGURE 10
Whatever your measurement challenge, NI has hardware and software to meet your needs.
Neither Emerson, Emerson Automation Solutions, nor any of their affiliated entities assumes
responsibility for the selection, use, or maintenance of any product. Responsibility for proper
selection, use, and maintenance of any product remains solely with the purchaser and
end user. Linkedin.com/company/niglobal/
NI, National Instruments, the National Instruments corporate logo, ni.com, NI FieldDAQ,
NI CompactDAQ, NI CompactRIO, NI DAQ, and NI LabVIEW are marks owned by one of the
companies in the Test & Measurement business unit of Emerson Electric Co. Emerson and the x.com/niglobal
Emerson logo are trademarks and service marks of Emerson Electric Co.
The registered trademark Linux® is used pursuant to a sublicense from LMI, the exclusive
licensee of Linus Torvalds, owner of the mark on a worldwide basis. All other marks are the Youtube.com/@NIGlobalYoutube
property of their respective owners.
The contents of this publication are presented for informational purposes only, and while
every effort has been made to ensure their accuracy, they are not to be construed as
warranties or guarantees, express or implied, regarding the products or services described Instagram.com/niglobal/
herein or their use or applicability. All sales are governed by our terms and conditions,
which are available upon request. We reserve the right to modify or improve the designs or
specifications of such products at any time without notice. Facebook.com/NationalInstruments
NI
11500 N Mopac Expwy
Austin, TX 78759-3504
© 2024 National Instruments. All rights reserved. 531748 ni.com