Labview Basics Course Slides

1y ago
4 Views
1 Downloads
1.23 MB
29 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Ryan Jay
Transcription

Data I/O TOPICS Plug-in DAQ devices Data Acquisition in LabVIEW Analog Input Data Logging Analog Output Counters Digital I/O Ing. ANDREA MALIZIA malizia@ing.uniroma2.it Quantuum Electronics and Plasma Physics Research Group Supervisor : Dr. Pasquale Gaudio 1 Ing. Andrea Malizia

Overview and Configuration Fundamental task of a DAQ system is to measure or generate real-world physical signals DAQ system consists of: Transducers Signal Conditioning Plug-in DAQ device Driver Software 2 Ing. Andrea Malizia

Measurement Software Framework NI-DAQ contains: Traditional NI-DAQ NI-DAQmx 3 Ing. Andrea Malizia

DAQ Hardware Configuration Measurement & Automation Explorer (MAX) 4 Ing. Andrea Malizia

Channels and Tasks Channel names Signals ai 0 ai 1 ai 2 Sine Wave 1 Sine Wave 2 Sine Wave 3 Tasks Timing and Triggering 5 Ing. Andrea Malizia

The DAQ Signal Accessory 6 Ing. Andrea Malizia

NI-DAQmx versus Traditional NI-DAQ Feature Productivity Performance Accuracy Quality Compatibility 7 Ing. Andrea Malizia NI-DAQmx Traditional NI-DAQ Test Panels DAQ Assistant with code generation no On-line diagnostics Scaling to voltage and physical units 50 kS/s with single point I/O Measurement multithreading Instant calibration Automatic selection of optimal gains Guaranteed lossless data 650 Alliance members Integration with LabVIEW Developer Exchange discussion forum Compatible with Legacy ISA Boards no Best Good Fair

Data Acquisition in LabVIEW Traditional NI-DAQ Specific VIs for performing: Analog Input Analog Output Digital I/O Counter operations 8 Ing. Andrea Malizia NI-DAQmx Next generation driver: VIs for performing a task One set of VIs for all measurement types

NI-DAQmx Data Acquisition Single set of VIs used to perform analog I/O, digital I/O, and counter operations DAQ Assistant Express VI Quickly and easily program the DAQ device Creates a local task Most applications can use the DAQ Assistant Express VI 9 Ing. Andrea Malizia

NI-DAQmx Data Acquisition Task Types Measurement type can be: Analog Input Analog Output Counter Input Counter Output Digital I/O 10 Ing. Andrea Malizia

Analog Input Analog Input task is specific to the measurement 11 Ing. Andrea Malizia

Analog Input Task Timing and Triggering Configures the number of samples and sample rate for the task Configures the start and reference triggers for the task 12 Ing. Andrea Malizia

Data Logging It is often necessary to permanently store data that is acquired from the DAQ device LabVIEW includes the ability to read and write a LabVIEW Measurement File LabVIEW Measurement File is an ASCII text file 13 Ing. Andrea Malizia

Analog Output Analog Output task is specific to the generation type 14 Ing. Andrea Malizia

Analog Output Task Timing and Triggering Configures the number of samples and sample rate for the task Configures the start and reference triggers for the task 15 Ing. Andrea Malizia

Counters A counter is a digital timing device Typical uses of a counter: Gate Output Event counting Frequency measurement Count Register Period measurement Source Position measurement Pulse generation Count register – Stores the current count of the counter Source – Input that causes the counter to increment each time it toggles Gate – Input that is used to enable or disable the function of the counter Output – Signal that generates pulses or a series of pulses 16 Ing. Andrea Malizia

Digital Input and Output Digital I/O can read from or write to a line or an entire digital port A digital port is a collection of digital lines 17 Ing. Andrea Malizia

Summary MAX is the primary configuration and testing utility that is available for the DAQ device. The DAQ Assistant is used to configure the DAQ device and perform data acquisition. Most application can use the DAQ Assistant. For applications that require advanced timing and synchronization use the VIs that come with NI-DAQmx. The DAQ Assistant can perform Analog Input, Analog Output, Digital I/O, and Counter operations. 18 Ing. Andrea Malizia

Instrument Control TOPICS Instrument Control Overview GPIB Communication and Configuration Instrument I/O Assistant Virtual Instrument Software Architecture (VISA) Instrument Drivers Serial Port Communication Waveform Transfers 19 Ing. Andrea Malizia

Instrument Control Overview Control any instrument if you know the following: – Type of connector on the instrument – Electrical properties involved – Software drivers available Instruments 20 Ing. Andrea Malizia Type of cables needed Communication protocols used Computer

GPIB Communication GPIB Interface GPIB Instruments GPIB Cable 21 Ing. Andrea Malizia

