Radim ŠTEFAN, Roman VALA. Radim ŠTEFAN National Instruments Praha 110 00 765 356 876 410 02+ 456...

Post on 25-Dec-2015

225 views 3 download

transcript

Radim ŠTEFAN, Roman VALA

Radim ŠTEFAN National Instruments Praha

110 00 765 356 876 410 02+ 456 radim.stefan@ni.com

6 16 52 24 V300 Hz

kasjhf lasdkjhf lakjd flakjdfh lakjdhal

Q kajsdhf laksdhfoaidfh kc alkjdhf alkjdf

Y adjh alkdjhl akvdj lakskdjf hgslkdjfhslk fg

jkdhf akjsdhf lkasdhlfhi erufhi suhfkdj

LEGO Mindstorms NXT

Možnost výhry !!!

LabVIEW – grafické vývojové prostředí

• Kompilované grafické vývojové prostředí• Vývoj 4x-10x rychlejší oproti běžnému programování• Nástroje pro sběr, analýzu a zobrazení dat

LabVIEW – jednoduché programováníLabVIEW C*

* does not include code to generate UI

2005

2006

2003

2005

1998

2000

1993

1997

1990

19921986

LabVIEW 1.0For Macintosh

LabVIEW 2.0Compiled Language

LabVIEWFor Sun, Windows

LabVIEW 3.0Multiplatform

LabVIEW 4.0ProfessionalDevelopment

LabVIEW 6iInternet Ready

LabVIEW 5.0Undo! Real-Time

LabVIEW 7 ExpressPDA and FPGA

LabVIEWEmbedded and DSP

Anniversary Edition

LabVIEW 8Distributed Intelligence

20 Years of Innovation

• Make common measurements EASY with any board, instrument, or bus

• Help users build POWERFUL solutions with standard PC technology

• Integrate external tools and technologies with an OPEN platform

Easy. Powerful. Open

Major Features in LabVIEW 8.20

• MathScript

• Object-Oriented Programming

• 3D Picture Control

• DLL Import Wizard

• TDM Streaming

ni.com/labview/upgrade

LabVIEW MathScript

• Combine textual math and graphical programming• Reuse many of your m-file scripts created with The MathWorks, Inc.

MATLAB® software

MATLAB® is a registered trademark of The MathWorks, Inc. demo

What Is LabVIEW MathScript?

Powerful textual programming for signal processing, analysis, and math

–More than 650 built-in functions

–Reuse many of your m-file scripts created with The MathWorks, Inc. MATLAB® and others

–Based on original math from NI MATRIXx

A native LabVIEW solution

–Interactive and programmatic interfaces

–Does not require third-party software

MATLAB® is a registered trademark of The MathWorks, Inc. All other trademarks are the property of their respective owners.

MathScript Features

MathScript Feature Description

Powerful Textual Math Over 650 built-in functions for math, signal processing and analysis

Math-Oriented Syntax and Datatypes

Matrices and arrays are fundamental datatypes. Largely support vectorized operations

Compatible Generally compatible with the widely used m-file script syntax

Extendible Define custom functions

Part of LabVIEW Does not require third-party software to compile and execute

Programmatic LabVIEWInterface

Combine graphical & textual code programming

2

MathScript Details

• Part of the Full, Professional, Student and Evaluation editions of LabVIEW, for Windows platforms only (no Linux, Mac, RT, etc.)

• MathScript is NOT a standalone replacement for alternative technical computing software– Third party toolboxes are not supported– Some commands and variable types are not supported

MathScript Window Components

Command Window

Output Window

Workspace

Getting Started Window

Selected Variable

5-a

The MathScript Window : Variable View5-b

The MathScript Window : Script Tab

• Interactively develop and test scripts and functions with the Script Editor

– Enter / Edit script text– Save & Compile / Save / Load / Run scripts

• Launch separate Script Editor window for easy editing

Right Click Pop-up Menu

5-c

The MathScript Window : History Tab

Right Click to Clear History

5-d

MathScript Node

• Embed MathScripts into LabVIEW code on the block diagram

• Populate with m-file script text– Type m-file scripts directly into the node– Import from files

• Create inputs/outputs on node edges• MathScript compiles script when run

– Unlike MATLAB® script nodes, MathScript script nodes do not require third-party software

MathScript Node

5-e

MATLAB® is a registered trademark of The MathWorks, Inc

MathScript Node

MathScript Node

m-Script

Right-Click Menu

5-f

Programmatic Math with the MathScript Node

• Combine graphical system design with textual math• Deploy with LabVIEW graphical programming• Implement equations and algorithms with text

