Escolar Documentos
Profissional Documentos
Cultura Documentos
Introduction
FPGA
Configuration
Real-Time Controller
FPGA Wizard
Course Goals
This course prepares you to: Develop CompactRIO applications Configure the CompactRIO Develop and compile FPGA VIs Develop and download real-time controller VIs Communicate between PC, RT controller, and FPGA Synchronize applications
Lesson 1 Overview
TOPICS
A. B. C. D. E. CompactRIO Applications Application Architecture Components Expansion System F. R Series Expansion System G. Star-Fabric High-Speed PCI Interface System H. Accessories
A. CompactRIO
A. CompactRIO
Programmable Automation Controller (PAC) Analog and digital I/O Floating-point processing Seamless connectivity EmbeddedA component in a larger system. HeadlessOperates without a user interface and when the host computer is unavailable Rugged50 g shock, 40 to 70 C
B. Applications
Machine Control Packaging/Processing
High-speed motion control, batch control, discrete control
Semiconductor/Biomedical
Custom motion and vision inspection, material handling
B. Applications
Machine Monitoring Machine Condition Monitoring Bearing order analysis, lubrication monitoring, cooling, combustion, and so on Mobile/portable DSA, NVH Noise, vibration, harshness, dynamic signal analysis, acoustics Distributed Acquisition Central controller with distributed I/O nodes over Ethernet/wireless
8
B. Applications
Automotive & Aerospace In-Vehicle Data Acquisition Automobiles, motorcycles, recreational vehicles, research aircraft, trains Engine and ECU test cells HIL testing of engines and engine controllers, sensor simulation using FPGA Rapid Control Prototyping Automotive/aerospace control prototyping
C. Application Architecture
10
C. Application Architecture
Alternate Architectures: Stand-alone FPGA VI Stand-alone FPGA VI and RT controller VI FPGA VI and Windows host VI
11
C. Application Architecture
Windows PC Functions: Logging data Accessing databases Integrating with enterprise systems Providing a human-machine (User) interface (HMI) and display Supporting supervisory control
12
C. Application Architecture
Real-Time Controller Functions: FPGA interaction
Configuring Communicating data Controlling
Processing data Process and machine control Logging data Communications with remote PC host
13
C. Application Architecture
FPGA Functions: I/O, Hardware-based timing and triggering PCI bus communications Low-level signal processing Control
14
D. Components
FPGA 1 M or 3 M Gate
PCI Bus
15
D. Components
16
D. Components
17
D. Components
9012 / 9014 RT Controller Memory Nonvolatile NI 9012 NI 9014 128 MB 2 GB DRAM 64 MB 128 MB
18
D. Components
Screw Terminals Signal Conditioning Signal Conditioning Signal Conditioning ADC
DSUB
DI
Custom
DO
Reconfigurable FPGA
PCI Bus
19
BNC
DAC
D. Components
Each channel is filtered, and then sampled by a 24-bit analog-to-digital converter (ADC) Direct connection to Industrial sensors and actuators
Refer to ni.com for a current list of available modules from NI and third-party vendors
20
E. Expansion System
21
22
G. Accessories
23
GOAL
24
GOAL
25
GOAL
26
H. Operation
Power-on Self Test
Power-on Self Test (POST) 1. Power LED ON 2. Status LED ON 3. User1 LED ON POST Complete 1. Power LED ON 2. Status LED OFF 3. User1 LED OFF
27
H. Operation
Reset Options Do not autoload on reset Autoload on power-on reset Autoload on any device reset FPGA application toggles the system reset
28
H. Operation
DIP Switches
29
H. Operation
Safe Mode Switch Determines whether the embedded LabVIEW Real-Time engine launches when the controller boots. Normal operation is the OFF position. If ON only the essential services required for updating configuration and installing software are loaded. Use ON if the software on the controller is corrupted. Automatic boot safe mode if there is no software on the controller ON required to reformat the drive Refer to MAX Help for more about installing software and reformatting the drive.
30
H. Operation
Console Out Switch Read the IP address and BIOS version of the controller with a serial-port terminal program. Serial-port Configuration:
9,600 bits per second Eight data bits No parity One stop bit No flow control
Keep the Console Out switch in the OFF position during normal operation.
31
H. Operation
IP Reset Switch ON position and reboot resets the IP address to 0.0.0.0. If on your local subnet and the IP Reset switch is ON, the controller appears in MAX with IP address 0.0.0.0. Configure a new IP address for the controller in MAX. ON unlocks a controller that was locked in MAX. Keep the IP Reset switch in the OFF position during normal operation.
32
H. Operation
Restore Defaults If the controller is not able to communicate with the network Changes the IP address, subnet mask, DNS address, and gateway to 0.0.0.0 Does not affect power-on defaults, watchdog settings, or VIs To restore defaults:
Move the IP Reset DIP switch to the ON position. Push the Reset button to cycle power to the controller. The Status LED flashes once, indicating that the controller IP address is unconfigured. Move the IP Reset switch to the OFF position.
33
H. Operation
No App Switch ON prevents a LabVIEW startup application from running when the controller powers on. To permanently disable the application from running at power up, disable it in LabVIEW. To run an application when the controller powers on, push the No App switch to the OFF position, and configure the application in LabVIEW to launch when the controller powers on.
34
H. Operation
User1 Switch Users define the behavior of the User1 switch with the RT Read Switch VI in a LabVIEW Real-Time embedded application.
35
H. Operation
9012 Controller LEDs
36
H. Operation
Power LED Lit indicates the power supply is adequate, and the controller is supplying power to the CompactRIO system. FPGA LED Programmable for application debugging or status. Refer to LabVIEW Help for information about programming. User1 LED Programmatically definable to meet the needs of your application in the RT VI.
37
H. Operation
Status LED Off during normal operation. Indicates errors by flashing certain patterns:
Slow, continuous flashing. The controller is unconfigured. Use MAX to configure. 2 flashes Software error. Reinstall software. Use MAX Help. 3 flashes Safe Mode DIP switch is in the ON position. 4 flashes The controller software has crashed twice without rebooting or cycling power between crashes. Controller may be out of memory. Review your RT VI. Continuous flashing Unrecoverable error. Contact NI. Continuously lit The flash memory card is corrupt. Reformat the hard drive on the controller. Refer to MAX Help.
.
38
Concept Exercise Study information in the manuals to learn the operation of the CompactRIO chassis, controller, and I/O modules.
GOAL
39
SummaryQuiz
1. Which of the following are basic components of a CompactRIO system? (choose all correct answers)
a. b. c. d. e. e. Four slot chassis Controller I/O Modules PXI CompactDAQ Eight-slot chassis
40
SummaryQuiz
2. Which OS does the FPGA use?
a. b. c. d. e. f. Windows Real-time OS No OS Mac OS Unix Linux
41
SummaryQuiz
3. What are the possible CompactRIO run-time configurations?
a. b. c. d. Stand-alone FPGA FPGA and RT Controller FPGA and Windows PC FPGA, RT Controller, and Windows PC
42
SummaryQuiz
4. Which tasks match best with (1) the Windows PC, (2) the CompactRIO, and (3) the FPGA?
a. Logging Data b. Accessing databases and integrating with enterprise systems c. Providing a human-machine (user) interface and supervisory control d. Processing data e. Control f. I/O, hardware-based timing and triggering
43