35
ni.com Introduction to LabVIEW and NI Hardware Platform Corrie Botha

Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

Embed Size (px)

Citation preview

Page 1: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

ni.com

Introduction to LabVIEW and NI Hardware Platform

Corrie Botha

Page 2: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

2ni.com

Platform-Based Approach

Page 3: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

3ni.com

With LabVIEW, You Can Program the Way You

Think

Page 4: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

4ni.com

With LabVIEW, You Can Program the Way You Think

The graphical, dataflow-based G programming language

is ideal for programming parallel data acquisition

hardware.

Page 5: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

5ni.com

LabVIEW is a Graphical Programming Language

• Dataflow, Implicit GUI, Datatypes, Loops, Parallelism,

Functions, SubVIs

• Computation & Logic, File I/O etc.

• Debugging tools – Highlight execution, Online probes (even for

remote targets)

• OOP Framework, Support for ActiveX, .NET, DLLs and

Executables

Page 6: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

6ni.com

LabVIEW is made for Scientists & Engineers

• Intuitive UI design & rich visualization

• Control Design & Simulation, Signal Processing, Machine

Vision, RF Communications and many more toolkits

• Invoke MATLAB® code into LabVIEW

Page 7: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

7ni.com

LabVIEW can easily talk to Hardware

• DAQmx Device Drivers, Instrument Drivers, Report Generation

• Serial, USB, TCP, UDP, GPIB etc.

• 10,000+ Instrument drivers from over 350 vendors

Page 8: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

8ni.com

LabVIEW is a Multi-Target Programming Language

• Windows, Linux, Linux-RT, VxWorks, Pharlaps

• Processor, FPGA, GPU, SoC

cRIO-9002

cRIO-9004

cRIO-9072

cRIO-9074

cRIO-9075

cRIO-9076

cRIO-9012

cRIO-9014

cRIO-9024

cRIO-9025

cRIO-9081

cRIO-9082

cRIO-9068

Page 9: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

9ni.com

What is LabVIEW?

• Graphical programming language that can be used to

develop systems like

• Data Acquisition

• Automated Test

• Control

• Communication

• SCADA

• Test Cells

• Automation

• and so on…

Page 10: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

10ni.com

PXI System Architecture

PXI Backplane• 133MB/s to 4GB/s

• Instrument Synchronization

•10/100 MHz clock

PXI Controller• Windows, Linux, RT

• ADEs

• Multi-core

Modules (Instruments & Targets)• 1500 PXI Modules from over 70 vendors

• RIO Targets for prototyping

Software• Ready to use Soft Panels

• Toolkits & API for Analysis

Page 11: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

11ni.com

Complete PXI Instrumentation Portfolio

Multifunction I/O

FPGA / Reconfigurable I/O

Digital I/O

Analog Input / Output

Vision and Motion

Counter / Timer / Clock

DAQ and Control

Oscilloscopes

High-Speed Digital I/O

Digital Multimeters

Audio Video

Switching

RF Analyzers & Generators

Instruments

GPIB, LAN

RS232 / RS485

CAN, LIN, DeviceNet

SCSI, Ethernet

VXI - VME

Boundary Scan / JTAG

Interfaces

Page 12: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

12ni.com

Advantages of PXI: Size

Software Defined Traditional

Page 13: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

13ni.com

Size: “The shipping container for the previous ATE system alone

would cost as much as our entire new PXI test system.”

PXI Tester Reduction Previous ATE

Cost $40K USD 11X $450K+ USD

Footprint 18 by 24 by 7 in. 15X 98 by 66 by 74 in.

Weight 60 lb 66X 4,000 lb

Facility 600 W 16X 10 KW

Using PXI and LabVIEW, we were

able to test our MEMS devices at a

fraction of the cost, weight, power

consumption, and footprint of our

previous ATE system."

– Woody Beckford, Analog Devices

Inc.

Page 14: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

14ni.com

Advantages of PXI Approach: Flexibility

Software Defined Traditional

Page 15: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

16ni.com

Advantages of PXI: Synchronization

Page 16: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

