Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

pass above the filter’s cutoff frequency.

By
S&V OBSERVER using AC coupling, you can eliminate any
DC that may pass through the anti-aliasing
Using MATLAB® for Vibration Measurements filter, thereby, maintaining the integrity of
your signal. As shown in Figure 3, the low
Thorsten Beierle, Data Translation, Inc., Marlboro, Massachusetts frequency breakpoint of 0.5 Hz allows very
low frequency measurements.
Vibration measurements are critical in oversampling each input. Data Acquisition Software Consider-
predictive maintenance and diagnostic fault • Eliminate errors that result from aliasing ations. When choosing software for data
testing applications for quality assurance. and high frequency noise by using a built- acquisition and analysis, the following
This article describes the following topics in decimation filter. considerations are important:
that are important when choosing a vibra- • Provide excellent low-level signal-to- • Support for a wide array of data acquisi-
tion measurement solution: noise performance, which improves dy- tion hardware
• Sensor Considerations namic accuracy on low-level signals. • Strong data analysis libraries
• Hardware Considerations • Provide excellent differential linearity, • Scripting that is easy to read, modify,
Sigma-Delta A/D Converters which ensures consistently accurate data and debug
Simultaneous Inputs conversion across the full input range of • Application development support
AC Coupling the signal.
• Software Considerations For precise measurements, 24-bit Sigma-
F= M xA
Configuring External Hardware Delta A/Ds are also desirable since they al-
Acquiring Data from Accelerometers low you to measure the full dynamic range Mass (M)
Reading Data into MATLAB of the input sensors. Output
Piezoelectric
Generating Reports and Applications Simultaneous A/Ds. Simultaneous sam- element
Sensor Selection. Typical vibration ap- pling increases the bandwidth of signals
plications use IEPE (Integrated Electronics that you can accurately measure, while
Piezo Electric) accelerometers to measure eliminating several sources of error, in-
vibration. An accelerometer consists of cluding time skew and cross-talk between Vibratory acceleration (A)

a piezoelectric element in series with a channels. One A/D converter per channel
Accelerometer Data
known mass (see Figure 1). When the accel- increases the module’s overall sampling output acquisition
erometer is mounted to a vibrating surface, frequency (when compared to multiplexed system
the mass applies force to the piezoelectric architectures) and increases the signal band-
element, generating an electrical charge width that you can acquire. For example, if
Vibration
that is proportional to the acceleration of your module provides a sampling frequency
the applied vibration. of 100 kHz per channel, then according to Figure 1. How accelerometers work.
A wide range of IEPE accelerometers are Nyquist, you can accurately measure up to
available, including those that measure 50 kHz on each channel when using a si-
along only one axis and those that measure multaneous A/D architecture. In contrast, in
up to three axes simultaneously, called multiplexed architectures, the usable signal
triaxial accelerometers. Different mounting bandwidth decreases with every additional
options and measurement ranges are avail- channel you measure.
able to suit an application. With a simultaneous A/D architecture, all
When choosing a vibration measurement signal inputs are sampled at the exact same
solution, ensure that your data acquisition instant in time, therefore, any channel skew,
system supports direct connection of IEPE cross-talk and settling time problems are
inputs, and that the measurement range of also virtually eliminated, allowing you to
your sensor is within the input range of your produce highly accurate data at high speeds
data acquisition system. For example, if (see Figure 2).
you want to measure a 6 V input signal, the AC Coupling. To measure low frequency
full-scale input range of your system should signals accurately at the Nyquist sampling
exceed 6 V. In addition, if you are using a rate, it is important that your anti-aliasing
triaxial accelerometer, ensure that your data filter supports a wide passband to eliminate Figure 2. The DT9837 and DT9841-VIB USB mod-
acquisition system simultaneously supports unwanted high-frequency components. ules from Data Translation® provide up to 8, 24-bit
up to three IEPE inputs so that you can cor- An ideal anti-aliasing filter passes all sig- Sigma-Delta converters for precise, simultaneous
analog input measurements. a) Simultaneous
relate measurements on all three axes. nals in the band of interest and blocks all sampling eliminates time skew between channels
Most accelerometers require a current signals outside of that band. However, in and simplifies both time and frequency based
source of 4 mA and a compliance voltage of practice, the roll-off characteristics of the analysis techniques. b) Sequential (multiplexed)
at least 18 V to drive their internal circuitry. anti-aliasing filter allow some signals to sampling may require software correction for
detecting certain patterns.
Other accelerometers require a 2 mA current
source, but have limitations in cable length
and bandwidth. Ensure that your data ac- –3 dB single pole
0 dB –6 dB per octave roll-off
quisition system supports the requirements –3 dB @ 0.49 x sampling
of your sensor. frequency (eliminate
Nyquest aliases)
Sigma-Delta A/Ds. Most vibration mea- –3 dB
Wide-band pass
surement applications require a data ac- Near 0 ripple in pass band Built-in digital filter
(Linear phase) provides “brick=wall”
quisition system with an anti-aliasing filter roll-off
in the A/D circuitry to eliminate unwanted
frequencies in the measurements. Sigma- –100 dB @ 0.55 x sampling
frequency
Delta A/Ds have anti-aliasing filters built-in.
Sigma-Delta converters offer the following 0.5 Hz Frequency 25.8 kHz
advantages, making them ideal for vibration
measurement applications: Figure 3. Data Translation’s DT9837 and DT9841-VIB modules provide software-selectable AC and
• Reduce noise and improve accuracy by DC coupling. When AC coupling is selected, the modules eliminate any DC that may pass through
the anti-aliasing filter. The excellent “brick wall” anti-alias filter eliminates unwanted high frequency
interference.
 SOUND AND VIBRATION/MAY 2007 www.SandV.com
