Industrial
DAQ System for
Measurements and Monitoring
Hans-Petter Halvorsen, M.Sc.
System Overview
Mobile Device
Sensors
DAQ Industrial DAQ
System Hardware Monitoring Data
Data Logging Cloud
Computer Web Service Data Dashboard for LabVIEW
LabVIEW
Lab Topics
• Data Acquisition - DAQ
• Industrial Datalogging and Monitoring Systems
• Wireless Systems
– Wi-Fi DAQ, ZigBee
• Industrial IT, Network Infrastructure and
Protocols
• Web Services – The modern “OPC approach”!
3
Assignment Overview
1. DAQ System: Create a DAQ system using the availible
hardware at TUC (choose only one of the alternatives).
Create an Application in LabVIEW with proper GUI/HMI
(Logging and Presentation of Data)
1. Data Publishing & Monitoring: Use the “Data Dashboard
for LabVIEW” in order to create an application used for
Measurement, and Monitoring.
See next slides for details...
Software Software
+ Driver Software:
NI-WSN LabVIEW Real-Time Module
NI-cRIO
NI-DAQmx
NI-IMAQdx Vision Module
5
Hardware
Hardware
You may select between different alternatives
NI WLS-9163
I/O Module (e.g., NI-9234, NI-9201, NI-9211)
NI WAP-3711
Gateway
Measurement Node (NI WSN-9791)
(NI WSN-3202)
cRIO (cRIO-9074/9024) Basler scA640-70gc Camera
I/O Module (e.g., NI-9234, NI-9201, NI-9211)
PT-100 Lab Equipment 6
DAQ
Theory
Data acquisition (DAQ) is the process of sampling signals that
measure real world physical conditions and converting the resulting
samples into digital numeric values that can be manipulated by a
computer. The components of data acquisition systems include:
• Sensors that convert physical parameters to electrical signals.
• Signal conditioning circuitry to convert sensor signals into a form
that can be converted to digital values.
• Analog-to-digital converters, which convert conditioned sensor
signals to digital values.
In this assignment we will use more advanced and DAQ hardware used in the industry today
(Wi-Fi DAQ, ZigBee, cRIO, cDAQ, etc.) – not the simple USB-6008 that you are familiar with
DAQ
Theory
In this assignment we will use more advanced and DAQ hardware used in the industry today
(Wi-Fi DAQ, ZigBee, cRIO, cDAQ, etc.) – not the simple USB-6008 that you are familiar with
Theory
DAQ System Overview
9
“Next Generation DAQ Systems”
10
Theory
Wireless DAQ System
Overview
Wi-Fi (IEEE 802.11) Ethernet Cable
or ZigBee (IEEE 802.15.4) or Wi-Fi (IEEE 802.11)
DAQ Gateway/Rou Mobile
Sensor PC Internet
Incl. Transmitter
I/O Module ter/WAP Device
Twisted Pair Ethernet Wi-Fi
Cable (IEEE 802.3) (IEEE 802.11)
0-5V/4-20mA
11
Theory
Types of Wireless DAQ
Here are some examples:
• Cellular
• Bluetooth
• ZigBee
• Wireless USB
• Wi-Fi
• Wireless HART
12
Theory
Wireless DAQ
See Tutorial “Wireless Data Acquisition in
LabVIEW” for more details...
13
Theory
DAQ with Web Services
• A growing trend is to use a technology built on TCP and
HTTP called Web Services.
• A Web Service is an application programming interface
(API) that can be accessed via HTTP requests.
• When called, Web Services return a human-readable
response.
• Modern Web Services use JSON responses but other
response options are XML, HTML, or plain text.
14
Theory
DAQ with Web Services
• There are several reasons why engineers and IT departments are
choosing Web Services over other communication technologies.
• First, Web Services are straightforward and simple to access from
any programming language, including C++, Objective C, C# and
LabVIEW.
• Second, since Web Services sit on top of common network
protocols, the communication is considered “IT friendly” compared
with proprietary network protocols.
• Third, Web Services can also be easily encrypted via industry-
standard technologies like Secure Sockets Layer (SSL) or Transport
Layer Security (TLS).
15
Lab Equipment
Alternatives
Hans-Petter Halvorsen, M.Sc.
Hardware Alternatives
Choose one of the following hardware alternatives (we
have only 2 of each equipment):
1. Vision System
2. ZigBee
3. cRIO
4. CompactDAQ (cDAQ)
5. Wi-Fi DAQ
See next pages for details
17
Alt 1: Vision
Number of Units: 2
LabVIEW Vision Module
Counting number of parts using
a Camera and LabVIEW
Data Dashboard App/Native App Ethernet Cable
Web Service
iPhone,iPad, Android Device or
Windows 8 Computer or Tablet Basler scA640-70gc Camera 18
Alt 2: ZigBee DAQ System Gateway
Number of Units: 2
(NI WSN-9791)
Data Dashboard App/Native App
Ethernet
Cable
Web Service
ZigBee
PT-100 Device
iPhone, iPad, Android Measurement Node
device or Windows 8 (NI WSN-3202)
Computer or Tablet
1-5V
Alt 3: cRIO DAQ System
Number of Units: 2
Data Dashboard App/Native App
Web Service
Ethernet
Cable
cRIO (cRIO-9074/9024)
iPhone,iPad, Android Device or
Windows 8 Computer or Tablet
I/O Module (e.g., NI-9234, NI-9201, NI-9211)
1-5V
20
PT-100 Device
Alt 4: CompactDAQ
Number of Units: 3
Data Dashboard App/Native App
Web Service
Ethernet
Cable
iPhone,iPad, Android Device or cDAQ
Windows 8 Computer or Tablet
NI cDAQ-9174
1-5V NI cDAQ-9171
I/O Module (e.g., NI-9234, NI-9201, NI-9211)
21
PT-100 Device
Alt 5: Wi-Fi DAQ System NI WAP-3711
Number of Units: 2
Data Dashboard App/Native App
Web Service Ethernet
Cable
iPhone,iPad, Android Device or Wi-Fi
Windows 8 Computer or Tablet
NI WLS-9163
1-5V
I/O Module (e.g., NI-9234, NI-9201, NI-9211)22
PT-100 Device
DAQ System
Hans-Petter Halvorsen, M.Sc.
Implement your DAQ System, eg.:
Sensor incl. DAQ Ethernet/Wi-Fi/ZigBee
Transmitter Hardware
Pt-100 Wi-Fi DAQ
ZigBee DAQ
cRIO
Make a proper GUI for Monitoring Data
24
Sensors
Calibration: A comparison between measurements. One of
known magnitude or correctness made or set with one device Theory
and another measurement made in as similar a way as possible
with a second device. The device with the known or assigned
correctness is called the standard. The second device is the unit Accuracy: How close the
under test, test instrument, or any of several other names for measured value is the the
the device being calibrated. actual/real value, eg., ±0.1 %
Resolution: The smallest change it can detect in the
quantity that it is measuring. The following formula may be
used (where S is the measurement span, e.g., 0-100deg.C):
In the assignment you need to deal with these parameters. You find information about these parameters in the Data
sheet for your device
http://en.wikipedia.org/wiki/Calibration
http://en.wikipedia.org/wiki/Measurement_uncertainty http://en.wikipedia.org/wiki/Accuracy_and_precision
Congratulations! - You are finished with the Task 26
Data Publishing and
Monitoring
Hans-Petter Halvorsen, M.Sc.
LabVIEW Web Service
Extend your DAQ system with a Web Service in order to make the Data Public
Data Dashboard for LabVIEW
Create a Web Service in LabVIEW
Web Service
WLAN/
Internet
Tip! Try on your personal computer Use the “Data Dashboard for
before you try it in a WLAN or LabVIEW” App in order to read
DAQ
Internet (this requires that you have the Data on a Mobile Device
Hardware (Smartphone/Tablet)
a Windows 8 PC with the Data
Dashboard App installed)
http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/build_web_service 28
Data Dashboard for LabVIEW
• Available for iOS (iPhone, iPad), Android
and Windows 8 Modern UI/Windows
Store App
• This App can receive Data generated
from a Web Service created in LabVIEW
• Retrieve and Monitor Data from the
DAQ hardware using the “Data
Dashboard” for LabVIEW App
• Make sure to create a proper GUI/HMI
29
Congratulations! - You are finished with the Task 30
Congratulations! - You are finished with all the Tasks in the Assignment!
Hans-Petter Halvorsen, M.Sc.
University College of Southeast Norway
www.usn.no
E-mail: [email protected]
Blog: http://home.hit.no/~hansha/