Learn GS/s Digitizer Techniques - Classes

advertisement
Intro to CompactRIO –
Oregon State University
Matt Spiegelberg
Field Sales Engineer
Oregon / SW Washington
1
NI CompactRIO FPGA-Based PAC
Real-Time
Processor
FPGA
• Reconfigurable FPGA for high-speed and custom I/O timing, triggering, and control
• I/O modules with built-in signal conditioning for connection to sensors/actuators
• Real-time processor for reliable measurement, analysis, connectivity, and control
CompactRIO Applications
Machine Control
• Packaging/Processing
– High-speed motion control,
batch control, discrete
control
• Heavy Machinery Control
– Real-time signal processing
and control of power
electronics, hydraulic
systems
• Semiconductor/Biomed
– Custom motion and vision
inspection, material
handling
Machine Monitoring
• Machine Condition Monitoring
– Bearing order analysis,
lubrication monitoring, cooling,
combustion
• Mobile/portable DSA, NVH
– Noise, vibration, harshness;
dynamic signal analysis;
acoustics
• Distributed Acquisition
– Central controller with
distributed I/O nodes over
Ethernet/wireless
In-Vehicle Data
Acquisition
• 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
Distributed System Manager
• Monitor systems on the network
• Manage published data
• Adds test panels to CompactRIO
4
New LabVIEW 8.6 Programming Model for
CompactRIO
NI CompactRIO
LabVIEW Real-Time
NI Scan Engine
I/O Variables
I/O memory
table
FPGA Host Interface
RIO Scan
Interface
LabVIEW FPGA
VI
I/O Modules
I/O Modules
LabVIEW Real-Time
FPGA
I/O Variable Access
Physical I/O
Scan Engine
Memory Map
Physical I/O
Physical I/O
Physical I/O
6
I/O Alias
• References an I/O variable
• Adds additional custom scaling
• Maintains code portability
I/O variable
I/O Memory Map
Fixed reference
AI0
AI1
I/O alias
AI2
AI3
7
NI Scan Engine Network Publishing
•“Out-of-box” I/O without programming
•I/O variable and alias publishing
•Published by NI Scan Engine
•Configurable update rate
•Not supported on Touch Panel (yet)
•Bind to shared variables for additional
features
8
The NI Scan Engine
•Configured from cRIO controller properties
• Runs above time critical priority by default
9
CPU Usage Benchmark
Use LV FPGA for
these
applications
100
90
80
1000 Hz
CPU % Usage
70
60
50
28.4% CPU
80 PID
Channels
500 Hz
40
30
20
100 Hz
10
0
1
2
4
8
16
32
Number of Channels: AI + PID + AO
64
80
Automotive Solution1: cRIO A/C ECU Prototyping
LabVIEW RT/ FPGA
Compact RIO System
Digital Input 18CH
Thermocouple Input 8CH
Solution1 cRIO A/C ECU Prototyping
cRIO-9002
cRIO-9102
cRIO-9211
cRIO-9411
cRIO-9932
cRIO-9935
Design the A/C control model and In vehicle ECU
prototyping test system
•In addition to the ECU prototype model which controls the
air conditioner as like a real ECU does, a cRIO itself can
measure and save all temperature data and control
parameters in a moving car.
•Benefit from size, low power consumption, speedy boot up
from Ignition ON
Solution 2 In-vehicle data logging system
Analog Input
(Torque, Temperature,
Pressure)
Sampling rate: 10msec
CAN Input
Axel gap, Engine revolutions
Sampling rate: 10msec
802.11g Wireless LAN
Operator User Interface态
Display measurement data for driver
54Mbps maximum data transfer rate
Test Menu
Setting Parameter
Display measurement data
Generate the report
Display and save data transferred from vehicle
Transfer the action data for driver
Generate the report
FedEx Fire Suppression System with NI Single-Board RIO
• Embedded temperature monitoring
and control of suppression system
• Protects packages, pilots, and planes
from fires
• Rapid embedded prototyping with
CompactRIO and LabVIEW – fast
deployment with NI Single-Board RIO
“We were able to start with LabVIEW and
CompactRIO for prototyping and quickly migrate
our code to the new NI Single-Board RIO for
deployment – all in less than a year.”
Prototype
Jeremy Snow, President at Ventura Aerospace
14
Deploy
KCBioMediX
•600,000 premature infants born
in the U.S. each year
•NTrainer System based on
CompactRIO and LabVIEW
Statechart Module
– Pressure monitoring/control
•Going to NI Single-Board RIO for
high volumes
“With National Instruments LabVIEW and NI
CompactRIO, we were able to reduce our
development cost by $250,000 … from four
months to four weeks.”
Dave Stalling, Chief Technical Officer at KCBioMediX
15
FAQs
•
Problem:
I have used the specialty digital
functionality of CompactRIO Scan Mode
to configure a digital module as a
counter or quadrature encoder and need
to reset it programmatically. How can I
do this?
Solution:
The Reset Counter (Scan Interface) VI
can be used to reset specialty digital
counters, as well as the position
measurement of a quadrature encoder.
It can be located here:
...LabVIEW
8.6\examples\CompactRIO\Shared\Rese
t Counter (Scan Interface).vi
16
•Problem: I am using
CompactRIO Scan Mode and
need to programmaticlly set
the shunt calibration of a
channel. How can I do this?
Solution: Use the Set Shunt
Calibration (Scan Interface)
VI located at: ...\LabVIEW
8.6\examples\CompactRIO\
Shared\Set Shunt
Calibration (Scan Interface)
.vi
17
Download