Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Massimiliano Banfi
Systems Engineer Manager
National Instruments Italy
NI CompactRIO Embedded Architecture
Real-Time Processor Reconfigurable FPGA
Extreme Ruggedness
• -40 to 70 ?C temperature range
• 50 g shock, 5 g vibration
4
New LabVIEW 8.6 Programming Model for
CompactRIO
NI CompactRIO
LabVIEW Real-Time FPGA
I/O Modules
I/O Modules
Table
Cartridge
Module 2
Controller 2
Cartridge Manager and
Timing
Cartridge
Module 3
Controller 3
…
…
Cartridge
Module n
Controller n
Specialty Digital 1
Specialty Digital 2
I/O Data Transfer to NI Scan Engine
8
Synchronizing to the NI Scan Engine
9
I/O Variable Access
Physical I/O
Physical I/O
10
I/O Forcing
• Override input/output values at edit and run time
• No code changes required
• Force I/O with system manager or I/O forcing VIs
Physical I/O
11
I/O Alias
• References an I/O variable
• Adds additional custom scaling
• Maintains code portability
12
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
13
NI Scan Engine
• Configured from CompactRIO controller properties
Get fault list Set fault Clear fault Clear all faults
15
New LabVIEW 1131 Function Blocks
Accumulate and Collect Timing Edge Detection
Accumulate Count Down Edge Detect
16
LabVIEW Function Blocks
17
CPU Usage Benchmark
Use LV FPGA for
100 these applications
90
80
70
1000 Hz
CPU % Usage
60
28.4% CPU
50
80 PID Channels
500 Hz
40
30
20
10
100 Hz
0
1 2 4 8 16 32 64 80
Number of Channels: AI + PID + AO
Combining CompactRIO Scan Mode
with LabVIEW FPGA Mode
• Add FPGA to project
• Drag modules to FPGA
• Requires compiler
• CompactRIO Scan
Mode modules
• LabVIEW FPGA Mode
modules
• No synchronization yet
Cartridge
Module 2
Controller 2
Cartridge Manager and
Timing
Cartridge
Module 3
Controller 3
Specialty Digital 1
…
Specialty Digital 2
FPGA Host
Interface
LabVIEW FPGA VI
Module n
Module n
Using LabVIEW FPGA with RIO Scan
Interface Notes
1. RIO Scan Interface uses 2 DMA channels (1 left)
2. FPGA code and CompactRIO Scan Mode code
are not synchronized
3. Less space left on the FPGA
4. Compile times are longer
DEMO
• Using LabVIEW FPGA and
CompactRIO Scan Mode
Questions?