LabVIEW and VirtualInstrumentation
in the Design Flow
Design Flow Cycle: Overlap of Design& Test
Modeling
Prototyping
CodeGeneration
Design Test
Calibration &Functional Test
Specification
Unit Test (Hardware-in-
The-Loop)
V Diagram – Specification
•Specify requirements of the system
Unit External Environment
V Diagram – Modeling andPrototyping• Create a model and prototype of the unit
• Tools:
– Simulation software
– Real-time system with I/O
Prototype of Unit External Environment
Simulation Interface Toolkit
• Use LabVIEW and Simulink® together forPrototyping and Hardware-in-the-LoopTesting
• Two components:1.Model interface
– Run Simulink® model in LabVIEW
2.User interface– LabVIEW-based user interface (sinks and sources)
in Simulink®
Simulation Interface ToolkitCreate Model in Simulink®
LabVIEW-based sink in Simulink®
Run Model in LabVIEW
Control Toolset
• PID Control Toolkit
• Fuzzy Logic Toolkit
• Advanced Control Tools
– Continuous linear (e.g. transfer function, integral, derivative)
– Discrete linear (e.g. discrete transfer function, unit delay)
– Nonlinear (e.g. 2D look-up table, backlash, saturation)
• Ships with the LabVIEW Real-Time Module
• Available for LabVIEW for Windows
• Model the simulated suspension system:
• Differential equation:
• Transfer function:
Vehicle Suspension Example
)()(
)()()(
2
2
tkudttdu
btkxdttdx
bdt
txdm +=++
kbsms
kbs
sU
sXsH
+++==
2)(
)()(
Vehicle Suspension Model inLabVIEW
Real-Time with I/O: LabVIEW Real-Time
•LabVIEW Graphicalenvironment
•Deterministicperformance (based ona real-time kernel)
•Built-in tools for controlsystems
What is MATRIXx?
Xmath
SystemBuild
DocumentIt
RealSim
AutoCode
Other
Softwareimplementation
Documentation
Hardware integrationand test
Analysisand design
Modelingand simulation
fftfreqpolynomial
x=Ax+Buy=Cx+Du
•
InterLeaf
Framemaker
HTML
MicrosoftWord
Processor 3
Processor 2
Task 1
Task 2
Task 3
Rea
l-ti
me
sch
edu
ler
I/O d
rive
rs
Hardware Systems
M
oore’s Law
Real-Time PXI PerformanceP
erfo
rman
ce
1999
PXI-8176 RT40 kHz cycle times
2000 2001 2002 2003 2004 2005
Leveraging CommercialTechnology in Real-Time
System
Need for Measurements in theDesign Flow
• Compare theoretical models with real-world data
• Detect design flaws earlier in the processwith measurements
PXI Real-Time Components• I/O connectivity
– Data Acquisition– Signal Conditioning– Dynamic Signal Acquisition– Motion Control– Image Acquisition
• Communication protocols– Ethernet– Serial– CAN– GPIB
• 3rd party connectivity with NI-VISA– Reflective Memory, MIL-STD-1553, Telemetry/IRIG B
• Chassis expansion through MXI-3
NetworkModule
FieldPoint Real-Time ComponentsIndustrial
I/O Modules
LabVIEW FPGA and PXI-7831R ReconfigurableI/O Board
8 A/D
8 D/A16 DIO
40 DIO
40 DIO
MITE
PXI / PCI Bus
68-pin VHDCI cable
68-pin VHDCI cable
68-pin VHDCI cable
FPGA(Xilinx
Virtex-II)
• 8 independent 16-bit Analog Inputs (A/Ds), 200 kS/s (5 µsec conversion)• 8 independent 16-bit Analog Outputs (D/As), 500 kS/s (2 µsec conversion)• 96 DIO Lines• 1M gate FPGA
Connectivity options
LabVIEW FPGA is ideal for:
• Parallel Tasks for Acquisition and Analysis– Parallelism is inherent in LabVIEW block diagram
approach
– Parallel tasks are clocked through the FPGAsimultaneously:
• Flexible I/O– Logic to modify DIO lines to counters, encoders, PWM
• Resource synchronization and timing– Precise timing of onboard resources including Analog I/O,
Digital I/O
Note: There is no operating system
V Diagram – Code Generation•Generate code for target processor fromvalidated control algorithms. Coding may bedone by hand or by using automatic codegeneration tools.
•Tools–Code generation
–I/O to verify code
Code Generation
LabVIEW Integration with TI DSP/CodeComposer Studio®
• Solves complexity of developing tests for DSPsystems�Complexity has delayed validation until after product
prototypes
• Now create tests during design modeling�Access DSP memory with TI’s RTDX interface
�Example:� Generate data set in LabVIEW and send it to the DSP memory
� Execute a test including real world I/O
� Read the DSP memory to LabVIEW and analyze it
Integrated Development and TestSoftware
CodeComposer
Studio®
DSP
Real-world stimuli
Real-world measurements
Download, debug
LabVIEW
RTDX
Calibration
LabVIEW Inside…
…TektronixOscilloscopes
V Diagram – Unit Test (Hardware-in-the-Loop)•Validate unit with a simulated environment
•Tools–Real-time system with I/O
–Simulation Software
Simulated EnvironmentActual Unit
V Diagram – Calibration &Functional Test• Test the integrated system• Tools
LabVIEW, CVI/Measurement Studio, TestStand, DIAdem,DAQ, FieldPoint, Signal Conditioning, Instruments, IMAQ,MotionPXI, PCI, PCMCIA, GPIB, Serial, CAN
Actual Unit External Environment
Application Examples• Automotive
– Powertrain control– Hybrid electric vehicles
• Aerospace, Defense– Flight control systems– Vehicle simulators– Gun turret control
• Biomedical– Muscle stimulators
• Electronics– Printer paper feeders
Other LabVIEW Initiatives• Increase functionality and work with companies indesign areas
LabVIEWEDA Embedded
Design
ControlDesign
Math
MCAD
Virtual Instrumentation and OpenSystems•NI has been part of expanding open systems
– GPIB, VXI, and PXI
– Now with the Design Flow
Combining our developments with others
Tutte le presentazioni NIDays suni.com/italy
Inserirel’Infocode:
itnid03presper scaricare lepresentazioni!
Il servizio saràdisponibile dametà marzo.