Goal: Multiple Programming Approaches

Integrate math with real-world I/O and instrument control

Add interactive user interfaces to your algorithms

Freedom to choose the best approach Reuse your existing code

Demo: MathScript

Working with Graphical and Textual Approaches in LabVIEW

• Always consider both• Prototype and instrument your math algorithms• Use LabVIEW features through graphical programming • Take a mixed approach to combine graphical and textual

benefits• Work within a single environment to simplify and reduce cost• Reuse your existing m-files

Major Features in LabVIEW 8.20

• MathScript

• Object-Oriented Programming

• 3D Picture Control

• DLL Import Wizard

• TDM Streaming

• ….

ni.com/labview/upgrade

LabVIEW Object-Oriented Programming

For power programmers and large-scale application development

Parent Class

Child Class

Encapsulation

Classes and objects

Inheritance

Demo: Object-Oriented Programming

Major Features in LabVIEW 8.20

• MathScript

• Object-Oriented Programming

• 3D Picture Control

• DLL Import Wizard

• TDM Streaming

• ….

ni.com/labview/upgrade

History of 3D in LabVIEW

• LabVIEW 5.1:– First 3D Graphs available– ComponentWorks controls based on

ActiveX

• LabVIEW 7.1:– First 3D Picture Control software– Separate download– No technical support offered

3D Picture Control

• Create 3D scenes using picture control VIs• Control object motion, size, and color using OpenGL• Import objects from design tools (VRML, STL, ASE )

Demo

How Does it Work?

• Introduction to API– Geometries

• Box, Cone, Cylinder, Height Map, Mesh or Sphere

– Object• Create or Find object

– Transformations• Translate, Rotate or Scale objects

– Helpers• Color, Light, Window, Texture, etc.

– File Loading• Import ASE, STL or VRML files

– Further functionality available through Property and Invoke Nodes

Benefits of New 3D Picture Control

• Easy to use API• Powerful

– Hardware acceleration supported for Scene Window– Leveraging scene graph technology*

• Multi-OS support– Mac, Linux and Windows

*OpenSceneGraph (www.openscenegraph.org)

Demo: 3D Tools

Example of 3D scene

Major Features in LabVIEW 8.20

• MathScript

• Object-Oriented Programming

• 3D Picture Control

• DLL Import Wizard and External Code

• TDM Streaming

• ….

ni.com/labview/upgrade

History of Calling External Code

• Call Library Node– Call shared libraries in Windows, Macintosh and Linux

• ActiveX– Support added in LabVIEW 4.1– Containers and servers added in LabVIEW 5– Event support added in LabVIEW 6i

• .NET– Support for .NET added in LabVIEW 7– .NET enabled the support for Web Services in LabVIEW– Support for .NET Events and Controls in LabVIEW 8

Call Library Node Advances

• You can now dynamically load and unload shared libraries

• Error cluster support• View parameter names on block diagram

• Function callbacks

DLL Import Wizard

Automatically generate LabVIEW interfaces to your DLLs and shared libraries

Support for: Windows (.dll), Linux (.so) , Macintosh (.framework) Demo

Shared Library Import Wizard

• You can now quickly and easily generate LabVIEW VIs from shared libraries

• Supports– Windows (.dll)– Linux (.so)– Macintosh (.framework)

• Header file (.h) necessary• Saves configuration info to quickly

recreate or modify LabVIEW VIs

.NET Web Service Import Wizard

Web Server

.NET

Remote Procedure

Automatically generate LabVIEW interfaces to Web Services

Internet

Web Service ProvidersWeb Service Requesters

Web Service Import Wizard

• You can now easily connect to online Web Services• Simple creation of LabVIEW VIs from WSDL• No low-level programming needed

Instrument Driver Export Wizard

Develop drivers in LabVIEW, reuse in C

Instrument Driver Export WizardDLL, .h, and Help

Files

C Interface Generator

• You can now create drivers in LabVIEW, then use in C

• Wraps LV DLLs for use in C• Converts parameters to C data

types• Modifies documentation to be C

specific

Major Features in LabVIEW 8.20

• MathScript

• Object-Oriented Programming

• 3D Picture Control

• DLL Import Wizard

• TDM Streaming

ni.com/labview/upgrade

TDM Streaming API

• Easily save search-ready data files• Stream data in standard or real-time applications• Mine data files using NI DIAdem DataFinder

TDM Data Model

Demo

NI Core TDM Components• TDM Data Model & File

• TDM Streaming VIs

• Data Storage VIs

• DataPlugins

• DIAdem DataFinder

In this second half of the presentation we’ll investigate how you use TDM to address your data management challenges

