technical sales engineer [email protected] ... - sch.gr
TRANSCRIPT
![Page 1: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/1.jpg)
1
Data Acquisition Practical Session
Antonios Vandoulakis Technical Sales Engineer
+30 210 80 61 307
![Page 2: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/2.jpg)
2
Agenda
• Brief introduction to NI and LabVIEW
o Exercise 1 – Working with LabVIEW
• Brief introduction to CompactDAQ architecture
o Exercise 2 – Taking measurements with CompactDAQ
• Overview on the graphical interface
o Exercise 3 – Programming structures in LabVIEW
o Exercise 4 – Acquire different signals simultaneously
• Resources for your application
• Questions and comments
![Page 3: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/3.jpg)
4
National Instruments at a Glance
• Leaders in Computer-Based Measurement and Automation
• Long-term Track Record of Growth and Profitability
• Record Revenue: $1.14B in 2013
• Fortune “100 Best Companies to Work For” eleven years in a row
• More than 6000 employees; operations in 40+ countries
• Founded in 1976 with focus on Instrument Control
• LabVIEW 1.0 released in 1986
NI HQ
![Page 4: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/4.jpg)
5
Virtual Instrumentation Everywhere More than 30,000 companies annually, including >90% of Fortune 500 manufacturing companies
![Page 5: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/5.jpg)
6
What is LabVIEW?
• LabVIEW is a Programming Language such as C/C++,
Visual Basic, .NET, etc.
• Graphical programming
• For test and measurement and automatization
• Import libraries such as DLL, ActiveX
• Connects to Hardware I/O
• Manage features of O.S. (multicore, etc.)
![Page 6: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/6.jpg)
Graphical System Design A platform-based approach for measurement and control
Applications
Deployable Targets
Commercial Technology
Models of Computation, User Interface
Math and Analysis
Measurement and Control I/O
Timing
![Page 7: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/7.jpg)
Graphical System Design A platform-based approach for measurement and control
![Page 8: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/8.jpg)
13
Real-Time FPGA Microprocessor/DSP Desktop Mobile Touch Panel WSN Vision
Different Hardware Access Modules
Hardware
Graphical Systems Design Platform
LabVIEW Everywhere
![Page 9: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/9.jpg)
15
The LabVIEW Environment “VI” = program or function
“Front Panel” = user interface “Block Diagram” = code
![Page 10: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/10.jpg)
17
Controls & Indicators
• Knobs/Dials
• Graphs/Charts
• Buttons
• Digital Displays
• Sliders
• Thermometers
• Customize and
create your own
![Page 11: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/11.jpg)
19
Functions and Express VIs
Configuration Based Express VI
Standard VIs
![Page 12: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/12.jpg)
20
Dataflow Programming
1
2
3
Comparison waits until all inputs are present, then executes
Once executed, output from comparison continues through code
Both Simulate Signal Express VIs execute simultaneously
1 2 3
![Page 13: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/13.jpg)
21
Συλλογή
Ανάλυση
Παρουσίαση
![Page 14: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/14.jpg)
22
Analyze
Present
Acquire
Ανάλυση
Παρουσίαση
Συλλογή
![Page 15: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/15.jpg)
23
Wires and Data Types
• Transfer data between block diagram objects through wires
• Wires are different colors, styles, and thicknesses, depending on their data types
• A broken wire appears as a dashed black line with a red X in the middle
23
Scalar 1D Array 2D Array
DBL Numeric Integer Numeric String
![Page 16: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/16.jpg)
25
Exercise 1: Create a simple VI in LabVIEW
What will we learn?
– Working with LabVIEW environment
Create an application that:
– Simulates a signal
– Calculate the RMS value
– Show the value in the front panel of LabVIEW
![Page 17: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/17.jpg)
26
Data Acquisition
with LabVIEW
![Page 19: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/19.jpg)
32
Measuring Analog Input Signals
• Architecture
multiplexed
simultaneous sampling
• Sampling rate
• Resolution
• Signal conditioning
Analog Input
To PC
…
Important Factors to Consider
![Page 20: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/20.jpg)
33
Analog Input – Architectures
Channel 0
Channel 1 ADC
Channel 0
Channel 1
Simultaneous sampling
MUX
Multiplexed
AMP
ADC
Channel 0
Channel 1
ADC Channel 0
Channel 1
AMP
AMP
Interchannel delay
No interchannel delay
![Page 21: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/21.jpg)
35
NI CompactDAQ
Hi-Speed USB 2.0
Support more than 100 modules
Hot-swappable modules
Signal Connectivity
Integrated Signal Conditioning
![Page 22: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/22.jpg)
37
Exercise 2: Introduction to data acquisition
with LabVIEW
What will we learn
Take measurements using LabVIEW
and NI CompactDAQ
Create an application that :
Takes measurements from a
thermocouple and store
measurements into a file
![Page 23: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/23.jpg)
38
Measurement and Automation Explorer
(MAX)
Device
configuration
and connection
management
Built-in test panel
windows DAQmx Task
creation
Signal connection
diagrams
![Page 24: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/24.jpg)
41
Programming in LabVIEW
![Page 25: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/25.jpg)
42
Controlling Program Execution
• Looping (For and While)
• Case structure
• Sequence structure
• State machines
• Event structure
• State diagram editor
• Timed loop
Is Limit
Met?
Turn On
Output
Yes
Reset
Output
No
Start
![Page 26: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/26.jpg)
43
LabVIEW Looping Basics
While Loop For Loop
Run until stop
condition met Run N times
![Page 27: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/27.jpg)
44
Exercise 3: Execution of a program
What will we learn
– How to create an application in
LabVIEW
Create an application that:
– Reads temperature from
Thermocouple/RTD
– Turn on/off digital lines
![Page 28: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/28.jpg)
45
Parallel Operations with LabVIEW
LabVIEW C*
(does not include code to generate UI)
LabVIEW C
![Page 29: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/29.jpg)
46
Parallel Operations in LabVIEW
Configuring and visualizing multiple tasks graphically is easier
Analog Output Loop
Analog Input Loop
Parallel loops automatically
take advantage of
multithreading and
multi-core processors for
higher performance
![Page 30: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/30.jpg)
47
Exercise 4: Multiple operations on analog input
channels
What will we learn
Create parallel operations with LabVIEW
Create an application based on
multiple tasks
Acquire Temperature Measurements
Acquire Acceleration Measurements
![Page 31: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/31.jpg)
48
Modules and Toolkits in LabVIEW
![Page 32: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/32.jpg)
49
Real-Time FPGA Microprocessor/DSP Desktop
Dataflow Text-based
Programming/OOP
Text-based
Mathematics Simulation Statechart
Mobile Touchpanel WSN Vision
Modules
Hardware
Toolkit
![Page 33: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/33.jpg)
51
Report Generation Toolkit for Microsoft Office
• Programmatically create and edit
reports in Microsoft Word and Excel
• Populate report templates
• Manage report layout, format, and
appearance
• E-mail reports and run macros
• Express VI included
![Page 34: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/34.jpg)
52
Database Connectivity Toolkit
• Insert, select data from OLE DB, ODBC databases
Microsoft Access, SQL Server, Oracle, etc.
• Create, drop tables
• Save records in XML format
• Execute SQL queries
Immediate, parameterized
• Execute stored procedures
• Accept, reject multiple operations (transactions)
![Page 35: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/35.jpg)
55
LabVIEW Touch Panel Module
Create custom human-machine interface (HMI) for Windows XP
Embedded and Windows CE Devices
NI TPC-2006
![Page 36: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/36.jpg)
57
• Build
LabVIEW-
based web
thin clients
• Monitor or
control from
your
smartphone
• Connect to
LabVIEW
web
services
LabVIEW Web UI Builder
![Page 37: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/37.jpg)
58
NI Vision Development Module
• LabVIEW programming libraries for machine vision and image processing
• Includes Vision Assistant
Prototypes and benchmarks applications
Generates complete code for LabVIEW, Visual Basic, and C
• Hundreds of tools to:
Enhance images
Check for presence
Locate features
Identify parts
Measure objects
![Page 38: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/38.jpg)
59
Motion Control with LabVIEW
• NI Motion Assistant
Interactive environment with 3D visualization
Ready-to-run LabVIEW or C code creation
Easy trapezoidal or S-curve velocity profile implementation
Teach pendant for easy prototyping
• NI SoftMotion Controller for CANopen and IEEE 1394
Use LabVIEW and NI Motion Assistant to program distributed motion control applications
Compatible with intelligent CANopen drives from Copley and IEEE 1394 drives from ORMEC
• NI SoftMotion Development Module
Develop custom motion controllers in LabVIEW Real-Time or LabVIEW FPGA
Use trajectory generation, spline interpolation, position, velocity control, and encoder implementation VIs
![Page 39: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/39.jpg)
60
Resources
![Page 40: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/40.jpg)
61
NI LabVIEW – Useful Links
What is LabVIEW: www.ni.com/labview
Download LabVIEW: www.ni.com/labviewse
![Page 41: Technical Sales Engineer a.vandoulakis@emetrix.gr ... - sch.gr](https://reader034.vdocuments.site/reader034/viewer/2022042612/626382da94152f42903ac06a/html5/thumbnails/41.jpg)
Thank you for your attention!
Questions?