Introduction to LabVIEW and NI Hardware Platform Corrie Botha
Platform-Based Approach 2
With LabVIEW, You Can Program the Way You Think 3
With LabVIEW, You Can Program the Way You Think The graphical, dataflow-based G programming language is ideal for programming parallel data acquisition hardware. 4
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 5
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 6
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 7
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 8
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 9
PXI System Architecture PXI Backplane 133MB/s to 4GB/s Instrument Synchronization 10/100 MHz clock Software Ready to use Soft Panels Toolkits & API for Analysis PXI Controller Windows, Linux, RT ADEs Multi-core Modules (Instruments & Targets) 1500 PXI Modules from over 70 vendors RIO Targets for prototyping 10
Complete PXI Instrumentation Portfolio DAQ and Control Multifunction I/O FPGA / Reconfigurable I/O Digital I/O Analog Input / Output Vision and Motion Counter / Timer / Clock Instruments Oscilloscopes High-Speed Digital I/O Digital Multimeters Audio Video Switching RF Analyzers & Generators Interfaces GPIB, LAN RS232 / RS485 CAN, LIN, DeviceNet SCSI, Ethernet VXI - VME Boundary Scan / JTAG 11
Advantages of PXI: Size Software Defined Traditional 12
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. 13
Advantages of PXI Approach: Flexibility Software Defined Traditional 14
Advantages of PXI: Synchronization 16
200x Faster tests - Qualcomm 802.11a + b + g + 802.11n + 802.11ac Early 2000s Traditional Rack and Stack 2007 NI PXI RF Instrumentation 10X Faster Than Traditional 2012 NI PXI Vector Signal Transceiver 200X Faster Than Traditional 17
Soft Front Panels Quick Measurements RF Signal Analyzer SFP NI-DMM and NI-SWITCH Soft Front Panels 18
Express VIs for Quick Configuration Measurement and Analysis Express VIs Instrument Express VIs 19
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 20
What we have seen earlier.. + Good for Automated Measurements OK for simple control applications - Bad for high speed control Analog I/O Digital I/O Sensors / Actuators RF I/O Protocol I/O Algorithm implementation 21
LabVIEW RIO Architecture Embedded Control & Monitoring Systems Analog I/O Optional Digital I/O FPGA Sensors / Actuators Real Time System RF I/O Protocol I/O Algorithm implementation 22
What is FPGA? E F A B C D Z W X Y 23
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 24
LabVIEW RIO Architecture Best of Both Software Defined Systems Architecture 2 Analog I/O Optional Digital I/O FPGA Sensors / Actuators Real Time System RF I/O Protocol I/O Algorithm implementation 25
NI CompactRIO Processor FPGA Modular I/O for Any Signal Highly Productive LabVIEW Graphical Programming Environment for Programming Host, FPGA, I/O, and Bus Interfaces 26
Connect to Any Sensor on Any Bus 100+ Industrial I/O Modules Accelerometer Strain gage Resistance Load cells Digital I/O and protocols Microphone Bus communications Thermocouples 4 to 20 ma Storage media RTD Engine control Industrial vision Motion control 27
Open Loop Motor Control IGBT PWM 28
Closed Loop Motor Control IGBT PWM Feedback 29
Closed Loop Multi Output Motor Control IGBT 2 PWM 2 Feedback PWM 1 IGBT 1 30
Variable Frequency Drive (with Encoder Feedback) SPWM IGBT Encoder 31
FOC based Variable Frequency Drive SPWM IGBT Encoder Current 32
Motor Performance Measurement Speed Voltage Current 33
NI Single Board RIO Processor FPGA Modular I/O for Any Signal Highly Productive LabVIEW Graphical Programming Environment for Programming Host, FPGA, 34 I/O, and Bus Interfaces
Platform-Based Approach 35
Thank You