Sunteți pe pagina 1din 72

LabVIEW Graphical Development

Hands-On Seminar
Agenda
• Introduction to National Instruments and
LabVIEW 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

Direct Sales Offices

Distributors
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

PXI Modular Instrumentation Desktop PC Laptop PC PDA

High-Speed High-Resolution Multifunction Dynamic Instrument Digital I/O Counter/ Machine Motion Distributed I/O and
Digitizers Digitizers and DMMs DAQ Signal Acquisition Control Timers Vision Control Embedded Control

Signal Conditioning
and Switching

Unit Under Test


Measurement and Automation Software
Framework
Test and Data Management Software
NI TestStand, DIAdem
Interactive Tools Application Development Software
SignalExpress
VI Logger
Vision Builder AI
LabVIEW
Graphical Development

Measurement and Control Services


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 Environment
Front 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 “The robustness of LabVIEW,
• Hierarchal system with subVIs combined with its graphical
programming environment,
• Reusable building blocks similar ensure that we can quickly
to subroutines 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
LabVIEW 32%

Microsoft Visual Basic 13%

Visual C++ 10%

MATLAB 4% Software
SoftwareUsed
Software Usedfor
Used forPC-Based
for PC-Based
PC-Based
Data
DataAcquisition
Data Acquisitionand
Acquisition and
and
LabWindows/CVI 4%
Instrument
InstrumentControl
Instrument Control
Control
0% 5% 10% 15% 20% 25% 30% 35%

Source: Survey of 400 US readers from T&M World, EDN, Design News, and R&D magazines, Q1 2004
Leveraging Commercial Technologies
Third-Party Software Communication Protocols
• Wolfram Research Mathematica® • Ethernet • IEEE 1394
• Microsoft Excel® • CAN • RS-232
• MathSoft MathCAD® • TCP/IP • GPIB
• Electronic Workbench MultiSim® • DeviceNet • RS-485
• Texas Instruments Code Composer • USB • BlueTooth
Studio® • Other
• The MathWorks MATLAB® and Simulink®
• Ansoft RF circuit design software OS Support
• Microsoft Access® • Microsoft Windows
• Microsoft SQL Server® • Apple Macintosh
• Oracle® • Linux
• Other
Leveraging Commercial Technologies
Technologies

Corba

VBX OCX ActiveX COM .NET

UNIX (Solaris/Linux)
LabVIEW
OSes

Windows
MAC
Languages

Java
C/C++
Basic

1980s 1990s 2000s


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

cPCI/PXI

PCI
PCIe
USB
Compact
Flash
Ethernet,
Serial,
Wireless,
Fieldbus
Today’s Example DAQ System
NI-DAQ and LabVIEW software
SCC Signal Conditioning
Carrier and Modules

Sensors PCMCIA DAQCard

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

NI-DAQmx Task and


Channel Constants Property Nodes

DAQ Assistant Advanced Utility


Functions
Measurement & Automation Explorer (MAX)
Task and Built-in test
channel panel windows
creation

Simulated
DAQmx devices

Device
configuration
and connection
Signal connection
management
diagrams
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.

GPIB/Serial Ethernet VXI PXI Other


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
28
26
24 24 Bits at 500 kS/s (NI 5922)
22
Accuracy (Bits)

20
16 Bits at 15 MS/s (NI 5922)
18
16
14
12
10
8
6
1 10 100 1K 10K 100K 1M 10M 100M 1G 10G 100G

Traditional Instruments
Frequency (Hz) NI before NI 5922
NI after NI 5922
Modular Instrumentation with LabVIEW
Software-defined measurements from 26 bits to 2.7 GHz

Digitizers Up to 24 bits, 250 MS/s


Express VIs for
Audio Analyzers 24 bits, 500 kS/s Modular
Instruments
Multimeters 7½ digits (26 bits), 1000 V

RF 2.7 GHz, 20 MHz RTB

