Professional Documents
Culture Documents
A32 - Concevez Des Systemes Reels, Rapidement, Avec NI LabVIEW Et NI myRIO
A32 - Concevez Des Systemes Reels, Rapidement, Avec NI LabVIEW Et NI myRIO
ni.com
NI myRIO
Design Real Systems, Fast
ni.com
1
27/03/2014
Agenda
• Overview of NI myRIO
• Introduction to LabVIEW
• Connecting NI myRIO
ni.com 3
Overview of NI myRIO
ni.com
ni.com/students/learn-rio
2
27/03/2014
Controls Mechatronics
Final
Year
Design
Embedded
Robotics
Systems
ni.com 5
NI myRIO
Enclosed
Feature Rich
Protective Casing
Ecosystem
Board-Only
Optimized for Cost
• No Wi-Fi
• No myDAQ connector
ni.com 6
3
27/03/2014
ni.com 7
What is Zynq?
I/O
PCI Bus
AXI
Processor FPGA I/O
Specialty I/O
Traditional Implementation
ni.com 8
4
27/03/2014
ni.com 10
5
27/03/2014
Leading Industry
Grade Technology
ni.com 11
ni.com 12
6
27/03/2014
Back View
Built-in Accelerometer
Mounting Holes
Getting Started
ni.com 13
Top View
Connection to PC
ni.com 14
7
27/03/2014
Identical Connectors
4 AI MXP A MXP B
6 DIO 2 AO 1 UART
1 SPI
1 Quad Encoder
1 I2C
3 PWMs
ni.com 15
ni.com 16
8
27/03/2014
Introduction to NILabVIEW
ni.com
ni.com/students/learn-rio
ni.com 18
9
27/03/2014
Data Flow
ni.com 19
ni.com 20
10
27/03/2014
ni.com 21
Create a Project
• Click the Create Project
button
• Select Blank Project.
• Click Finish.
ni.com 22
11
27/03/2014
Group Activity
• Create and save a LabVIEW project.
Group Activity
ni.com 23
Project Explorer
• Find, access, and organize
project files
ni.com 24
12
27/03/2014
Parts of a VI
VIs have three main components:
ni.com 25
ni.com 26
13
27/03/2014
This is where
“programming” is
done in LabVIEW.
ni.com 27
ni.com 28
14
27/03/2014
Group Activity
ni.com 29
ni.com
15
27/03/2014
Group Activity
• Plug in and power the NI myRIO.
• Power the NI myRIO with the AC to DC adaptor included in the
device’s packaging or a similarly rated power source.
Group Activity
ni.com 31
ni.com
ni.com/students/learn-rio
16
27/03/2014
What is Real-Time?
• Real-time does not always mean real fast
• Real-time means absolute reliability
• Hard Real-time systems have timing constraints
that must be met to avoid failure
• Determinism is the timing reliability of the
system
ni.com 33
ni.com 34
17
27/03/2014
ni.com 35
2.8
Mean = 2.03 ms
2.1 2.1
2 Jitter
1.9
Execution 1.3
Time (ms)
Iterations
ni.com 36
18
27/03/2014
…n
Iterations
ni.com 37
ni.com 38
ni.com/students/learn-rio
19
27/03/2014
Group Activity
ni.com 39
ni.com 40
20
27/03/2014
More I/O
channels can be
accessed by
selecting Add Relevant
Channel. configuration
options are
shown in this
LabVIEW space.
generates G-code
with View Code.
ni.com 41
ni.com 42
21
27/03/2014
Group Activity
ni.com 43
ni.com
22
27/03/2014
FPGA Technology
Programmable
Interconnects
Logic
Blocks
I/O Blocks
ni.com 45
E F
Implementing
Logic on FPGA: A
B
F = {(A+B)CD} ⊕ E C
D
ni.com 46
23
27/03/2014
A
B
C
D
ni.com 47
A
B
C
D
Z
W X Y
ni.com 48
24
27/03/2014
25
27/03/2014
Xilinx ISE
Compiler
Xilinx
FPGA
LabVIEW VI VHDL Bitfile Chip
LabVIEW LabVIEW
FPGA FPGA
ni.com 51
Real-Time Reconfigurable
User Interface Processor FPGA
26
27/03/2014
Group Activity
ni.com 53
ni.com/students/learn-rio
Instructor Demo
Customizing the FPGA
ni.com 54
27
27/03/2014
ni.com 55
ni.com
ni.com/students/learn-rio
28
27/03/2014
NI myRIO | Courseware
ni.com 58
29
27/03/2014
•Processor Programming
•Eclipse IDE
•C/C++ Support
•Free
•One Installer from ni.com
ni.com 59
ni.com/learn-myrio
ni.com 60
30
27/03/2014
ni.com/community/myrio
ni.com 61
ni.com
31