TDM Files are Self Describing

•Description•Title•Author•etc

•UUT•Procedure•etc

•Name•Comment•Unit•Max & Min•Sensor Info•etc

Bulk Measurement Data

Header

Interfacing with the TDM Data ModelTDM Streaming API

(new)Storage API

(existing)TDM Data Model

TDMS File (binary)

TDM File (binary + XML)

The LabVIEW Data Storage API (existing)

• Read and Write TDM & TDMS files • Advanced functions for selective data loading• Supports reading data using DataPlugins• Convert TDM to TDMS files and vice versa

The LabVIEW TDM Steaming API (new)

• Read, Write, and set properties (TDMS files)• Optimized for High Speed Streaming• Covers the widest range of file i/o use cases

Demo: TDMS Files

Excel can load and read TDMS Files• Excel can load TDM Files • Visit, www.ni.com/tdm and download Excel Add-in for TDM.

Major Features in LabVIEW 8.20

• MathScript

• Object-Oriented Programming

• 3D Picture Control

• DLL Import Wizard

• TDM Streaming

• Other Features

ni.com/labview/upgrade

Improved Remote Panel Server

Simultaneously Control VIs over the Web

LabVIEW Signal Processing and Analysis

Area TypesWindow Functions

Modified Bartlett-HanningBohmanParzenWelch

Pulse Train Generation

Pulse TrainGaussian Modulated Sine Pattern Gaussian MonopulsePeriodic Sinc Pattern Triangle Pattern (generic)

Digital Filtering

FIR FilterSavitsky Golay

Front-Panel Wall Paper

Right Clic

k

Easily embed scalable image

New File I/O Capabilities

• List all files and folders in path

• Check if file or folder exists

• Compare two file paths

Found on Adv. File I/O palette

Auto-Backup and Restore

• Periodically backs up all unsaved files• Restores VIs to selected state• Performs graphical differencing of backup and original (PDS)

• Merge or replace hardware configuration settings on target PCs

• Speed installer creation by caching driver software on disk

• Auto-increment executable, DLL, and installer versions

Application Builder Enhancements

Building on the Innovations of LabVIEW 8

Environment improvementsVI load time reduced by up to 40%First launch time reduced up to 30%

CompletenessApplication BuilderShared variable (PDA, Touch Panel)Embedded development

Execution speedRT PID algorithm 14X fasterShared variable 70% faster updateSimulation module 9X faster run/compile

Performance Tuning

Easy. Powerful. Open.Graphical Platform for Design, Control, and Test

Real-Time Module

FPGA Module

PDA andTouch Panel

Modules

DSC Module

LabVIEW Development Systems (Student, Base, Full, Professional)

Windows | Mac | Linux® | RTOS

English | French | German | Japanese | Korean | Chinese

Embedded Module

Vision andNI SoftMotion

Modules

Simulation Module

ModulationToolkit

Control Design

SystemIdentification

Digital FilterToolkit

Advanced Analysis

Sound andVibration

Internet and Database

Design, Distribute, and Synchronize Intelligent Devices and Systems

Extending Distributed Intelligence

• FPGA Wizard

• Real-time applications on the desktop

• New Touch Panel Module

• Shared variable on LabVIEW PDA

• LabVIEW Embedded project integration

New Targeting Technology Extends Distributed Intelligence

LabVIEW FPGA Wizard

VHDL

LabVIEW FPGA Wizard

Create intelligent DAQ devices with custom timing and I/O

LabVIEW 7 Express

Demo

Demo: FPGA Wizard

Real-Time Applications on a Desktop Computer

• Run real-time applications on compatible PCs

• Download new system validator to test compatibility

• Convert PCs into a real-time system with the Real-Time Desktop Bundle

...validated

NEW! LabVIEW Touch Panel Module

Create custom human-machine interface (HMI) applications for the NI TPC-2006 and other Windows CE devices

NI TPC-2006

•Wireless communication with shared variable

•Portable low-cost USB DAQ

LabVIEW PDA Module

•Program any 32-bit microprocessor

•Manage embedded targets from the LabVIEW Project

•New example targets – ARM7 and TI C6X

LabVIEW Embedded Development Module

LabVIEW for LEGO Mindstorms NXT

• Design tool connectivity

• Textual math

• Control design and

simulation

• RF design and test

Bridging Design and Test with Graphical System Design

LabVIEW Control Design and Simulation

• Design, simulate, and implement dynamic control systems• Deploy simulations to real-time and embedded targets• Control Design Toolkit improvements

– Use with real-time systems – Apply advanced Kalman filter

System Testing