17ni.com

Early 2000s—Traditional

Rack and Stack

2007—NI PXI RF

Instrumentation

802.11a + b + g + 802.11n + 802.11ac

10X Faster Than

Traditional

200X Faster Than

Traditional

2012—NI PXI Vector

Signal Transceiver

200x Faster tests - Qualcomm

Page 17: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

18ni.com

Soft Front Panels – Quick Measurements

NI-DMM and NI-SWITCH Soft Front Panels

RF Signal Analyzer SFP

Page 18: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

19ni.com

Express VIs for Quick Configuration

Measurement and Analysis Express VIs

Instrument Express VIs

Page 19: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

20ni.com

LabVIEW Templates and Sample Projects for

Application Development

• Recommended starting points for

common LabVIEW applications

• Clearly indicates where to add or

change functionality

• Shows best practices for code

design, documentation, and

organization

• Add custom templates and sample

projects

Page 20: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

21ni.com

What we have seen earlier…..

Algorithm implementation

Analog I/O

Digital I/O

Sensors / Actuators

RF I/O

Protocol I/O

+ Good for Automated Measurements

• OK for simple control applications

- Bad for high speed control

Page 21: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

22ni.com

LabVIEW RIO ArchitectureEmbedded Control & Monitoring Systems

Algorithm implementation

Analog I/O

Digital I/O

Sensors / Actuators

RF I/O

Protocol I/O

FPGA

Real Time System

Optional

Page 22: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

23ni.com

A

B

C

D

FE

What is FPGA?

YW X

Z

Page 23: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

24ni.com

Microprocessor vs. FPGA

Pros

• Quick & flexible programming

• Complex algorithms can be implemented

• Floating point processing

• Operating system support

Cons

• Not deterministic to the pin

• Not inherently parallel

Pros

• Deterministic to the pin

• Inherently parallel

• Very high throughput

Cons

• Large compilation times

• Difficult to implement complex

algorithms

• Programming in VHDL – Difficult to

learn

Page 24: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

25ni.com

LabVIEW RIO Architecture – Best of BothSoftware Defined Systems – Architecture 2

Algorithm implementation

Analog I/O

Digital I/O

Sensors / Actuators

RF I/O

Protocol I/O

FPGA

Real Time System

Optional

Page 25: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

26ni.com

Highly Productive LabVIEW Graphical Programming Environment for

Programming Host, FPGA, I/O, and Bus Interfaces

Modular I/O

for Any Signal

FPGA

Processor

NI CompactRIO

Page 26: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

27ni.com

Connect to Any Sensor on Any Bus

Thermocouples

4 to 20 mA

Storage media

RTD

Engine control

Industrial vision

Motion control

Accelerometer

Strain gage

Resistance

Load cells

Digital I/O and protocols

Microphone

Bus communications

100+ Industrial I/O Modules

Page 27: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

28ni.com

Open Loop Motor Control

PWM

IGBT

Page 28: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

29ni.com

Closed Loop Motor Control

PWM

Feedback

IGBT

Page 29: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

30ni.com

Closed Loop Multi Output Motor Control

IGBT 1

PWM 2

Feedback

IGBT 2

PWM 1

Page 30: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

31ni.com

Variable Frequency Drive (with Encoder Feedback)

SPWM

Encoder

IGBT

Page 31: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

32ni.com

FOC based Variable Frequency Drive

SPWM

Encoder

IGBT

Current

Page 32: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

33ni.com

Motor Performance Measurement

Voltage

Current

Speed

Page 33: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

34ni.com

Modular I/O for

Any Signal

FPGAProcessor

Highly Productive LabVIEW Graphical Programming Environment for

Programming Host, FPGA, I/O, and Bus Interfaces

NI Single Board RIO

Page 34: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

35ni.com

Platform-Based Approach

Page 35: Introduction to LabVIEW and NI Hardware Platformsouthafrica.ni.com/sites/default/files/02 - Intro to LabVIEW and NI... · ni.com 4 With LabVIEW, You Can Program the Way You Think

ni.com

Thank You