+ All Categories
Home > Documents > Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the...

Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the...

Date post: 09-May-2020
Category:
Upload: others
View: 27 times
Download: 0 times
Share this document with a friend
28
Transcript
Page 1: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code
Page 2: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

LabVIEW and VirtualInstrumentation

in the Design Flow

Page 3: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

Design Flow Cycle: Overlap of Design& Test

Modeling

Prototyping

CodeGeneration

Design Test

Calibration &Functional Test

Specification

Unit Test (Hardware-in-

The-Loop)

Page 4: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

V Diagram – Specification

•Specify requirements of the system

Unit External Environment

Page 5: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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

Page 6: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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®

Page 7: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

Simulation Interface ToolkitCreate Model in Simulink®

LabVIEW-based sink in Simulink®

Run Model in LabVIEW

Page 8: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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

Page 9: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

• Model the simulated suspension system:

• Differential equation:

• Transfer function:

Vehicle Suspension Example

)()(

)()()(

2

2

tkudttdu

btkxdttdx

bdt

txdm +=++

kbsms

kbs

sU

sXsH

+++==

2)(

)()(

Page 10: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

Vehicle Suspension Model inLabVIEW

Page 11: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

Real-Time with I/O: LabVIEW Real-Time

•LabVIEW Graphicalenvironment

•Deterministicperformance (based ona real-time kernel)

•Built-in tools for controlsystems

Page 12: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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

Page 13: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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

Page 14: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

Need for Measurements in theDesign Flow

• Compare theoretical models with real-world data

• Detect design flaws earlier in the processwith measurements

Page 15: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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

Page 16: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

NetworkModule

FieldPoint Real-Time ComponentsIndustrial

I/O Modules

Page 17: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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

Page 18: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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

Page 19: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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

Page 20: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping 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

Page 21: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

Integrated Development and TestSoftware

CodeComposer

Studio®

DSP

Real-world stimuli

Real-world measurements

Download, debug

LabVIEW

RTDX

Calibration

Page 22: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

LabVIEW Inside…

…TektronixOscilloscopes

Page 23: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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

Page 24: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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

Page 25: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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

Page 26: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

Other LabVIEW Initiatives• Increase functionality and work with companies indesign areas

LabVIEWEDA Embedded

Design

ControlDesign

Math

MCAD

Page 27: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

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

Page 28: Instrumentation LabVIEW and Virtual · 2003-03-19 · LabVIEW and Virtual Instrumentation in the Design Flow. Design Flow Cycle: Overlap of Design & Test Modeling Prototyping Code

Tutte le presentazioni NIDays suni.com/italy

Inserirel’Infocode:

itnid03presper scaricare lepresentazioni!

Il servizio saràdisponibile dametà marzo.


Recommended