FPGA LabVIEW Programming Monitoring and Remote Con
FPGA LabVIEW Programming Monitoring and Remote Con
FPGA LabVIEW Programming Monitoring and Remote Con
I. INTRODUCTION
The Digital Electronics Trainer Board is a circuit
development platform based on the Xilinx Spartan 3E
FPGA. The Digital Electronics Trainer Board Key
Components and Features are: Figure 1. NI-ELVIS II platform with the Digital Electronics FPGA
Board
• Xilinx XC3S500E Spartan-3E FPGA
• Up to 232 user I/O The Digital Electronics FPGA Board can also be used
• 320-pin FPGA package as a stand-alone board that sits on the table, it is powered
• Over 10,000 logic cells from and external 15V power adapter (min 500mA) and it
is connected to the Host PC via a USB cable.
• 4 Mbit Platform Flash configuration PROM
• 16 Mbits of SPI serial Flash (STMicro) for FPGA
configuration storage
• On-board USB-based FPGA/CPLD download/debug
interface
• 50 MHz clock oscillator
• 6 Digilent 12-pin expansion connectors (PMOD)
• 4-ch, SPI-based DAC (Digital-to-Analog Converter)
• 2-ch, SPI-based ADC (Analog-to-Digital Converter)
with programmable-gain
• pre-amplifier
• 2-digit 7-segment LED display
• Rotary-encoder with push-button shaft
• Eight discrete LEDs
• Eight slide switches
• Four push-buttons Figure 2. The Digital Electronics FPGA Board used in stand-alone
• FPGA Breadboard Area mode
34 http://www.i-joe.org
FPGA LABVIEW PROGRAMMING, MONITORING AND REMOTE CONTROL
The new NI LabVIEW FPGA Module uses LabVIEW • NI-Elvis Breadboard Area
embedded technology to target field-programmable gate • General Purpose Breadboard Area
arrays (FPGAs). With the LabVIEW FPGA Module, we
were able to program the Spartan-3E FPGA on the Digital LabVIEW FPGA contains graphical objects named
Electronics FPGA board without low-level hardware Elemental I/O that represent physical FPGA I/O
description languages or board-level design. peripherals of the Digital Electronics FPGA Board in the
application diagram (or code). An FPGA I/O object can be
II. GRAPHICAL FPGA PROGRAMMING activated for a certain application by placing it in the
project – right click on FPGA Target device:
The application setup can be:
a) Digital Electronics FPGA Board in stand-alone
mode connected to PC via USB cable, and powered
from +15VDC power adapter.
36 http://www.i-joe.org
FPGA LABVIEW PROGRAMMING, MONITORING AND REMOTE CONTROL
38 http://www.i-joe.org
FPGA LABVIEW PROGRAMMING, MONITORING AND REMOTE CONTROL
PWMmax - The maximum PWM to be used by the PID Integral Coeff Ki - Derivative gain for the PID VI.
VI. Derivative Coeff Kd - Integral gain for the PID VI.
PWMmin - The minimum PWM to be used by the PID Pulses Per Rotation - Number of pulses per rotation
VI. produced by the Quadrature Encoder on the motor
Kc - Proportional gain for the PID VI. Gear Ratio - Gear Ration of the motor
Ki - Integral gain for the PID VI. Stop - Stops the VI from running
Kd - Derivative gain for the PID VI.
Indicators
Indicators PWM - Current actual PWM from -1 to 1
Actual Dir - Actual direction that the motor is turning. Actual Speed - Current actual speed of the motor in RPM
Actual Dir = 1 means the motor is turning forward and Speed Chart - Plot of actual speed over time
Actual Dir = 0 means the motor is turning backwards. PWM Chart - Plot of actual PWM over time
Period*4*50M - Actual period of the PWM. Used to
determine speed feedback for the Velocity Loop VI.
PWM*2^15 - Actual PWM signal chosen between
SetPWM (control) and RegPWM (indicator).
Frequency*2^14 - Frequency of the PWM signal
Speed*64 - Speed of the motor in RPM
Reg PWM*2^15 - Regulated motor speed on a scale of -
32768 to 32767. 32767 represents full speed forward and
-32768 represents full speed backwards.
V. PDA MOBILE MONITORING AND CONTROL (UNDER By this Client-Server structure we can easy do Remote
DEVELOPMENT) Control of this FPGA board using any PDA or
SmartPhone.
Mobile monitoring and control of applications running
on a host PC can be done by using the LabVIEW PDA
Module.
LabVIEW PDA extends the LabVIEW development
environment to applications for PDA handheld devices
that are connected to the host PC via USB, Serial, or
Wireless (ex: Bluetooth, WiFi). We have developed a
remote application that is running on a PDA device and
communicates via TCP/IP with and Access Point that
communicates via Ethernet with the host application
running on the PC which communicated via USB with the
Digital Electronics FPGA Board which communicates via
a PMOD interface with the I/O attachment board which is (a) The LED Monitorig using one MIO PDA- DigiWolker
connected to the motor via a 6-wire power and
communication bus.
40 http://www.i-joe.org
FPGA LABVIEW PROGRAMMING, MONITORING AND REMOTE CONTROL
VI. CONCLUSIONS [5] Doru Ursutiu, Cornel Samoila, Marius Ghercioiu, Graphical
FPGA Programming and Monitoring, 4-th Int. Conf. on Interactive
This paper introduces the concept of graphical FPGA Mobile and Computer Aided Leraning, IMCL 2009, 22-24 April,
design and control using the Digital Electronics FPGA Amman – Jordan, 2009
Board developed by National Instruments for the NI-
ELVIS platform. ACKNOWLEDGMENT
The idea to combine DMM, Oscilloscope, Function We would like to thank National Instruments for the NI
Generator, etc., capabilities with the programming and Digital Electronics FPGA Board (DE FPGA) and Digilent
routing capabilities of a 1M gates FPGA is supported by Inc. for their Pmod boards offered for the DE FPGA
the need in training laboratories for Lifelong Learning board applications.
activities to cover complex applications and also give
students access to new technologies. AUTHORS
FPGA’s allow systems to be configured and Ursuţiu Doru ([email protected]) – Transilvania
reconfigured for many applications making the Digital University, Technical Engineering Faculty, Braşov,
Electronics Trainer Board a versatile tool for monitoring România
and controlling local and remote I/O devices.
Marius Ghercioiu ([email protected]) –
National Instrumensts – USA
REFERENCES
Cornel Samoila , ([email protected]) – Transilvania
[1] LabVIEW FPGA, www.ni.com
University, Technical Engineering Faculty, Braşov,
[2] Doru Ursuţiu: “Iniţiere in Lab VIEW”, Lux Libris, 2001
România
[3] Hans van t Spijker, Petru Cotfas, Doru Ursuţiu “NI ELVIS
Development of a Low-cost Potentiostat for Research Petru Cotfas ([email protected]) – Transilvania
Applications and e-Lerning”, Second Int. Simposium on Remote University, Technical Engineering Faculty, Braşov,
Engineering and Virtual Instrumentation REV2005, Brasov – România
Romania, 30 June -1 July
[4] Jinga Vlad, Oros Ramona Georgiana: License Degree Paper Manuscript received 22 March 2009. Published as submitted by the
“Laborator virtual de Telecomunicaţii”, presented in June 2008 at authors.
the Electrical Engineering and Computing Science Faculty –
Transilvania Univ. Braşov