MATLAB

Data acquisition toolbox

Data Translation’s DAQ


adapter for MATLAB

Data Translation’s data


acquisition USB modules

IEPE sensors

Figure 4. While the Data Acquisition Toolbox is


collecting vibration data from the USB module,
MATLAB can analyze and visualize the data.

• Report generation to share results


MATLAB® is a well known interactive
software environment for data acquisition Figure 5. This example uses the MATLAB Data Acquisition Toolbox with Data Translation’s USB modules
and analysis, report generation and test to measure and analyze vibration data in one integrated environment.
system development. MATLAB provides a
complete set of tools for acquiring and ana-
lyzing analog and digital I/O signals from
a variety of PC-compatible data acquisition
hardware. The MATLAB Data Acquisition
Toolbox lets you configure your external
hardware devices, read data into MATLAB
and Simulink for immediate analysis, and
send out data for controlling your system.
The diagram in Figure 4 depicts an ex-
ample using MATLAB and the MATLAB Data
Acquisition Toolbox with Data Translation’s
DT9837 to acquire vibration data from
USB modules. Notice that Data Transla-
tion provides an interface layer, called the
DAQ Adaptor for MATLAB, which allows
the MATLAB Data Acquisition Toolbox to
communicate with Data Translation’s hard-
ware. While the Data Acquisition Toolbox
is collecting data, MATLAB can analyze and Figure 6. Data are acquired and plotted in MATLAB for immediate analysis.
visualize the data.
The following sections describe in detail daqregister ('dtol'); AI1.channel.Coupling = 'AC';
how you can use MATLAB to measure vibra-
tion data from two triaxial accelerometers % Create an analog input object to com- % Configure the external digital trigger (ris-
using two Data Translation DT9837 USB municate with each DT9837 module ing edge) for each DT9837 module
data acquisition modules, and display the (AI0 corresponds to the first module; set([AI0 AI1], 'TriggerType', 'HwDigital');
results as shown in Figure 5. AI1corresponds to the second module) set([AI0 AI1], 'TriggerCondition',
Configuring Your External Hardware. AI0 = analoginput('dtol', 0); 'Rising');
To configure your external hardware, first AI1 = analoginput('dtol', 1);
connect the X, Y and Z outputs of one accel- % When a trigger is detected, continuously
erometer to analog input channels 0, 1 and % Add A/D channels 0, 1 and 2 – one chan- acquire data until a stop function is is-
2 of the first DT9837 module. Then, connect nel for each axis of the accelerometer to sued or until an error occurs
the X, Y, and Z outputs of the second accel- each analog input object set([AI0 AI1], 'SamplesPerTrigger', inf);
erometer to analog input channels 0, 1 and addchannel(AI0, 0:2); % Configure the clock for the each DT9837
2 of the second DT9837 module. addchannel(AI1, 0:2); module, setting the clock rate to the
If you want to start acquisition on both maximum clock rate supported
modules simultaneously, connect a shared %For each DT9837 module, configure A/D maxRate = daqhwinfo(AI0,
external digital TTL trigger input to both channels 0, 1 and 2 for IEPE inputs; each MaxSampleRate);
modules. A rising-edge on the external trig- channel uses a 4 mA current source and set([AI0 AI1], 'SampleRate', maxRate);
ger input will start data acquisition on both AC coupling % Allocate memory to store the data
modules. In MATLAB, set up your script as AI0.channel.ExcitationCurrentSource = set([AI0 AI1], 'BufferingConfig', [1000 5]);
follows to finish configuring your system: 'Internal'; % Define the number of samples (10000, in
AI0.channel.Coupling = 'AC'; this case) to acquire for each channel
% Register Data Translation’s DAQ Adaptor AI1.channel.ExcitationCurrentSource = set([AI0 AI1], 'SamplesAcquiredFcnCount',
for MATLAB 'Internal'; 10000);