GPIB Software Architecture — Windows Diagnostics Tools: GPIB Diagnostic Tool NI-Spy Interface Board (GPIB, PXI, VXI, computer based, etc.) Driver Software (*.DLL) NI-VISA Instrument Driver VIs LabVIEW Configuration Tools: Measurement & Automation Explorer 22 Ing. Andrea Malizia

Configuring GPIB Board and Instruments Measurement & Automation Explorer (MAX) 23 Ing. Andrea Malizia

What is the Instrument I/O Assistant? Accessed through a LabVIEW Express VI Sets up device communication and data parsing step by step through a configuration interface 24 Ing. Andrea Malizia

Serial Communication Popular means of communication between computer and peripheral device Data sent one bit at a time across the cable Used for low transfer rates or long distances Only a cable is needed since most computers have at least one available serial port PC Serial Port RS-232 Cable RS-232 Instrument 25 Ing. Andrea Malizia

A case study : STARDUST Apertura Valvola Elettro-Pneumatica Accensione resistenze Accensione Compressore Apertura Pompa a Vuoto Raggiungimento Condizioni a Contorno Pressione : 100 Pa Temperatura : 25 C e/o 110 C Chiusura Valvola Elettropneumatica Misuratori di pressione Misuratore Di flusso Pompa a vuoto Chiusura Pompa a Vuoto Apertura Valvola Ingresso Aria Apertura Misuratore di Flusso Rateo di pressurizzazione : 300Pa/s Valvole Compressore Inizio Acquisizione dati INIZIO Misuratori di pressione Termocoppie Misuratore di flusso Valvole FINE Acquisizione dati Programma Labview NI 9485 NI 9264 Chiusura di: Misuratore di Flusso Valvole NI 9211 1) 2) 3) 4) 5) Pressione Interna (mV) Temperatura interna (mV) Temperatura delle pareti (mV) Valore dei trasduttori di pressione (mV) Valore del Misuratore di Flusso (V) Valori elaborati e salvati Nell’impianto è raggiunta la pressione di 1 atm 26 Frequenza di acquisizione : 50Hz NI CompactDAQ NI 9219 Ing. Andrea Malizia 1) 2) 3) 4) 5) Ingresso aria compressa Pressione Interna (Pascal) Temperatura interna (Kelvin) Temperatura delle pareti (Kelvin) Velocità del flusso d’aria (metri/secondo) Valore del Misuratore di Flusso (Litri/minuto)

A case study : STARDUST Apertura Valvola Elettro-Pneumatica Accensione resistenze Accensione Compressore Apertura Pompa a Vuoto Raggiungimento Condizioni a Contorno Pressione : 100 Pa Temperatura : 25 C e/o 110 C Chiusura Valvola Elettropneumatica Misuratori di pressione Misuratore Di flusso Pompa a vuoto Chiusura Pompa a Vuoto Apertura Valvola Ingresso Aria Apertura Misuratore di Flusso Rateo di pressurizzazione : 300Pa/s Valvole Compressore Inizio Acquisizione dati INIZIO Misuratori di pressione Termocoppie Misuratore di flusso Valvole FINE Acquisizione dati Programma Labview NI 9485 NI 9264 Chiusura di: Misuratore di Flusso Valvole NI 9211 1) 2) 3) 4) 5) Pressione Interna (mV) Temperatura interna (mV) Temperatura delle pareti (mV) Valore dei trasduttori di pressione (mV) Valore del Misuratore di Flusso (V) Valori elaborati e salvati Nell’impianto è raggiunta la pressione di 1 atm 27 Frequenza di acquisizione : 50Hz NI CompactDAQ NI 9219 Ing. Andrea Malizia 1) 2) 3) 4) 5) Ingresso aria compressa Pressione Interna (Pascal) Temperatura interna (Kelvin) Temperatura delle pareti (Kelvin) Velocità del flusso d’aria (metri/secondo) Valore del Misuratore di Flusso (Litri/minuto)

A case study : STARDUST Apertura Valvola Elettro-Pneumatica Accensione resistenze Accensione Compressore Apertura Pompa a Vuoto Raggiungimento Condizioni a Contorno Pressione : 100 Pa Temperatura : 25 C e/o 110 C Chiusura Valvola Elettropneumatica Misuratori di pressione Misuratore Di flusso Pompa a vuoto Chiusura Pompa a Vuoto Apertura Valvola Ingresso Aria Apertura Misuratore di Flusso Rateo di pressurizzazione : 300Pa/s Valvole Compressore Inizio Acquisizione dati INIZIO Misuratori di pressione Termocoppie Misuratore di flusso Valvole FINE Acquisizione dati Programma Labview NI 9485 NI 9264 Chiusura di: Misuratore di Flusso Valvole NI 9211 1) 2) 3) 4) 5) Pressione Interna (mV) Temperatura interna (mV) Temperatura delle pareti (mV) Valore dei trasduttori di pressione (mV) Valore del Misuratore di Flusso (V) Valori elaborati e salvati Nell’impianto è raggiunta la pressione di 1 atm 28 Frequenza di acquisizione : 50Hz NI CompactDAQ NI 9219 Ing. Andrea Malizia 1) 2) 3) 4) 5) Ingresso aria compressa Pressione Interna (Pascal) Temperatura interna (Kelvin) Temperatura delle pareti (Kelvin) Velocità del flusso d’aria (metri/secondo) Valore del Misuratore di Flusso (Litri/minuto)

