25
1 ni.com

Customer Facing Slides for LabVIEW MathScript RT Module: Test

Embed Size (px)

Citation preview

Page 1: Customer Facing Slides for LabVIEW MathScript RT Module: Test

1 ni.com

Page 2: Customer Facing Slides for LabVIEW MathScript RT Module: Test

ni.com

Integrating .m, .mdl and Real-Time Hardware for Math, Signal

Processing, & Controls

Brett Burger

Sr. Product Manager

Embedded Systems

Page 3: Customer Facing Slides for LabVIEW MathScript RT Module: Test

3 ni.com

High-Level Design Models Data Flow C Code Textual Math Simulation Statechart

Real-Time FPGA Microprocessors Desktop

Page 4: Customer Facing Slides for LabVIEW MathScript RT Module: Test

4 ni.com

LabVIEW MathScript RT Background

• Textual node & interactive window

• Added plug-ins:

• LabVIEW Control Design & Simulation Module

• LabVIEW Digital Filter Design Toolkit

• Compatible with The MathWorks, Inc.: • MATLAB®

• Signal Processing Toolbox™

• Control System Toolbox™

• DSP System Toolbox™

• Useful for desktop or real-time applications with hardware

MATLAB® and Simulink® are registered trademarks of The MathWorks, Inc..

Page 5: Customer Facing Slides for LabVIEW MathScript RT Module: Test

5 ni.com

LabVIEW MathScript RT Module

• Text-based controls, signal processing, analysis, and math

• 900 built-in functions / user-defined functions

• Reuse many of your .m file scripts created with The MathWorks, Inc. MATLAB® software and others

• Based on original math from NI MATRIXx software

• A native LabVIEW solution • Interactive and programmatic

interfaces • Does not require 3rd-party

software • Enables hybrid programming

MATLAB® is a registered trademark of The MathWorks, Inc..

Page 6: Customer Facing Slides for LabVIEW MathScript RT Module: Test

6 ni.com

Data Types in MathScript

• Real and complex numerics & matrices

• Booleans and strings

• Structs (can come from LabVIEW clusters)

• Cell arrays

• Plot objects

• W/ LabVIEW Control Design & Simulation Module: • Transfer function model

• State space model

• Zero-pole-gain model

Page 7: Customer Facing Slides for LabVIEW MathScript RT Module: Test

7 ni.com

Additional MathScript Capabilities

• User-defined functions

• Global variables shared between interactive window and node

• Special MathScript probe for debugging node

• Warning glyphs and guidance to improve run-time performance

• Nodes can run in parallel and on multi-core computers

Page 8: Customer Facing Slides for LabVIEW MathScript RT Module: Test

ni.com

MathScript Demo

Evaluation software available.

Try it for your application.

Support &Training Available.

Page 9: Customer Facing Slides for LabVIEW MathScript RT Module: Test

9 ni.com

LabVIEW Control Design and Simulation Module

• Both signal flow and .m file development

• Single environment for: • Simulation of dynamic systems

• Real-time implementation for rapid control prototyping or hardware-in-the-loop simulation

Page 10: Customer Facing Slides for LabVIEW MathScript RT Module: Test

10 ni.com

Standard Notation Reduces Learning Curve

LabVIEW Control Design & Simulation Module

The Simulink® software environment

Simulink® is a registered trademark of The MathWorks, Inc.

Page 11: Customer Facing Slides for LabVIEW MathScript RT Module: Test

11 ni.com

Simulink® conversion

Convert plant and controller models you create in the Simulink® environment into LabVIEW Control Design & Simulation Module code

Simulink® is a registered trademark of The MathWorks, Inc.

Page 12: Customer Facing Slides for LabVIEW MathScript RT Module: Test

12 ni.com

Co-Simulation w/ Multidomain Modeling Tools

• LMS AMESim

• Dassault Systemes Dymola

• Maplesoft MapleSim

• The MathWorks, Inc. Simscape™

• ITI SimulationX

Page 13: Customer Facing Slides for LabVIEW MathScript RT Module: Test

13 ni.com

Real-Time on Multicore Processors (DEMO)

Assign timed loops to specific processor cores.

Page 14: Customer Facing Slides for LabVIEW MathScript RT Module: Test

14 ni.com

LabVIEW Control Design & Simulation Benefits

• Complete simulation and real-time implementation capability - stay in one environment from design to test to implementation

• Easily create parallel and multirate simulation or control loops, leverage multicore

• Custom user interface to change and observe parameters as simulation or control system is running

• Use VIs or programming structures inside or outside of simulation loops:

• Integrated design and simulation, batch simulation

