The world is exploding with more connected devices and a growing need to store, share, and present data in increasingly powerful ways. Learn how to use Microsoft Azure IoT with CompactRIO to enable remote data collection stations with web access to both high-speed raw data and processed results.
3. Agenda
DMC Introduction
Problem to solve
Intro to Azure
Solution architecture
cRIO + Azure
Wrap up and questions
4. Darren Jones
Project Director, DMC Chicago
BS, Mechanical Engineering
Certified LabVIEW Architect
Certified Professional Instructor
Peter Rijks
Senior Application Developer, DMC Chicago
BS, Computer Science
Jon Carson
Project Director, DMC NYC
BS, Electrical Engineering
Licensed Professional Engineer
Certified Microsoft Solutions Developer C#
Presenter Details
5. ni.com
DMC Company Overview
employees & growing
120+
Established in 1996, DMC serves customers worldwide from offices
in Chicago, Boston, Denver, New York, Houston, and St. Louis
6. ni.com
Our NI Certifications
12 Certifications 6 Certifications 4 Certifications
DMC has partnered with National Instruments since 1997
DMC’s team of certified LabVIEW engineers is one of the
largest in the country
1 Certification
10. Problem #1
“If they [Asian Carp] were to successfully establish
themselves in the Great Lakes and start breeding, they
could utterly disrupt the existing ecosystem,
potentially starving out the trout and other native fish
that make the Great Lakes a tourism hot spot.” Time
Bighead Carp / ASIAN CARP
o Invasive Species
o Native To: China
o Means of Introduction: Imported for
aquaculture and for phytoplankton control
o Impact: Not adequately known, but may
"lead to reductions in populations of native
species that rely on plankton for food,
including all larval fishes, some adult fishes,
and native mussels“
Source - USDA
11.
12.
13. Fish Barrier monitoring needs
Remote data collection
High speed data collection
Multiple sensors per station
Multiple stations in field
Data storage and historical viewing
14. Fish Barrier monitoring needs
Alarming
Device configuration
Device status
Scalable
Open platform for acquisition and for analytics
17. Nanosecond Analysis and Control
Assess and respond to inputs 860X faster than the average human with
FPGA-enabled hardware.
Open, Connected Software
Leverage technology from the anticipated 4 million IoT software
developers by 2020.
Data Acquisition From Any Sensor
Acquire and manage any of the 78 exabytes of industrial data expected
by 2020.
Synchronization
Synchronize edge nodes to within 100 ns of each other anywhere in the world
with Time Sensitive Networking.
Edge-Ready Hardware
Deploy hardware that's certified to withstand the most demanding environments
since 0% of OT assets are in an environmentally controlled data center.
The NI Edge Node Advantage
E
S
O
D
N
18. DMC Fit: NI and IoT expertise
NI partnership and expertise
Web interfaces
IoT projects
Microsoft partnership and expertise
20. Infrastructure Options…
On-Premises
Buy your own hardware,
and manage your own
data center
Hosted
Pay someone to host my
application with hardware
you specify
Cloud
Pay someone for a pool of
computing resources
33. Finish with Internet of Your Things solutionStart quickly with preconfigured solutions
• Fine-tuned to specific assets and
processes
• Highly visual for your real-time
operational data
• Integrate with back-end systems
• Get started in minutes
• Modify pre-set rules and alerts, pre-
defined dashboards, and more
• Add your devices and begin tailoring
to your needs
Tailor Azure IoT using preconfigured solutions
47. LabVIEW + Azure IoT: JSON
Serialize data for Azure IoT consumption
For Fish Barrier monitoring:
Result and summary data
Station status and health
48. LabVIEW + Azure IoT: MQTT
Pub/Sub
Lightweight
Small footprint
Broker-based
Test servers available Broker
Publisher
Subscriber
Publisher
Publisher
Subscriber
49. LabVIEW + Azure IoT: MQTT
DAQ.IO MQTT toolkit
For Azure, must send username
54. Summary
Problem: remote data you want to acquire and access
Tools available: MQTT, SSL, Azure IoT, and more
Take action
Check out the tools
Think of applications and play around!
Learn more
www.dmcinfo.com
www.ni.com/internet-of-things
www.microsoft.com/en-us/server-cloud/internet-of-things/azure-iot-suite.aspx
https://www.daq.io/labview/
https://github.com/Indie-Energy/AWS-IoT-RESTful
55. ni.com
Real-World Case Study: For Connecting CompactRIO's to Microsoft Azure IoT
Darren Jones, Peter Rijks, and Jon Carson
May 23, 2:15 PM - 3:15 PM
Practical Web Applications You’ll Actually Care About
Mark Locascio and Nick Aroneseno
May 23, 4:45 PM - 5:45 PM
Save Time and Look Awesome: Apply UI Design Principles to Real World Projects
Steven Dusing and Jesse Batsche
May 24, 4:45 PM - 5:45 PM
Hinweis der Redaktion
Our approach is to accelerate productivity, innovation, and discovery through a software-centric platform for developing any system that needs test, measurement, and control.
When spending time and energy making technology work gets in the way of focusing on a solution, we know that’s a big problem. So, our goal is to enable engineers to get their job done faster regardless of their application or industry.
Unique for Alliance Members, work with a variety of tools.
Benefit of this is that we can easily integrate different platforms to solve customer problems.
bighead carp (Hypophthalmichthys nobilis) is a species of freshwater fish, one of several Asian carps
http://www.chicagotribune.com/news/local/breaking/ct-grass-carp-great-lakes-20170127-story.html
https://en.wikipedia.org/wiki/Bighead_carp
Remote Data collection
***High speed*** acquisition
Discern effects from the Barrier versus other sources.
Centralized storage
Raw data
Alarming
Remote access
Comparison to off the shelf options
Remote Data collection
***High speed*** acquisition
Discern effects from the Barrier versus other sources.
Centralized storage
Raw data
Alarming
Remote access
Comparison to off the shelf options
Remote Data collection
***High speed*** acquisition
Discern effects from the Barrier versus other sources.
Centralized storage
Raw data
Alarming
Remote access
Comparison to off the shelf options
Remote Data collection
***High speed*** acquisition
Discern effects from the Barrier versus other sources.
Centralized storage
Raw data
Alarming
Remote access
Comparison to off the shelf options
Remote Data collection
***High speed*** acquisition
Discern effects from the Barrier versus other sources.
Centralized storage
Raw data
Alarming
Remote access
Comparison to off the shelf options
What is Azure? And more generally, what is cloud computing? Before we jump into Azure IoT and our solution, let’s get everyone caught up on a few cloud computing concepts
On-Prem is how it all started.
When talking about cloud services, we can break them down even further into IaaS, PaaS and SaaS.
Liken this to a car service – Own, Lease, Rent, Uber/Taxi
– analogy breaks down on costs. Responsibility vs flexibility.
SaaS is Office 365, CRM online, … IaaS and PaaS is what Azure is. You still manage a piece of it. Your differentiator. Commoditize the rest.
Speaking of big picture…
IaaS – VMs (sometimes called Compute), Storage, Networking. Very general purpose. Easy to “Lift-And-Shift”
Legacy Apps: moving to PaaS requires a “Lift-and-Port” approach. Prototyping: power VM off to save costs.
Many more offerings in PaaS than in IaaS, more than on this slide. IaaS is general purpose, each PaaS offering is targeted at a specific problem. The services on this slide are ones you’re likely to use in an IoT solution.
Microsoft made a conscious decision to use the same foundation for their internal IT, as well as their online offerings. Many PaaS offerings within Azure began because Microsoft had a specific need for one of their offerings.
Azure has global reach, with 34 regions online worldwide and another 6 in construction. Microsoft is investing $10 billion annually in Azure. This slide needs to be updated every time I present on Azure. South Africa announced since late March.
continuously investing in the latest infrastructure technologies, with a focus on high reliability, operational excellence, cost-effectiveness, environmental sustainability, and a trustworthy online experience for customers and partners worldwide.
Microsoft continues to invest to – close to submarine network cables,
Tidal power and built-in cooling
So that was a quick intro to Azure. Now let’s talk about the IoT-specific solutions within Azure. But before we dive in, I want to cover a few more IoT use cases. The fish barrier is a compelling story, but we’ve come across many scenarios where an IoT solution makes sense. IoT doesn’t always have to mean Azure IoT.
Connected Thermometers – Used in healthcare to monitor temperature – fridge with $100k of vaccines
Water filtration – remote monitoring and predictive maintenance
Vehicle tracking – GPS and cellular network
This is an example from a few years ago, before Azure IoT became a hot buzzword. Sewer cleaning wasn’t getting done. Manually measure tank levels after a truck returned. Crews learned to empty the tanks in a parking lot before returning. Finally added water level sensors, as well as GPS and other data that reported back in real-time.
DMC has been doing IoT for a long time
Vactor – vehicles that clean sewers. Municipalities would get complaints that sewers not cleaned. Workers weren’t doing their job, so monitor how much water was left – workers began just dumping the water. IoT live monitoring solution.
ThyssenKrupp elevators – Microsoft Azure case study – monitor motor temperature, shaft alignment, cab speed, door functioning. Alarms so that technicians can be dispatched before customer knows there’s a problem. Machine learning.
The tools available now also make it easy to get something up and running quickly. Often you can get something up and running in just a few hours.
Looking back at the Azure landscape, the core component of Azure IoT is the IoT hub. The hub is where your devices connect to the cloud.
But because Azure services integrate easily, we actually have the power of the full suite
Analytics, data storage, machine learning, web and mobile apps, …
When you log into azureiotsuite.com, it asks you to log into your Azure tenant, and then once you’ve selected your desired solution (predictive maintenance or remote monitoring) it will provision all the resources you need inside your tenant. You can be up and running quickly. Then customize that solution instead of starting from scratch.
(Hub stores messages for a day, but not long-term)
Instead of stream analytics you can also write custom code that interacts with IoT Hub
In addition to device communication, the IoT hub has device management.
Twin is a virtual representation of device state in the cloud. Query the twin so you don’t have to message the device.
Keep tabs on devices -> version, status, location, etc. Query all devices with certain properties.
Perform actions on query results (upgrade all devices with version X, reboot all devices with status idle)
Microsoft has grown an open source community around the Azure IoT hub, and has SDKs available for a variety of languages, operating systems, and hardware platforms. Support for new devices is regularly being added.
Goals: intuitive dashboard. At a glance health and summary data. Drill down to raw and historical data.
MQTT, why?
Vs HTTP, would need to poll, for messages to the device, prefer to not poll.
Vs AMQP?
We already were using MQTT.
Available on GitHub
Created ENDPOINT: niweek.azure-devices.net
MQTT builds header, publish to TOPIC
SSL encrypts message
TCP sends message
Remote Data collection
***High speed*** acquisition
Discern effects from the Barrier versus other sources.
Centralized storage
Raw data
Alarming
Remote access
Comparison to off the shelf options
Our approach is to accelerate productivity, innovation, and discovery through a software-centric platform for developing any system that needs test, measurement, and control.
When spending time and energy making technology work gets in the way of focusing on a solution, we know that’s a big problem. So, our goal is to enable engineers to get their job done faster regardless of their application or industry.