Daq labview data logger | Data Acquisition System Software| ReadyDaq
Data Acquisition (DAQ)
Transcript of Data Acquisition (DAQ)
-
7/28/2019 Data Acquisition (DAQ)
1/54
Data Acquisition (DAQ)
-
7/28/2019 Data Acquisition (DAQ)
2/54
Signal Classification
YourSignal
AnalogDigital
-
7/28/2019 Data Acquisition (DAQ)
3/54
Two possible levels: High/On (2 - 5 Volts)
Low/Off (0 - 0.8 Volts)
Two types ofinformation: State
Rate
Digital Signals
Digital
Your Signal
-
7/28/2019 Data Acquisition (DAQ)
4/54
Digital Signal Information
Digital
Your Signal
-
7/28/2019 Data Acquisition (DAQ)
5/54
Analog Signals
YourSignal
Analog
Continuous signal Can be at any value
with respect to time
Three types ofinformation: Level
Shape
Frequency (Analysisrequired)
-
7/28/2019 Data Acquisition (DAQ)
6/54
Analog Signal Information
YourSignal
Analog
Anal
ysis
Required
-
7/28/2019 Data Acquisition (DAQ)
7/54
Why Use Signal Conditioning?
Signal Conditioning takes a signal that is
difficult for your DAQ device to measure
and makes it easier to measure
Signal Conditioning is not always required
Depends on the signal being measured
Noisy, Low-Level
Signal Filtered, Amplified
Signal
-
7/28/2019 Data Acquisition (DAQ)
8/54
Amplification
Used on low-level signals (i.e. thermocouples) Maximizes use of Analog-to-Digital Converter
(ADC) range and increases accuracy
Increases Signal to Noise Ratio (SNR)
Low-Level
Signal
External
Amplif
ier
DAQ Device
Lead Wires
Instrumentation
Amplifier
Nois
e
A
D
C
+
_
-
7/28/2019 Data Acquisition (DAQ)
9/54
Data Acquisition Hardware
DAQ Hardware turns your PC
into a
measurement and automation
Compute
r
Your
Signal DAQ
Device
TerminalBlock
Ca
ble
-
7/28/2019 Data Acquisition (DAQ)
10/54
Terminal Block and Cable
Your
Signal
TerminalBlock
Ca
ble
Terminal Block and Cable route
your signal to specific pins on your
DAQ device
Terminal Block and Cable can be acombination of 68 in or 50 in
50 pin
connector
-
7/28/2019 Data Acquisition (DAQ)
11/54
DAQ Device
Compute
r
DAQDevice
Most DAQ devices have:
Analog Input
Analog Output
Digital I/O Counters
Specialty devices exist for specific
applications
High speed digital I/O
High speed waveform generation
Dynamic Signal Acquisition (vibration, sonar)
Connect to the bus of your computer
Compatible with a variety of bus protocols
PCI, PXI/CompactPCI, ISA/AT, PCMCIA, USB,
-
7/28/2019 Data Acquisition (DAQ)
12/54
Configuration Considerations
Analog Input Resolution
Range
Gain Code Width
Mode (Differential, RSE, or NRSE)
Analog Output Internal vs. External Reference Voltage
Bipolar vs. Unipolar
-
7/28/2019 Data Acquisition (DAQ)
13/54
Resolution
Number of bits the ADC uses to represent a
signal
Resolution determines how many different
voltage changes can be measured
Example: 12-bit resolution
Larger resolution = more precise
representation of your signal
# of levels = 2resolution = 212 = 4,096 levels
-
7/28/2019 Data Acquisition (DAQ)
14/54
14
100 200150500
Time (ms)
0
1.25
5.00
2.50
3.75
6.25
7.50
8.75
10.00
Amplitude
(volts)
16-Bit Versus 3-Bit Resolution(5kHz Sine Wave)
16-bit resolution
3-bit resolution
000
001
010
011
100
101
110
111
| ||||
Resolution Example 3-bit resolution can represent 8 voltage levels
16-bit resolution can represent 65,536
voltage levels
-
7/28/2019 Data Acquisition (DAQ)
15/54
Range
Minimum and maximum voltages the ADC can
digitize
DAQ devices often have different available ranges
0 to +10 volts
-10 to +10 volts
Pick a range that your signal fits in
Smaller range = more precise representation ofyour signal
Allows you to use all of your available resolution
-
7/28/2019 Data Acquisition (DAQ)
16/54
Gain
Gain setting amplifies the signal forbest fit in ADC range
Gain settings are 0.5, 1, 2, 5, 10, 20,
50, or 100 for most devices
You dont choose the gain directly
Choose the input limits of your signal in
LabVIEW
Maximum gain possible is selected Maximum gain possible depends on the
limits of your signal and the chosen
range of your ADC
Proper gain = more precise
-
7/28/2019 Data Acquisition (DAQ)
17/54
Gain Example
100 200150500
Time (ms)
0
1.25
5.00
2.50
3.75
6.25
7.50
8.75
10.00
Amplitude
(volts)
Different Gains for 16-bit Resolution(5kHz Sine Wave)
Gain = 2
| ||||
Your Signal
Gain = 1
Input limits of the signal = 0 to 5 Volts
Range Setting for the ADC = 0 to 10 Volts
Gain Setting applied by Instrumentation
Amplifier = 2
-
7/28/2019 Data Acquisition (DAQ)
18/54
Grounding Issues
To get correct measurements you mustproperly ground your system
How the signal is grounded will affect how we
ground the instrumentation amplifier on theDAQ device
Steps to proper grounding of your system:
Determine how your signal is grounded
Choose a grounding mode for your Measurement
SystemMeasurement
System
Signal
Source V
S -
+
V
M
-
7/28/2019 Data Acquisition (DAQ)
19/54
Signal Source Categories
Grounded
+
_ Vs
Floating
+
_ Vs
SignalSource
-
7/28/2019 Data Acquisition (DAQ)
20/54
Grounded Signal Source
Signal is referenced
to a system ground
earth ground
building ground
Examples:
Power supplies Signal Generators
Anything that plugs
into an outlet ground
Grounded
+
_ Vs
SignalSource
-
7/28/2019 Data Acquisition (DAQ)
21/54
Floating Signal Source
Floating Signal is NOT
referenced to a
system ground earth ground
building ground
Examples: Batteries
Thermocouples
Transformers
Isolation Amplifiers
+
_ Vs
SignalSource
-
7/28/2019 Data Acquisition (DAQ)
22/54
Measurement System
Three modes of
grounding for your
Measurement
System Differential
Referenced Single-
Ended (RSE)
Non-ReferencedSingle-Ended
(NRSE)
Mode you choose
will depend on how
Measurement
System
-
+
-
7/28/2019 Data Acquisition (DAQ)
23/54
VM
ACH (n)
ACH (n +
8) +
_
Instrumentation
Amplifier
+
_
VS
+
_
AISENSE
AIGND
Measurement System
Differential Mode
Differential Mode Two channels used for each signal
ACH 0 is paired with ACH 8, ACH 1 is paired with ACH 9, etc.
Rejects common-mode voltage and common-mode
noise
-
7/28/2019 Data Acquisition (DAQ)
24/54
VM
ACH (n)
ACH (n +
8) +
_
Instrumentation
Amplifier
+
_
VS
+
AISENSE
AIGND _
RSE Mode
Referenced Single-Ended (RSE) Measurement made with respect to system ground
One channel used for each signal
Doesnt reject common mode voltage
Measurement System
-
7/28/2019 Data Acquisition (DAQ)
25/54
VM
ACH (n)
ACH (n +
8) +
_
Instrumentation
Amplifier
+
_
VS
+
_ AISENSE
AIGND
NRSE Mode Non-Referenced Single-Ended (NRSE)
Variation on RSE One channel used for each signal
Measurement made with respect to AISENSE not systemground
AISENSE is floating Doesnt reject common mode voltage
Measurement System
-
7/28/2019 Data Acquisition (DAQ)
26/54
Choosing Your Measurement
System Signal
Source
Differe
ntial
R
S
E
NR
SE
Measurement
System
Grounded
+
_ Vs
Floating
+
_ Vs
Differe
ntial
R
S
E
NR
SE
Measurement
System
-
7/28/2019 Data Acquisition (DAQ)
27/54
Options for Grounded Signal
Sources
RS
E
NRS
E
Differenti
al
BETTER+ Rejects Common-Mode
Voltage
- Cuts Channel Count in HalfNOT RECOMMENDED
- Voltage difference (Vg) between
the two grounds makes a ground
loop that could damage the
device GOOD
+ Allows use of entire channel
count
- Doesnt reject Common-Mode
Voltage
-
7/28/2019 Data Acquisition (DAQ)
28/54
Options for Floating Signal
Sources
RS
E
NRS
E
Differenti
al
BEST
+ Rejects Common-Mode
Voltage
- Cuts Channel Count in Half
- Need bias resistors
BETTER
+ Allows use of entire channel
count
+ Dont need bias resistors
- Doesnt reject Common-Mode
Voltage
GOOD
+ Allows use of entire channelcount
- Need bias resistors
- Doesnt reject Common-Mode
Voltage
-
7/28/2019 Data Acquisition (DAQ)
29/54
Levels of Software
DAQ
Device
User
-
7/28/2019 Data Acquisition (DAQ)
30/54
What is NI-DAQ? Driver level software
DLL that makes direct calls to your DAQ device
Supports the following National Instruments
software:
LabVIEW Measurement Studio
Also supports the following 3rd party languages:
Microsoft C/C++
Visual Basic
Borland C++
Borland Delphi
-
7/28/2019 Data Acquisition (DAQ)
31/54
What is MAX?
MAX stands for Measurement & Automation
Explorer
MAX provides access to all your National
Instruments DAQ, GPIB, IMAQ, IVI, Motion,VISA, and VXI devices
Used for configuring and testing devices
Functionality broken into: Data Neighborhood
Devices and Interfaces
Scales
Icon on
your
Deskto
p
-
7/28/2019 Data Acquisition (DAQ)
32/54
Data Neighborhood
Provides access to theDAQ Channel Wizard
Shows configured VirtualChannels
Includes utilities fortesting and reconfiguringVirtual Channels
-
7/28/2019 Data Acquisition (DAQ)
33/54
DAQ Channel Wizard Interface to create
Virtual Channels for: Analog Input
Analog Output
Digital I/O
Each channel has: Name and Description Transducer type
Range (determinesGain)
Mode (Differential, RSE,NRSE)
Scaling
-
7/28/2019 Data Acquisition (DAQ)
34/54
Devices and Interfaces Shows currently
installed and detected
National Instrumentshardware
Includes utilities forconfiguring and testingyour DAQ devices
Properties
Test Panels
-
7/28/2019 Data Acquisition (DAQ)
35/54
Test Panels
Utility fortesting
Analog Input
Analog
Output Digital I/O
Counters
Great tool for
troubleshootin
g
-
7/28/2019 Data Acquisition (DAQ)
36/54
Scales
Provides accessto DAQ CustomScales Wizard
Shows
configuredscales
Includes utilityfor viewing and
reconfiguringyour customscales
-
7/28/2019 Data Acquisition (DAQ)
37/54
DAQ Custom Scales Wizard
Interface to createcustom scales that
can be used with
Virtual Channels
Each scale has itsown:
Name and
Description
Choice of Scale
Type (Linear,
Polynomial, or
Table)
-
7/28/2019 Data Acquisition (DAQ)
38/54
Data Acquisition Palette
Analog Input
AnalogOutput
Calibration and
Configuration
Signal
Conditionin
Digital I/O
Counter
DAQ
ChannelName
Constant
-
7/28/2019 Data Acquisition (DAQ)
39/54
What Type of Device to Use?
-
7/28/2019 Data Acquisition (DAQ)
40/54
DAQ Device Properties?
DAQ devices have four standard
elements:
Analog input (AI)
Analog output (AO)
Digital I/O (DIO) Counter/Timers
Low-Cost Multifunction DAQ for USB NI
-
7/28/2019 Data Acquisition (DAQ)
41/54
Low-Cost Multifunction DAQ for USB NI
USB-6008
Small and portable
12-bit input resolution, at 10 kS/s
Built-in connectors for connectivity
2 analog outputs (range 0 to 5 V)
12 digital I/O lines8 single ended inputs (4 differential
inputs)
Input range 1 to 20V
The NI USB-6008 and NI is ideal for
students.
32 bit counter
5 mA Output current drive
Low Cost Multifunction DAQ for USB
-
7/28/2019 Data Acquisition (DAQ)
42/54
Low-Cost Multifunction DAQ for USB
NI USB-6009
14-bitinput resolution, at 48kS/s
-
7/28/2019 Data Acquisition (DAQ)
43/54
NI ELVIS: NI Educational Laboratory Vi r tual
I nstrumentation Sui te A custom-designed benchtop workstation and prototyping board to providethe functionality of a suite of common laboratory instruments
provides the functionality of the following
Arbitrary Waveform Generator (ARB) Bode Analyzer
Digital Bus Reader Digital Bus Writer
Digital Multimeter (DMM)Function Generator (FGEN)
Impedance Analyzer
Oscilloscope (Scope)
Two-Wire Current Voltage Analyzer
Three-Wire Current VoltagAnalyzer
Variable Power Supplies
H S l DAQ D i &
-
7/28/2019 Data Acquisition (DAQ)
44/54
1) Run the MAX program from the labview
software by selecting Tools Measurementand Automation Explorer.
How to Select DAQ Device &
Accessories
-
7/28/2019 Data Acquisition (DAQ)
45/54
What is MAX?
H t S l t DAQ D i &
-
7/28/2019 Data Acquisition (DAQ)
46/54
2)Select Devices and Interfaces from the
configuration column.
How to Select DAQ Device &
Accessories
H t S l t DAQ D i &
-
7/28/2019 Data Acquisition (DAQ)
47/54
3) Choose the NI-DAQmx Devices and
select the PCI-6024E or other if there.
How to Select DAQ Device &
Accessories
H t S l t DAQ D i &
-
7/28/2019 Data Acquisition (DAQ)
48/54
4)Using right click on the PCI-6024E and selectproperty. In the new window, where the RTSI
cable tab select None while select CB-68LP or
BNC-2120 in theAccessory tab then click OK
How to Select DAQ Device &
Accessories
H t S l t DAQ D i &
-
7/28/2019 Data Acquisition (DAQ)
49/54
5) Open the Labview program, in the front
panel select functions, input then select
the DAQ Assistant icon.
How to Select DAQ Device &
Accessories
-
7/28/2019 Data Acquisition (DAQ)
50/54
H t S l t DAQ D i
-
7/28/2019 Data Acquisition (DAQ)
51/54
7) We have 16 physical input channels from
ai0 to ai15, select a channel like ai0.
How to Select DAQ Device
(Input & Output Channels)
H t S l t DAQ D i
-
7/28/2019 Data Acquisition (DAQ)
52/54
8) Select your input voltage setup
How to Select DAQ Device
(Input & Output Channels)
H t S l t DAQ D i
-
7/28/2019 Data Acquisition (DAQ)
53/54
9) Now make the connections and select
test then Run to see the input voltage.
How to Select DAQ Device
(Input & Output Channels)
How to Select DAQ Device
-
7/28/2019 Data Acquisition (DAQ)
54/54
Example
How to Select DAQ Device
(Input & Output Channels)