www.SandV.com SOUND AND VIBRATION/MAY 2007 


% When 10000 samples have been acquired DT9837 module into MATLAB and plot all plots generated in a single HTML file that
for each channel, define the function to three channels separately. can be viewed and shared as shown in
call to plot the data function plotData0(Obj, event) Figure 6.
set(AI0, 'SamplesAcquiredFcn', AI0 = Obj; MATLAB provides a GUI development
{@plotData0}); data = getdata (AI0, 10000); tool called GUIDE that allows you to in-
set(AI1, 'SamplesAcquiredFcn', ch0a_data = data(:,1); corporate the MATLAB script in a graphical
{@plotData1}); subplot(3,2,1); plot(ch0a_data) application. Press the GUIDE button in
ch1a_data = data(:,2); MATLAB to launch this tool.
Acquiring Data from Two Triaxial Ac- subplot(3,2,3); plot(ch1a_data) Conclusion. When choosing a solution
celerometers. Once you have wired your ch2a_data = data(:,3); to measure vibration, consider the IEPE
external hardware and configured it in subplot(3,2,5); plot(ch2a_data) sensors you need and their requirements,
MATLAB, start the analog input objects using end the capabilities of your USB data acquisi-
the following script in MATLAB: % Get the data from the second DT9837 tion hardware and the analysis software
module into M ATLAB and plot all you’ll need to accomplish your goals. This
% Start the analog input objects on both three channels separately. article described an example that used the
modules function plotData1(Obj, event) MATLAB Data Acquisition Toolbox with
start([AI0 AI1]); AI1 = Obj; Data Translation’s DT9837 USB modules
data = getdata (AI1, 10000);
When a rising edge of the shared digital ch0b_data = data(:,1); 1. Using DT9837 hardware: www.datx.com/prod-
trigger is detected by each module, data subplot(3,2,2); plot(ch0b_data) ucts_hardware/prod_dt9837-series.htm.
acquisition begins. The data are acquired ch1b_data = data(:,1); 2. Using MATLAB: www.mathworks.com/prod-
from all six IEPE inputs at the maximum subplot(3,2,4); plot(ch1b_data) ucts/matlab.
3. Using the MATLAB Data Acquisition Toolbox:
clock rate of the device, and the data are ch2b_data = data(:,1); www.mathworks.com/products/daq.
stored in the memory you allocated. subplot(3,2,6); plot(ch2b_data) 4. Using the DAQ Adaptor for MATLAB: www.
Reading Data into MATLAB for Immedi- end datatranslation.com/products_software/dt-
ate Analysis. When 10,000 samples are matlab-interface-tools.htm.
acquired by each input channel, the call- Generating Reports and Applications. A For additional information on Data Translation
back functions you referenced previously report can be automatically generated from products, please visit: www.datatranslation.
(plotData0 and plotData1) are called. These the MATLAB script if it is written using the com.
functions read the data into MATLAB and MATLAB Editor. To generate a report, press
plot it for immediate analysis. the Publish to HTML button in the editor. MATLAB® is a registered trademark of The Math-
Works, Inc., www.mathworks.com.
Callback functions plotData0 and plot- (Other formats are available.) Pressing this
Data1 are defined as follows: button will execute the MATLAB script and The author can be contacted at: tbeierle@datx.
% Get the acquired data from the first embed the script’s contents along with all com.

 SOUND AND VIBRATION/MAY 2007 www.SandV.com

You might also like