• DAQ, RIO, Vision, or CAN for I/O

Page 15: Customer Facing Slides for LabVIEW MathScript RT Module: Test

Deploy to Hardware Through LabVIEW

MathScript RT

Module

Control Design & Simulation Module

The MathWorks Inc. software development

environment

MATLAB®

Simulink®

LabVIEW Real-Time NI VeriStand

MATLAB® and Simulink® are registered trademarks of The MathWorks, Inc.

Simulink Coder™

CompactRIO, Single-Board RIO, PXI, or desktop

Your .m code

Your .mdl code

Page 16: Customer Facing Slides for LabVIEW MathScript RT Module: Test

ni.com

Control Design & Simulation Toolkit Demo

Evaluation software available.

Try it for your application.

Support &Training Available.

Page 17: Customer Facing Slides for LabVIEW MathScript RT Module: Test

17 ni.com

ISC Ltd. w/ Houlder Ltd.

Dr. Andy Clegg, Lead Engineer & ISC Managing Director: “We used the LabVIEW MathScript RT Module to run a textual node containing our m-file code, developed with MATLAB on a desktop, for kinematics on the real-time CompactRIO controller. MathScript has significant benefits for real-time deployment on the CompactRIO controller including determinism, easy debugging, and no extra compilation steps.“

Page 18: Customer Facing Slides for LabVIEW MathScript RT Module: Test

18 ni.com

Video “TAS (Turbine Access System)”

• http://www.youtube.com/watch?v=N21en93lrqg

Page 19: Customer Facing Slides for LabVIEW MathScript RT Module: Test

19 ni.com

Multi-Modal Rover for Search and Rescue

“With both an FPGA and a PowerPC processor, the Single-Board RIO platform has the flexibility to handle a variety of programming tasks and algorithms in an efficient manner. Onboard Ethernet, combined with a Wi-Fi adapter, enables real-time wireless communication, debugging, and deployment of software”

– Nick Morozovsky, Mechanical Engineering PhD student, Switchblade project leader

Coordinated Robotics Lab

Page 20: Customer Facing Slides for LabVIEW MathScript RT Module: Test

20 ni.com

Video “UCSD Switchblade Robot”

http://www.youtube.com/watch?v=Dw0WxPlyWlI

Page 21: Customer Facing Slides for LabVIEW MathScript RT Module: Test

21 ni.com

Wind turbine HIL Testing

• Hardware-in-the-loop (HIL) simulation of wind, pitch & blade position to test turbine controller

• Multicore PXI, LabVIEW RT & FGPA

• LabVIEW Control Design & Simulation Module

Siemens Wind Power Denmark

Real-time HIL model

Page 22: Customer Facing Slides for LabVIEW MathScript RT Module: Test

22 ni.com

Industrial HIL – National Oilwell Varco

“Having a simulation of the plant allow us to test our algorithm on the PLC on different working conditions much faster and effectively” - Pål Jacob Nessjøen, development advisor

Challenge. Modeling an industrial pump (including drives, gears, and drill string) and running it on cost effective hardware

Application. Create a test system to evaluate PLC performance before installing it offshore

Products used. LabVIEW, Mathscript and the Control Design and Simulation Module

Page 23: Customer Facing Slides for LabVIEW MathScript RT Module: Test

23 ni.com

Developing a Control System to Automatically Position a Split-Hopper Vessel

Application: Build a control system that keeps a ship on a fixed position and heading

Challenge: Design an advanced control system with DGPS, wind, current, gyroscope feedback

Products: PXI, cRIO, RT, LabVIEW Control Design and Simulation Module

Key Benefit: Use a common platform to develop controller and deploy system able to integrate third party information systems.

“We used NI tools because its software allowed us to reuse

the same code from simulation to deployment and its

hardware was reliable” Miguel Taboada, SEAPLACE

Page 24: Customer Facing Slides for LabVIEW MathScript RT Module: Test

24 ni.com

Deploy to Hardware Through LabVIEW

MathScript RT

Module

Control Design & Simulation Module

The MathWorks Inc. software development

environment

MATLAB®

Simulink®

LabVIEW Real-Time NI VeriStand

MATLAB® and Simulink® are registered trademarks of The MathWorks, Inc.

Simulink Coder™

CompactRIO, Single-Board RIO, PXI, or desktop

Your .m code

Your .mdl code

Page 25: Customer Facing Slides for LabVIEW MathScript RT Module: Test

25 ni.com

Stay Connected During and After theSymposium

ni.com/nidayscommunity

facebook.com/nidays

twitter.com/#!/nidays

youtube.com/nidays