Lesson 1 - Introduction to Compact Rio
-
Upload
sergiu-sergio -
Category
Documents
-
view
217 -
download
0
Transcript of Lesson 1 - Introduction to Compact Rio
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
1/43
CompactRIO and LabVIEWTM
Development Fundamentals
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
2/43
2
Course Learning Map
Introduction
Configuration
Application
Architecture
FPGA
Real-Time
Controller
Windows
PC Host
Data Transfer& Synchronization
FPGA Wizard
CompactRIO
Fundamentals
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
3/43
3
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
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
4/43
TOPICS
Lesson 1 Overview
A. CompactRIOB. Applications
C. Application Architecture
D. Components
E. Expansion System
F. R Series Expansion SystemG. Star-Fabric High-Speed PCI
Interface System
H. Accessories
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
5/43
5
A. CompactRIO
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
6/43
6
A. CompactRIOProgrammable 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
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
7/43
7
B. ApplicationsMachine Control
Packaging/ProcessingHigh-speed motion control, batch control, discrete control
Heavy Machinery Control
Real-time signal processing and control of powerelectronics, hydraulic systems
Semiconductor/Biomedical
Custom motion and vision inspection, material handling
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
8/43
8
B. ApplicationsMachine 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 AcquisitionCentral controller with distributed I/O nodes over
Ethernet/wireless
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
9/43
9
B. ApplicationsAutomotive & Aerospace
In-Vehicle Data Acquisition
Automobiles, motorcycles, recreational vehicles,
research aircraft, trains
Engine and ECU test cellsHIL testing of engines and engine controllers, sensor
simulation using FPGA
Rapid Control PrototypingAutomotive/aerospace control prototyping
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
10/43
10
C. Application Architecture
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
11/43
11
C. Application ArchitectureAlternate Architectures:
Stand-alone FPGA VI
Stand-alone FPGA VI and RT controller VI
FPGA VI and Windows host VI
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
12/43
12
C. Application ArchitectureWindows PC Functions:
Logging data
Accessing databases
Integrating with enterprise systems
Providing a human-machine (User) interface (HMI) anddisplay
Supporting supervisory control
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
13/43
13
C. Application ArchitectureReal-Time Controller Functions:
FPGA interaction
Configuring
Communicating data
Controlling
Processing data
Process and machine control
Logging data
Communications with remote PC host
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
14/43
14
C. Application ArchitectureFPGA Functions:
I/O, Hardware-based timing and triggering
PCI bus communications
Low-level signal processing
Control
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
15/43
15
D. ComponentsFPGA
1 M or 3 M Gate
PCI Bus
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
16/43
16
D. Components
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
17/43
17
D. Components
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
18/43
18
D. Components9012 / 9014 RT Controller Memory
NI 9014
NI 9012
128 MB2 GB
64 MB128 MB
DRAMNonvolatile
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
19/43
19
D. Components
Signal
Conditioning
Sensors
& Actuators
Signal
Conditioning
Signal
Conditioning
Signal
Conditioning
Reconfigurable
FPGA
Screw
Terminals
BNC
DSUB
Custom
Attenuation
& Filters
Connector
Block
DI
ADC
Digitizers
& Isolation
DAC
DO
PCIBus
High Speed
Bus
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
20/43
20
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
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
21/43
21
E. Expansion System
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
22/43
22
F. Star Fabric High-Speed PCI Interface
System
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
23/43
23
G. Accessories
Industrial enclosures
Flat-panel
touch-screenindustrial computers
Power supplies
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
24/43
G
OAL
24
Exercise 1-1: Analyze Project Specifications
Concept Exercise
Study the project specifications.
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
25/43
G
OAL
25
Exercise 1-2: Selecting CompactRIO
Components
Concept Exercise
Specify the components for a CompactRIO system.
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
26/43
G
OAL
26
Exercise 1-3: CompactRIO Specifications
Concept Exercise
Describe and check the specifications of a CompactRIO
system.
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
27/43
27
H. OperationPower-on Self Test
Power-on Self Test (POST)
1. Power LED ON
2. Status LED ON3. User1 LED ON
POST Complete
1. Power LED ON
2. Status LED OFF3. User1 LED OFF
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
28/43
28
H. OperationReset Options
Do not autoload on reset Autoload on power-on reset
Autoload on any device reset
FPGA application toggles the system reset
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
29/43
29
H. Operation
DIP Switches
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
30/43
30
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 updatingconfiguration 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 andreformatting the drive.
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
31/43
31
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 normaloperation.
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
32/43
32
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.
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
33/43
33
H. Operation
Restore Defaults
If the controller is not able to communicate with the network
Changes the IP address, subnet mask, DNS address, andgateway 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 StatusLED flashes once, indicating that the controller IP address is
unconfigured. Move the IP Reset switch to the OFF position.
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
34/43
34
H. Operation
No App Switch
ON prevents a LabVIEW startup application fromrunning 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 whenthe controller powers on.
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
35/43
35
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.
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
36/43
36
H. Operation
9012 Controller LEDs
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
37/43
37
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.
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
38/43
38
H. OperationStatus 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 outof memory. Review your RT VI.
Continuous flashing Unrecoverable error. Contact NI.
Continuously lit The flash memory card is corrupt. Reformat thehard drive on the controller. Refer to MAX Help.
.
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
39/43
G
OAL
39
Exercise 1-4: CompactRIO Installation and
Operating Manuals
Concept Exercise
Study information in the manuals to learn the operation of
the CompactRIO chassis, controller, and I/O modules.
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
40/43
40
SummaryQuiz
1. Which of the following are basic components of a CompactRIO
system? (choose all correct answers)
a. Four slot chassis
b. Controller
c. I/O Modules
d. PXIe. CompactDAQ
e. Eight-slot chassis
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
41/43
41
SummaryQuiz
2. Which OS does the FPGA use?
a. Windows
b. Real-time OS
c. No OS
d. Mac OS
e. Unixf. Linux
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
42/43
42
SummaryQuiz
3. What are the possible CompactRIO run-time configurations?
a. Stand-alone FPGA
b. FPGA and RT Controller
c. FPGA and Windows PC
d. FPGA, RT Controller, and Windows PC
-
8/3/2019 Lesson 1 - Introduction to Compact Rio
43/43
43
SummaryQuiz
4. Which tasks match bestwith (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
controld. Processing data
e. Control
f. I/O, hardware-based timing and triggering