A case study : STARDUST Apertura Valvola Elettro-Pneumatica Accensione resistenze Accensione Compressore Apertura Pompa a Vuoto Raggiungimento Condizioni a Contorno Pressione : 100 Pa Temperatura : 25 C e/o 110 C Chiusura Valvola Elettropneumatica Misuratori di pressione Misuratore Di flusso Pompa a vuoto Chiusura Pompa a Vuoto Apertura Valvola Ingresso Aria Apertura Misuratore di Flusso Rateo di pressurizzazione : 300Pa/s Valvole Compressore Inizio Acquisizione dati INIZIO Misuratori di pressione Termocoppie Misuratore di flusso Valvole FINE Acquisizione dati Programma Labview NI 9485 NI 9264 Chiusura di: Misuratore di Flusso Valvole NI 9211 1) 2) 3) 4) 5) Pressione Interna (mV) Temperatura interna (mV) Temperatura delle pareti (mV) Valore dei trasduttori di pressione (mV) Valore del Misuratore di Flusso (V) Valori elaborati e salvati Nell’impianto è raggiunta la pressione di 1 atm 29 Frequenza di acquisizione : 50Hz NI CompactDAQ NI 9219 Ing. Andrea Malizia 1) 2) 3) 4) 5) Ingresso aria compressa Pressione Interna (Pascal) Temperatura interna (Kelvin) Temperatura delle pareti (Kelvin) Velocità del flusso d’aria (metri/secondo) Valore del Misuratore di Flusso (Litri/minuto)

DAQ Assistant Express VI Quickly and easily program the DAQ device Creates a local task Most applications can use the DAQ Assistant Express VI Ing. Andrea Malizia . 10 NI-DAQmx Data Acquisition Task Types Measurement type can be: Analog Input Analog Output Counter Input

Related Documents:

Certified LabVIEW Architect Exam LabVIEW Core 1 LabVIEW Core 3 LabVIEW Core 2 Managing Software Engineering in LabVIEW Advanced Architectures in LabVIEW LabVIEW Connectivity Object-Oriented Design and Programming in LabVIEW LabVIEW Performance LabVIEW Real-Time 1

examples. So launch LabVIEW and explore the LabVIEW environment as you read this section. 1.3.1 Starting LabVIEW . If your version of LabVIEW was installed using the default installation procedure, launch LabVIEW by selecting All Programs National Instruments LabVIEW 2013 (or LabVIEW 2014) LabVIEW 2013 (or LabVIEW 2014) from the Start menu .

Labview Exercises for Labview 7.0 Installation of Labview: 1. Install the Labview 7.0 software and drivers onto your computer. These files can be found by mapping a network drive to \\poohbah\labview, and by running the ‗autorun‘ file in the ‗Labview 7‘ folder. The serial num

in LabVIEW Object-Oriented Design & Programming in LabVIEW LabVIEW Learning Path LabVIEW Core 1 LabVIEW Getting Started LabVIEW LabVIEW Core 3 Core 2. Student Guide x ni.com C.What You Need to Get Started Befor

Sound and Vibration Measurement Suite Sound and Vibration Toolkit LabVIEW Internet Toolkit LabVIEW Advanced Signal Processing Toolkit . LabVIEW Report Generation Toolkit for Microsoft Office LabVIEW Database Connectivity Toolkit LabVIEW DataFinder Toolkit LabVIEW S

Actor-Oriented Design in LabVIEW LabVIEW NXG Options LabVIEW NXG Core 1 LabVIEW NXG Core 2 Transitioning to LabVIEW NXG Proficiency Events LabVIEW Developer Days CLD Summit . This learning path is for users developing embedded control and monitoring systems to design smart machines or industrial equipment. It presents courses, exams, and .

of the LabVIEW Arduino interface. What this book covers Chapter 1, Welcome to LabVIEW and Arduino, introduces you to the Arduino platform and the LabVIEW software. Chapter 2, Getting Started with the LabVIEW Interface for Arduino, shows you how to install and use the LabVIEW interface for Arduino via the LINX module.

Density (PSD), displaying the level of stress and LabVIEW Interface for Arduino (LIFA). Fig. 6. The overall LabVIEW programming for the study B. Graphical User Interface The graphical user interface (GUI) is designed in LabVIEW to help user to communicate with the LabVIEW and display the results. Fig. 7 describes the overall LabVIEW GUI of the