Signal Generators Up to 16 bits, 200 MS/s

High-Speed Digital Up to 400 Mb/s


I/O
Switching Multiplexers, matrices, relays,
RF switches
Analyze and Present with LabVIEW
Analyze Data with LabVIEW
Over 500 built-in functions for
signal 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…
• Measurement-oriented analysis libraries
• Application-specific toolkits
Present Data with LabVIEW
Visualization
Data Management and Connectivity
• Built-in user interface design objects
• NI DIAdem
• Charting and graphing utilities
• Database connectivity
• Remote application viewing and control
• File I/O
• NI DataSocket
• Open environment (ActiveX, DLLs)
• Communication and data standards
– TCP/IP
Report Generation – BlueTooth
• Documentation Tools – OPC
• HTML reports for the Web – SQL database connectivity
• Microsoft Word and Excel reports – XML data format
• Interactive report generation with NI DIAdem
Remote Panels
• Control NI LabVIEW VIs through a standard Web browser
• Easy setup—no programming
required

Internet

LabVIEW Environment Web Browser


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

Internet

LabVIEW Environment Web Browser


LabVIEW Everywhere
LabVIEW Everywhere
Em
Oc ba
tob rgo
er ed
3 rd un
, 2 til
00
5

LabVIEW 8 LabVIEW 8 LabVIEW 8 LabVIEW 8


Real-Time Module DSC Module FPGA Module PDA Module

LabVIEW Development Systems


(Student, Base, Full, Professional)

Graphical Development Environment for Design, Control, and Test

Windows | Mac | Linux | RTOS


English | 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
LabVIEW FPGA Module

Reconfigurable I/O (RIO) Hardware


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, PDAs
with phone capabilities, and touch-panel
displays
Project-Based Development
Navigate an entire LabVIEW application

Add new and existing LabVIEW source VIs

Organize files like external code, documents,


data files and more

Store LabVIEW Application Builder settings

Interface with source code control software

Manage Real-Time, FPGA and PDA targets


LabVIEW Add-On Software
More than 50 Add-ons from NI Hundreds of add-ons from
• Application Deployment & Targeting third parties
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
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
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, ni.com/services
consulting, and system integration through
National Instruments Alliance Program
members
LabVIEW Skill Development Plan
The Fastest, Most Certain Route to Productivity

New User Experienced User Advanced User

Courses LabVIEW Advanced I


LabVIEW LabVIEW
Core Courses
Intermediate I Intermediate II
Begin LabVIEW LabVIEW
Here Basics I Basics II
Certified LabVIEW
Architect Exam
Certifications Certified LabVIEW
Developer Exam
Certified LabVIEW
Associate Developer Exam

• Save development time and cost ni.com/training


• Differentiate skills with professional credentials
• Multiple training formats - Classroom, On-site, Online, Self-Paced
ni.com/training
LabVIEW Certification Program
Architect
• Mastery of LabVIEW Certified
• Expert in large application development LabVIEW
• Skilled in leading project teams Architect
Developer
• Advanced LabVIEW knowledge
and application development Certified LabVIEW
experience Developer
• Project management skills

Associate Developer
• Proficiency in navigating
Certified LabVIEW Associate
LabVIEW environment
Developer
• Some application
development experience

• FREE, pre-certification
skills test
LabVIEW Fundamentals Exam
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 Toolkit
10 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
Industry-leading test management software

• Eliminates programming of
common test executive tasks
• Reuse test code from in any language
• Simplifies updates and long-term maintenance
• 14 of the top 15 electronics
manufacturers* use NI
TestStand

*Electronic Business, 2004


Open Language Interface
NI DIAdem Interactive environment for data management, visualization,
analysis, report generation and task automation

Mine your data to find trends and perform Coming Soon…


correlations using the DataFinder
DIAdem DataFinder
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

Find, understand, and work with your data For more information visit
the way that makes most sense to you
www.ni.com/diadem

S-ar putea să vă placă și