labview graphical development hands-on...
TRANSCRIPT
LabVIEW Graphical DevelopmentHands-On Seminar
Agenda• Introduction to National Instruments andLabVIEW Graphical Development
• Acquire with LabVIEW– Data Acquisition – Instrument Control – Modular Instrumentation
• Analyze and Present with LabVIEW• LabVIEW—Beyond the Seminar
National Instruments Overview• Direct Operations in 40 Countries• More Than 1,000 Products, 3,400 Employees, and 600 Alliance Program Members
• Corporate Headquarters in Austin, Texas
Distributors
Direct Sales Offices
National Instruments Profile• Leaders in Computer-Based
Measurement and Automation• Strong Track Record of Growth
and Profitability• $514 MM Revenue in Fiscal
Year 2004• Past Six Consecutive Years
Voted Fortune Magazine’s 100 Best Companies to Work For in America
Who Chooses NI?Eighty-five percent of Fortune 500 manufacturing companies have
adopted NI virtual instrumentation.
Virtual Instrumentation
Virtual Instrumentation
High-SpeedDigitizers
High-ResolutionDigitizers and DMMs
Multifunction DAQ
DynamicSignal Acquisition
Digital I/OInstrumentControl
Counter/Timers
MachineVision
Motion Control
Distributed I/O andEmbedded Control
Laptop PC PDADesktop PCPXI Modular Instrumentation
Signal Conditioningand Switching
Unit Under Test
Measurement and Automation Software Framework
Test and Data Management SoftwareNI TestStand, DIAdem
Measurement and Control Services
LabVIEWGraphical Development
Application Development Software
SignalExpressVI Logger
Vision Builder AI
Interactive Tools
One Platform, Infinite Solutions
Graphical Development Platform for Design, Control, and Test
• Intuitive graphical programming language designed for engineers and scientists
• Hundreds of built-in functions for I/O, control, analysis, and data presentation
• High-level, application-specific development tools and libraries• Deployment to desktop, mobile, industrial, and embedded
targets
Introduction to the LabVIEW EnvironmentFront Panel
Block Diagram
NI LabVIEW Environment—Dataflow• Each node (subVI or function) executes once all its inputs
become available • Parallel execution inherent in graphical nature• Multithreaded execution for improved performance and system
resource management
Modularity• Modular design• Hierarchal system with subVIs• Reusable building blocks similar
to subroutines
“The robustness of LabVIEW, combined with its graphical programming environment, ensure that we can quickly complete the application and adapt it to unique customer requirements.”—Dirk De Mol, Manager, Honeywell-Measurex describing a LabVIEW measurement and control system for sheet process products with more than 3,000 VIs
Industry-Standard Development Software
Source: Survey of 400 US readers from T&M World, EDN, Design News, and R&D magazines, Q1 2004
Software Used for PC-Based Data Acquisition and Instrument Control
Software Used for PC-Based Data Acquisition and Instrument Control4%
4%
10%
13%
32%
0% 5% 10% 15% 20% 25% 30% 35%
LabWindows/CVI
MATLAB
Visual C++
Microsoft Visual Basic
LabVIEW
Software Used for PC-Based Data Acquisition and Instrument Control
Leveraging Commercial TechnologiesThird-Party Software• Wolfram Research Mathematica®
• Microsoft Excel®• MathSoft MathCAD®
• Electronic Workbench MultiSim®
• Texas Instruments Code Composer Studio®
• The MathWorks MATLAB® and Simulink®
• Ansoft RF circuit design software• Microsoft Access®
• Microsoft SQL Server®
• Oracle®
• Other
Communication Protocols• Ethernet• CAN• TCP/IP• DeviceNet• USB
• IEEE 1394• RS-232• GPIB• RS-485• BlueTooth• Other
OS Support• Microsoft Windows• Apple Macintosh• Linux
Leveraging Commercial Technologies
1980s 1990s 2000s
Lang
uage
sOS
esTe
chno
logi
es
JavaC/C++
Basic
MACWindows
UNIX (Solaris/Linux)
VBX OCX ActiveX COM .NET
Corba
LabVIEW
Explore LabVIEW—Exercise 1: Create a Simple LabVIEW VI
Data Acquisition with LabVIEW
Data Acquisition with LabVIEW• LabVIEW provides optimized
integration and configuration of all NI data acquisition devices with the NI-DAQmx driver software − Analog I/O− Digital I/O− Counter and Timer I/O− Signal Conditioning
DAQ Devices
Ethernet, Serial,
Wireless, Fieldbus
PCIPCIe
cPCI/PXI
USBCompact
Flash
Today’s Example DAQ SystemNI-DAQ and LabVIEW software
PCMCIA DAQCard
SCC Signal ConditioningCarrier and Modules
Sensors
Shielded Cable
Programming with NI-DAQmx and LabVIEW
Flexible programming options:• DAQ Assistant
– Creating Tasks and Channels in MAX– DAQ Assistant Express VI– DAQmx Task Name
Constant• Automatic code generation• NI-DAQmx API
– DAQmx VIs– DAQmx Property Nodes
NI-DAQmx Programming in LabVIEW
Core Polymorphic VIs
Property Nodes
Advanced Utility Functions
DAQ Assistant
NI-DAQmx Task and Channel Constants
Measurement & Automation Explorer (MAX)
Device configuration
and connection management
Built-in test panel windows
Task and channel creation
Signal connection diagrams
Simulated DAQmx devices
Explore LabVIEW—Exercise 2: Data Acquisition in LabVIEW
Instrument Control with LabVIEW
Instrument Control with LabVIEW• LabVIEW can communicate with virtually any instrument
– Instrument drivers– Instrument I/O Assistant
• Tools for parsing, analyzing, and presenting instrument data
Instrument drivers Direct I/O Instrument I/O Asst.
VXI PXIEthernet OtherGPIB/Serial
Instrument Drivers in LabVIEW• Communicate with more than 4,000 instruments encompassing over 200
vendors• Use common architecture
– Increase performance– Increase portability
• Use intuitive controls/indicators– No string formatting needed– No string parsing needed
• Instrument Driver Network – ni.com/idnet
• Automatically download/install with the Instrument Driver Finder NEW
Instrument I/O Assistant• I/O communication to Serial,
GPIB, or Ethernet instruments• Simplifies instrument control
applications– Reduces development time– Little to no programming required– Automatically formats instrument
responses into LabVIEW data types
– Increased flexibility through reusable sequences of code
Explore LabVIEW—Exercise 3: Instrument I/O with LabVIEW
Modular Instrumentation with LabVIEW
Updated Frequency/Resolution Curve Ac
cura
cy (B
its)
28
26
24
22
20
18
16
14
12
10
8
61 10 100 1K 10K 100K 1M 10M 100M 1G 10G 100G
NI before NI 5922Frequency (Hz) Traditional Instruments
NI after NI 5922
24 Bits at 500 kS/s (NI 5922)
16 Bits at 15 MS/s (NI 5922)
Modular Instrumentation with LabVIEWSoftware-defined measurements from 26 bits to 2.7 GHz
Multiplexers, matrices, relays, RF switches
Switching
Up to 400 Mb/sHigh-Speed Digital I/O
Up to 16 bits, 200 MS/sSignal Generators
2.7 GHz, 20 MHz RTBRF
7½ digits (26 bits), 1000 VMultimeters
24 bits, 500 kS/sAudio Analyzers
Up to 24 bits, 250 MS/sDigitizersExpress VIs for
Modular Instruments
Analyze and Present with LabVIEW
Analyze Data with LabVIEW
• Measurement-oriented analysis libraries• Application-specific toolkits
Over 500 built-in functions forsignal processing, analysis and math:• Signal synthesis• Curve fitting and interpolation• FFT-based frequency analysis• Mathematics• Probability and statistics• Time- and frequency-domain analysis• Digital signal processing• Waveform alignment and resampling• Much more…
Present Data with LabVIEWVisualization• Built-in user interface design objects• Charting and graphing utilities• Remote application viewing and control
Report Generation• Documentation Tools• HTML reports for the Web• Microsoft Word and Excel reports• Interactive report generation with NI DIAdem
Data Management and Connectivity• NI DIAdem• Database connectivity• File I/O• NI DataSocket• Open environment (ActiveX, DLLs) • Communication and data standards
– TCP/IP– BlueTooth– OPC– SQL database connectivity– XML data format
Remote Panels• Control NI LabVIEW VIs through a standard Web browser • Easy setup—no programming
required
Web BrowserLabVIEW Environment
Internet
Redesigned Application Builder• Create executables, DLLs, source distributions and zip files
• Bundle NI hardware drivers and software with an installer
• Manage multiple build settings in a single project
• Import .bld files to generate LabVIEW project automatically
Explore LabVIEW—Exercise 4: Present Data in a Report
Explore LabVIEW—Exercise 4b: Publish a VI to the Web
Web BrowserLabVIEW Environment
Internet
LabVIEW Everywhere
LabVIEW Everywhere
Graphical Development Environment for Design, Control, and Test
LabVIEW 8Real-Time Module
Embargoed until
October 3 rd, 2005
LabVIEW 8FPGA Module
LabVIEW 8PDA Module
LabVIEW 8DSC Module
LabVIEW Development Systems (Student, Base, Full, Professional)
Windows | Mac | Linux | RTOSEnglish | French | German | Japanese | Korean | Chinese
LabVIEW Real-Time Module
• Rapidly develop deterministic applications with graphical programming
• Easily architect distributed control and monitoring systems
• Eliminate time spent integrating diverse I/O
LabVIEW Datalogging and Supervisory Control Module• Graphical development for
distributed monitoring and control systems
• Trend real-time and historical data • Log data from any networked I/O to
a historical database • Monitor and log alarms and events • Network LabVIEW Real-Time targets
and OPC devices• Add security to LabVIEW user
interfaces
LabVIEW FPGA Module• Define custom FPGA I/O without any VHDL• Achieve hardware deterministic response of 25ns• Execute tasks in true parallel
Reconfigurable I/O (RIO) Hardware
LabVIEW FPGA Module
LabVIEW PDA Module• Create custom handheld applications for Palm,
Windows Mobile for Pocket PC, and select Windows CE OS devices
• Acquire data using NI CompactFlash DAQ and PCMCIA DAQCards, DMMs, and CAN devices
• Communicate using Bluetooth, Wi-Fi (802.11), SMS text messaging, e-mail, IrDA, and serial protocols
• Target standard and industrial PDAs, PDAswith phone capabilities, and touch-panel displays
Add new and existing LabVIEW source VIs
Navigate an entire LabVIEW application
Organize files like external code, documents, data files and more
Manage Real-Time, FPGA and PDA targets
Store LabVIEW Application Builder settings
Interface with source code control software
Project-Based Development
LabVIEW Add-On SoftwareMore than 50 Add-ons from NI• Application Deployment & Targeting
Modules• Software Engineering & Optimization
Tools• Data Management and Visualization• Real-Time and FPGA Deployment• Embedded System Deployment• Signal Processing and Analysis• Automated Test• Image Acquisition and Machine Vision• Control Design & Simulation• Industrial Control
Hundreds of add-ons from third parties
LabVIEW—Beyond the Seminar
Connect with the LabVIEW Community
• More than 50,000 members on NI Discussion Forums
• More than 100 worldwide User Groups
• Hundreds of LabVIEW add-ons• Thousands of Example Programs, tutorials, application notes
ni.com/services
LabVIEW Services and Support• Services to Meet the Needs of the Application
Lifecycle• FREE Technical Support
– Award-winning Web Support Resources– Applications Engineers Worldwide– Priority support via Service Programs
• Software Maintenance Services– Standard Service Program– NI Developer Suite
• Professional Services – Feasibility, consulting, and system integration through National Instruments Alliance Program members
LabVIEW Skill Development Plan
ni.com/training
Certifications
LabVIEW Basics I
LabVIEW Basics II
LabVIEW Intermediate I
Certified LabVIEW Developer Exam
LabVIEW Advanced I
Certified LabVIEW Architect Exam
LabVIEW Intermediate II
Courses
The Fastest, Most Certain Route to Productivity
New User Experienced User Advanced User
Core CoursesBegin Here
Certified LabVIEW Associate Developer Exam
• Save development time and cost• Differentiate skills with professional credentials• Multiple training formats - Classroom, On-site, Online, Self-Paced
LabVIEW Certification Program
Certified LabVIEW Developer
Certified LabVIEW Associate Developer
Certified LabVIEW Architect
Architect• Mastery of LabVIEW • Expert in large application development• Skilled in leading project teams
Developer• Advanced LabVIEW knowledge
and application development experience
• Project management skills
Associate Developer• Proficiency in navigating
LabVIEW environment• Some application
development experience
LabVIEW Fundamentals Exam• FREE, pre-certification skills test
ni.com/training
Your Next Step• Visit ni.com/info and enter “exuigs” to:
– Try LabVIEW Online for FREE – Read technical white papers– View web events on demand– Find other seminars in your area
• Schedule a visit with your local field engineer to discuss your application
Questions or Comments?
ni.com/labview
Appendix A: LabVIEW Product Offering
• Development Systems• Add-on Modules• Add-on Toolsets
LabVIEW Development Systems- What’s included?
Visit www.ni.com/labview for more info
NI Developer Suite – Bundled Development Tools
• Development environments – LabVIEW, CVI, Measurement Studio
• Add-on toolkits and accessories– Database, Internet, Signal Processing,
and others• Application specific software modules
– TestStand, LabVIEW Real-Time Module, and others
• Automatic quarterly software updates• 1 year of Standard Service
LabVIEW Datalogging & Supervisory Control• Graphical development for distributed
monitoring and control systems• Trend real-time and historical data • Log data from any networked I/O to a
historical database • Monitor and log alarms and events • Network LabVIEW Real-Time targets and
OPC devices• Add security to LabVIEW user interfaces
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
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
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
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)
Enterprise Connectivity Toolkit• Three components
– Database Connectivity Tools– SPC Tools– Internet Tools
• High-level functions for common database operations
• Perform online SPC while collecting data or analyzing recorded data
• Incorporate Web server access control/security
PID Control Toolkit
• PID Control– Autotuning– Gain scheduling
• Fuzzy Logic– Control strategies– Decision making
LabVIEW Advanced Signal Processing Toolkit • Time-Frequency Analysis
• Time-Series Analysis• Wavelet and filter bank
design• Applications
– Automotive– Biomedical– Seismology– Radar/Sonar
LabVIEW Sound & Vibration Toolkit10 Express VIs • Fractional Octave Analysis with
Weighting• Vibration Level with Single or Double
Integration• Sound Level with A-, B-, C-Weighting• Power Spectrum• Zoom Power Spectrum• Frequency Response• Peak Search• Power in Band• Limit Testing
LabVIEW Order Analysis Toolkit• Gabor order tracking algorithm
analyzes signals from rotating machinery
• Resampling order analysis for online condition monitoring
• Flexible order energy selection in the joint time-frequency domain
• Plot order versus time or RPM • Order extraction tools separate
order-specific signal components
• Digital and analog tachometer signal processing
• Eliminates programming of common test executive tasks
• Reuse test code from in any language• Simplifies updates and long-term maintenance
Open Language Interface
• 14 of the top 15 electronics manufacturers* use NI TestStand
*Electronic Business, 2004
Industry-leading test management software
NI DIAdem Interactive environment for data management, visualization, analysis, report generation and task automation
Find, understand, and work with your data the way that makes most sense to you
Build complex reports in a WYSWYG editor, then output to a PDF file
Work with datasets that contain over 100 billion data points.
Save time by automating common analysis and reporting tasks
Mine your data to find trends and perform correlations using the DataFinder
Coming Soon…DIAdem DataFinder
For more information visit www.ni.com/diadem