Professional Documents
Culture Documents
Massimiliano Banfi
National Instruments - System Engineer
Graphical System Design
Modeling System
and Design Testing
Hardware-in-
Rapid
the-Loop
Prototyping
Testing
Targeting
Modeling and Design
Control
Setpoint Error
Kc Output
Kp Feedback
Controller Plant
Controller Plant
Controller Plant
Control
Error
Kc Output
Kp Feedback
Setpoint
Controller Plant
Signal
I/O Modules
Connectivity
Conditioning ADC
DC power with redundant supply inputs
50 G shock
-40 to 70 C temperature
Field Programmable Gate Array
(FPGA)
What it is
A silicon chip with unconnected logic blocks
User can define and redefine functionality
How it works
Define behavior in software
Compile and download to the hardware
When it is used
Low volume applications that cannot afford ASIC fabrication
Designs that require frequent changes or upgrades
Field Programmable Gate Array
(FPGA)
Source: Xilinx
Field Programmable Gate Array (FPGA) devices feature a reconfigurable digital circuit
architecture with a matrix of Configurable Logic Blocks (CLBs) surrounded by a
periphery of I/O Blocks. Signals can be routed within the FPGA matrix in any arbitrary
manner by Programmable Interconnect switches and wire routes.
CompactRIO MicroMo Motor Demo NI 9505
Motor Drive Module
Systems
MicroMo 3242
Brushed DC Motor
Step 1. Plant Modeling and Analysis
Speed Motor Actual
Setpoint Error Kc Voltage Kp Speed
Controller Plant
d (t ) d 2 (t )
1 Ri (t ) V (t ) K
dt
T (t ) J dt 2 3
1 K d (t )
2 i (t ) V (t ) (t ) J Ki (t ) 4
R R dt
d (t ) K K2
5 J V (t ) (t )
dt R R
(s) K
Resistance R Ohms 7.38 7.96
Inductance L H 4.64e-3 6.11e-3
Back-EMF Constant
B
Ke
N-m-s
V/rad/s
1.8e-6
Modeling in Simulink
Modeling in NI Express Workbench
Transfer Function (State Space, Zero-Pole-Gain)
Modeling in LabVIEW
Transfer Function (State Space, Zero-Pole-Gain)
Time Domain Differential Equation
Demo
Demo
Step 1. Plant Modeling and Analysis
Speed Motor Actual
Setpoint Error Kc Voltage Kp Speed
Controller Plant
QE Tach
Response
Demo
Demo
Step 2. Control Design
Speed Motor Actual
Setpoint Error Kc Voltage K Speed
Controller JRs K 2
Plant
Demo
Demo
Step 3. Simulation
Speed Motor Actual
Setpoint Error s 1 Ti Voltage K Speed
Kc
s JRs K 2
Controller Plant
Demo
Demo
Step 4. Control Prototyping
Speed Motor Actual
Setpoint Error s 1 Ti Voltage Electric Speed
Kc
s Motor
RT PXI System/cRIO
Controller Plant
Demo
Demo
Step 5. Targeting Production Controller
PRODUCTION Motor
Error s 1 Ti Voltage
Kc
EMBEDDED
s
CONTROLLER
Demo
Demo
NI LabVIEW Embedded Development Module
Deploy on any 32-bit processor LabVIEW Embedded
Development Module
Use the same LabVIEW graphical
programming to deploy to custom
devices
More than 400 built-in numerical
analysis and signal processing libraries
Third party toolchain
Interactive front panel and block Third party OS
diagram debugging
C code generator for breadth of
toolchain and target support
Step 6. Hardware-in-the-Loop
Speed Motor Actual
Setpoint Error Productio Voltage K Speed
n
JRs K 2
Controller
Controller
RT PXI System
Plant Model
NI Core!!!
LabVIEW for Design, Prototype, and Deploy
LabVIEW conditional compiling
technology provides for:
Model reuse
Test reuse
RCPTarget
EmbeddedTarget
HILTarget
Benefits of LabVIEW Graphical System Design
Simulation Configurable
Graphical Dataflow
MATRIXx System
Xmath AutoCode
Build
Math Inter. TK Simulation Interface
Toolkit (Future) Simulation Interface TK (Future)
LV Script Node
LabVIEW RT,
LabVIEW LabVIEW LabVIEW
Windows
The
MathWorks MATLAB Simulink RTW
References: MicroNova Simulator
Eth
e rne
t
Windows PC
(e.g. user interface) En
gin
e sig
na
ls
PXI RT HIL
Simulator
Signal conditioning
Realtime
computer
CAN-card
Analog Output
Application
Prototype integrated avionics unit in XSS-11
Create hardware-in-the-loop/HIL simulator to
test LIDAR (light detection and ranging
system) controller
Key points
LabVIEW and NI hardware provide future
flexibility
NI helped create an interface to a third-party
synchronous serial interface using NI-VISA
Siemens Power
HIL (Hardware-in-the-Loop) Simulation
Host and Server
Monitor
PXI RT System
I/O Signals
I/O
Breadth: plug-in and distributed
Price and Value
Openness
Software (e.g. DLL, SIT, ActiveX/COM, .NET, IVI, OPC, LabVIEW Tools Network)
Hardware (e.g. CompactRIO Modules, PXI based on CompactPCI, PCIExpress)
Virtual Instrumentation means to be able to do full systems in some cases and
integrate with others in other cases (e.g. when other products are already in use)
Visit the web site: www.ni.com\design
Discuss products and configure your application
Obtain estimated costs or a quote to take with you
Request a free consultation an NI engineer will
come to your office to:
Discuss your application and specialized topics
Demonstrate customized applications, examples,
and products
Schedule an onsite seminar at your location