Sei sulla pagina 1di 24

LabVIEW Real-Time 2009: matematica testuale in

tempo reale, sincronizzazione e comunicazione

Clara Carangio
Application Engineers Manager

National Instruments Italia


LabVIEW MathScript
Elaborazione di segnale, analisi e
matematica testuale in LabVIEW
– Utilizza 800 funzioni built-in
– Crea nuove funzioni user-defined
– Riutilizza i tuoi files .m

Una soluzione LabVIEW


– Interfaccia interattiva e • Basic Operations

programmabile
• Polynomial Operations
• Trigonometric
• Linear Algebra
• 2D and 3D Plotting /

– Consente una programmazione


• Matrix Operations
Visualization
• Boolean and Bit
• Probability and Statistics
Operations

ibrida
• Digital Signal Processing
• Data Acquisition /
(DSP)
Generation
• Optimization
• Vector Operations
• Approximation (Curve

– Non richiede software terze parti


• Other
Fitting / Interpolation)
• Advanced Functions
• Ordinary Differential
• Equations
MathScript Window Interattiva
Integrata in LabVIEW
– Accesso diretto dal menu di
LabVIEW
(Tools» MathScript Window…)

Command Line interface


– Inserisci i comandi o uno script
– Apri/Esegui i tuoi files .m
– Verifica i risultati
– Visualizza
• Output testuale
• Storico dei comandi
• Variabili
• Plots
MathScript Node
• Combina matematica testuale con sviluppo grafico
• Implementa equazioni e algoritmi tramite testo
• Definisce variabili di input e output sui bordi della struttura
• Esegue il Debug tramite single step, breakpoints e syntax
highlighting
MathScript
Node
Lavorare con LabVIEW MathScript
• Sviluppa i tuoi script in maniera interattiva con la MathScript
Window
• Instrument your Algorithms grazie al deploy dei MathScript Node
• Muoviti tra VI e Script se necessario per testare e completare il tuo
lavoro
• Window e Node condividono lo spazio delle variabili
MathScript
Node
MathScript
Window
DEMO

INSTRUMENT YOUR
ALGORITHMS
DEMO

INTERACTIVE FILTER
DESIGN
Modulo LabVIEW MathScript RT

Esegui il deploy dei tuoi file.m su Piattaforme NI Real-Time


Perchè Questa Funzionalità è
Importante?
Deployment con Tools
Tradizionali
1 2 3 4

Develop Prepare for Generate Compile for Debug App on


.m File Dual-Core C Code RT Target Real-Time

The MATLAB® Parallel Computing Embedded RT Compiler, Linker, Debugger +


Environment ToolboxTM MATLABTM RT Processor and Other Hardware

$1950 $1000 $7500 ~$5000


The MathWorks Inc. Third Party
Tool Chain Embedded Tools

MATLAB® is a registered trademark, and Parallel Computing Toolbox and Embedded MATLAB are trademarks of The MathWorks, Inc.
All other trademarks are the property of their respective owners.
Deployment con LabVIEW 2009
1

Graphical Prepare for Generate C Compile for Debug App on


& Textual Dual-Core Code RT Target Real-Time
Programming

LabVIEW &
MathScript RT Inherent LabVIEW LabVIEW Real-Time Module
Module Multithreading Compiler

$3098 $0 $0 $2599
Prezzo in $ o €?
LabVIEW 2009
LabVIEW 2009 MathScript RT
Module

Custom
.m File

Desktop CompactRIO PXI Single-Board RIO Compact Vision


System
DEMO

NOVITÀ NEL MODULO


2009 MATHSCRIPT RT
•Windows Vista
•LabVIEW 2009
•LabVIEW Real-Time Module
•LabVIEW MathScript RT Module
Deploy dei tuoi .m Files
su Hardware Embedded
DEMO NI PXI-4472
±10 V input range
8 SSAI up to 102.4 kS/s
Cosa vuol dire Real-Time?
• Real-time non significa necessariamente veloce
• Real-time significa affidabilità
• I sistemi Real-time hanno vincoli temporali che
devono essere rispettati
• Determinismo è la capacità di completare un task
entro un tempo prefissato
• LabVIEW Real-Time può essere definito
“hard” real-time
Confronto fra Sistemi Operativi per Tasks Critici
Tools di Sviluppo Real-Time
Compiler
Linker
Development LabVIEW Real-Time
Software
Debugger

System Analysis Tools


Execution Trace Tool
RTOS
Real-Time
Microprocessor LabVIEW Real-Time
Hardware
Target
I/O Connectivity
Cosa è incluso nel
LabVIEW MathScript RT Module?
• Compilatore MathScript
– Desktop
– Real-Time
• Interfacce
– Interactive Window
• Desktop
– MathScript Node
• Desktop
• Real-Time
LabVIEW MathScript è Deterministico?
• Sì e No
– Gli sviluppatori possono scrivere codice MathScript
Deterministico
– Ma non possiamo garantirlo

• Alcuni costrutti built-in possono introdurre Jitter


– Le performance e la gestione della memoria sono
comparabili al codice G
– Jitter influisce sul determinismo
MathScript RT Module Roadmap
•Deterministic core language* •Support in RT Execution Trace Toolkit
Real-Time

•Deterministic functions* •Additional RT deployable functions


•Guidelines for determinism (ODE, …)
•Determinism warnings
•Breakpoints and probes

•Improved compiler load time •Window performance equivalent to •DFIR-based compilation (including
•Linguaggio Deterministico*
Performance

Node debugging)
•Remove error handling in generated •Execute multiple nodes in parallel
code
•Funzioni Deterministiche* •Compiler refinements (always
statically compile when possible)

•Guidelines per il Determinismo


•Warnings sul Determinismo
•Structs •N-d arrays, cell arrays
Compatibility

•Breakpoints e Probes
• Miglioramento deitempi di load del
Compilatore
•Bug fixes •Editing improvements in Window
Other

and Node

Q1 2010 NI Week 2010 NI Week 2011 Beyond…


LabVIEW MathScript RT Part Numbers
• LabVIEW MathScript RT Module Single Seat
– Windows - 781106-09: $499
– Mac / Linux - 781106-0321: $0

• LabVIEW MathScript RT Module VLA


– Windows - 781106-35: $499
– Mac / Linux - 781106-3521: $0

• LabVIEW MathScript RT Module Developer Suite Option


– Windows: $299
Per I clienti che già usano MathScript?
• Utenti LabVIEW in possesso di SSP
– Migrazione gratuita verso LabVIEW MathScript RT
Module
– Include 1 year SSP
– ~$150 per il rinnovo annuale
Domande?

STAND NI

Potrebbero piacerti anche