380 likes | 999 Views
Lesson 1 Introduction to LabVIEW FPGA. Introduction to FPGA Technology LabVIEW FPGA System Components LabVIEW FPGA Applications. A. Introduction to FPGA Technology. What it is A silicon chip with unconnected gates Enables user to define and re-define functionality How it works
E N D
Lesson 1Introduction to LabVIEW FPGA • Introduction to FPGA Technology • LabVIEW FPGA System Components • LabVIEW FPGA Applications
A. Introduction to FPGA Technology • What it is • A silicon chip with unconnected gates • Enables user to define and re-define functionality • How it works • Defines behavior in software • Compiles and download to the hardware • When it is used • Custom hardware or ICs, replacement for ASICs • Reconfiguration required after deployment
LabVIEW FPGA Enabled Hardware Plug-In Reconfigurable I/O (RIO) boards CompactRIO Modular Reconfigurable I/O System Compact Vision System IF-RIO B. LabVIEW FPGA System Components • LabVIEW FPGA Module • Software for developing VIs for FPGA target • VIs for host PC interaction with FPGA target
Components of a Measurement System A traditional system consists of three components • Application software on the computer (LabVIEW) • Driver software to interface to the hardware (NI-DAQmx) • The I/O hardware (M Series MIO)
LabVIEW FPGA-Based Measurement System • Application software on the computer (LabVIEW) • User-defined hardware functionality (LabVIEW FPGA) • Driver software to interface to LabVIEW on the device (NI-RIO) • Reconfigurable I/O hardware (R Series)
PXI R Series Intelligent DAQ Compact Vision System PCI R Series Intelligent DAQ LabVIEW FPGA Targets CompactRIO IF-RIO
Traditional Approach to Custom Hardware • Hardware Design • Prototype A Build/Test • Prototype B Build/Test • Software Design/Coding • Software Testing • System Testing/Certification
NI Approach to Custom Hardware • Hardware Design • Prototype A Build/Test • Prototype B Build/Test • Software Design/Coding • Software Testing • System Testing/Certification
C. LabVIEW FPGA Applications • Applications Driving Need for Custom Hardware • Intelligent DAQ • Ultra-high speed control • Specialized communication protocols • Sensor level signal processing • Off-load CPU – Coprocessing
Benefits of FPGA Logic in LabVIEW • Multi-loop analog PID loop rates exceed 100 kHz on embedded RIO FPGA hardware • Single-cycle Timed Loops execute at the rate of the selected FPGA clock • Due to parallel processing ability, adding computation does not necessarily reduce the speed of the FPGA application
Benefits of FPGA Logic with LabVIEW (continued) • True simultaneous parallel implementation of F = (A + B)C and Z = X + Y + M in separate gates on an FPGA
Intelligent DAQ Possible Intelligent applications • Built-in IP Processing Blocks • Custom Timing and Synchronization • Custom Clocks • Pulse-Width Modulation • Custom Counters • Custom Analog Triggering • Multiple Scan Rates • Custom Analog I/O
ChipSelect* Clock Data 1 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 Digital Communication Protocols • FPGA can create/read almost any communication protocol • Many protocols already created by other developers • Refer to ni.com/ipnet to find code
Demonstration: IPNet • Navigate to ni.com/ipnet. • Find a VI related to a communication protocol of choice, • download the VI, and examine how the VI works.
Decision Making in Software Crash Possible • Traditional System I/O Operating System Driver API Application Software Calculation ~25 ms Response UUT Outputs
Operating System Driver API Application Software Decision Making in Hardware Highest Reliability • LabVIEW FPGA System I/O Calculation 25 ns* Response UUT Outputs * Faster response for 80 and 120 MHz clocks
Analog Control Over 40 kHz • LabVIEW Real-Time • Single PID 40 kHz • LabVIEW FPGA • PID at over 100 kHz
Off-Loading Processing from CPU LVDT Simulation • Hardware-in-the-loop • Sensor simulation • Cam and crank • LVDTs • Encoding/decoding sensors • Tachometers • PWM • Quadrature Encoders Quadrature Encoder
Quiz • FPGAs completely replace the need for ASICS. • True • False • It is usually fastest to develop protocols by yourself and then to look online to see if you were right. • True • False
Quiz • 3. FPGA applications use which of the following for an operating system (OS). • Windows FPGA • MicroLinux • Unix • PharLap • None of the above • 4. LabVIEW FPGA allows you to program an FPGA without knowing VHDL or HDL. • True • False