Modeling and Design

Targeting

Rapid Prototyping

Hardware-in-the-Loop

Testing

Mechanical DesignSolidWorks COSMOSWorksMSC Nastran and AdamsAutodesk AutoCAD

CATIA, PTC Pro/Engineer

MathematicsThe MathWorks, Inc. MATLAB®

Maplesoft MapleMathsoft Mathcad

INRIA Scilab

Control Design and HIL The MathWorks, Inc. Simulink®

NI MATRIXx, SystemBuild Dynasim DymolaPlexim PLECS

Mech Sim CarSim

Embedded SoftwareTI Code Composer Studio™

Analog Devices VisualDSP++Freescale Code WarriorWind River Workbench

Circuit EDAElectronics Workbench

MultisimCadence PSpice Ansoft Designer

ADI OpAmp Selector

Open Connectivity to Design Tools

Increasing productivity through integrated design and test

MATLAB® and Simulink® are registered trademarks of The MathWorks, Inc.

ni.com/validation

LabVIEW Modulation Toolkit

• AM, FM, PM• ASK, FSK, MSK, GMSK, PAM, PSK,

QAM, …• OFDM• BER, Burst Timing, Frequency

Deviation, MER, EVM, ρ (rho)

• Galois PN• Fibonacci PN

• Data Compression• Digital Filters• Custom VIs• M-Script• Custom DLLs

• Hamming, Golay, Reed-Solomon, Bose-Chaudhari-Hocquenghem (BCH), Convolutional, Spreading

• Interleavers, Puncturing• Equalization

Source CodingSource Coding

Channel Coding

Channel Coding ModulationModulationBits IQ

Bit Generation

Bit Generation

Bits Bits

•Analyze and generate analog and digital modulated signals•Develop software-defined radios•Use new OFDM examples

Demo

Demo: RF Modulation

• 2X data-logging performance improvement through shared variable • Tools for power programming

– Instantly create thousands of shared variables programmatically– Express VI to create I/O servers (e.g., OPC, Modbus, etc.)

• Send alarms and events to printers as they occur

New LabVIEW 8.20 DSC Module Features

• Object-oriented graphical programming

• OpenGL-based 3D Picture Control• Multiuser Web-based application control• High-speed TDM data streaming

• Simplified dynamic VI calling• Auto-backup and recovery of VIs

• DLL import wizard• Express VI for continuous data acquisition• LabVIEW Real-Time USB boot disk• C interface export wizard for instrument drivers• .NET Web service import wizard• OFDM example programs

• System replication tools for real-time systems• Faster real-time interthread communication• USB storage with LabVIEW Real-Time• FPGA Wizard• New FPGA IP for math and signal processing• 64-bit integer support with LabVIEW FPGA• Improved memory access for LabVIEW FPGA• LabVIEW PDA user interface improvements• Shared variable support for LabVIEW PDA• Touch Panel Module for industrial displays• Third-party FPGA IP integration• LabVIEW Embedded project integration• Textual math with MathScript

Ceny a upgrade na

• Nové licence LabVIEW (Kč bez DPH)– Base Package 31 020,-– Full Development Systém 62 070,-– Professional Development System 106 060,-

• DeveloperSuite (LabVIEW PDS, CVI, MStudio, + 8 toolkitů)– Professional Edition 111 240,-

• Upgrade z LabVIEW 7.x– Base Package 15 500,-– Full Development Systém 31 020,-– Professional Development System 51 720,- www.ni.com/upgrade

Ceny pro školy

• Plošná license pro celou katedru, fakultu, univerzitu– Katedrální licence na NI software 123 730,-

• Licence LabVIEW pro výuku – Licence na 10 počítačů (LabVIEW FDS) 47 000,-

• Kombinace HW a SW („Starter Kit“)– PCI-6221 + přísl. + LabVIEW FDS 21 010,-– cRIO + LabVIEW PDS, RT, FPGA 61 850,-

• Slevy z běžného ceníku: 10-25% na HW, 35-75% na SW

Školení – nejrychlejší cesta k produktivitě

• Česká pobočka zajišťuje školení všech produktů NI• Oficiální školící materiály a certifikáty• Hardware pro každého účastníka• Mnoho příkladů

• Školení pro jednotlivce• Školení ve firmách

ni.com/training

Školení Základy LabVIEW 1 a 227 000 Kč, SSP -10%, školy -50%

Další informace:

• www.ni.com• www.ni.com/czech - česká příručka k LabVIEW• www.ni.com/trylabview - online „demoverze“• www.ni.com/labview• www.ni.com/automatedtest• www.ni.com/measurementfundamentals