Lab VIEWBased SRS Data Acquisition System Riccardo de
![Lab. VIEW-Based SRS Data Acquisition System Riccardo de Asmundis INFN and Università «Federico II» Lab. VIEW-Based SRS Data Acquisition System Riccardo de Asmundis INFN and Università «Federico II»](https://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-1.jpg)
Lab. VIEW-Based SRS Data Acquisition System Riccardo de Asmundis INFN and Università «Federico II» Napoli, Italy Certified Lab. VIEW Developer & Certified Professional Instructor National Instruments Austin (TX)
![Lecture Map Short Lesson 1 Laboratory 1 Overview of a DAQ System The LV Lecture Map Short Lesson 1 Laboratory 1 Overview of a DAQ System The LV](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-2.jpg)
Lecture Map Short Lesson 1 Laboratory 1 Overview of a DAQ System The LV DAQ-SRS under the magnifying glass Short Lesson 2 Laboratory 2 Lab. VIEW as a complete DAQ tool Taking data with LV DAQ-SRS
![Lesson 1 Overview of a Data Acquisition System TOPICS A. DAQ System Overview B. Lesson 1 Overview of a Data Acquisition System TOPICS A. DAQ System Overview B.](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-3.jpg)
Lesson 1 Overview of a Data Acquisition System TOPICS A. DAQ System Overview B. Sensors C. Signals D. DAQ Hardware E. Signal Conditioning F. DAQ Software
![A. DAQ System Overview Data Acquisition (DAQ)–the automatic collection of data from sensors, instruments, A. DAQ System Overview Data Acquisition (DAQ)–the automatic collection of data from sensors, instruments,](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-4.jpg)
A. DAQ System Overview Data Acquisition (DAQ)–the automatic collection of data from sensors, instruments, and devices in a factory, laboratory, or in the field. Purpose To measure an electrical or physical phenomenon such as voltage, current, temperature, pressure, or sound
![DAQ System Overview Signal Conditioning Sensor Or Signal I/O DAQ Hardwar e Bus DAQ DAQ System Overview Signal Conditioning Sensor Or Signal I/O DAQ Hardwar e Bus DAQ](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-5.jpg)
DAQ System Overview Signal Conditioning Sensor Or Signal I/O DAQ Hardwar e Bus DAQ Softwar e
![B. Sensor Overview • What is a sensor? • Types of sensors Signal Conditioning B. Sensor Overview • What is a sensor? • Types of sensors Signal Conditioning](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-6.jpg)
B. Sensor Overview • What is a sensor? • Types of sensors Signal Conditioning Sensor Or Signal I/O DAQ Hardwar e Bus DAQ Softwar e
![What is a Sensor? Physical Phenomena Signal Sensor A sensor converts physical phenomena into What is a Sensor? Physical Phenomena Signal Sensor A sensor converts physical phenomena into](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-7.jpg)
What is a Sensor? Physical Phenomena Signal Sensor A sensor converts physical phenomena into measureable electrical signals
![Types of Sensors Phenomena Sensors Temperature Thermocouples, Resistive Temperature Devices (RTDs), Thermistors Strain and Types of Sensors Phenomena Sensors Temperature Thermocouples, Resistive Temperature Devices (RTDs), Thermistors Strain and](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-8.jpg)
Types of Sensors Phenomena Sensors Temperature Thermocouples, Resistive Temperature Devices (RTDs), Thermistors Strain and Pressure Strain gages, Piezoelectric transducers Sound Microphone Vibration Accelerometer Position and Displacement Potentiometers, Linear voltage differential transformer, Optical encoder Fluid Head meters, Rotational flowmeters p. H electrodes Light Vacuum tube, Photo sensors Particles and Radiation detection in general Ionization-proportional-Geiger chambers, Scintillators, Silicon detectors, …
![C. Signal Overview • Signal classification • Signal information Signal Conditioning Sensor Or Signal C. Signal Overview • Signal classification • Signal information Signal Conditioning Sensor Or Signal](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-9.jpg)
C. Signal Overview • Signal classification • Signal information Signal Conditioning Sensor Or Signal I/O DAQ Hardwar e Bus DAQ Softwar e
![Signal Classification Analog Digital Signal Classification Analog Digital](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-10.jpg)
Signal Classification Analog Digital
![5 Ways to Measure the Same Signal ANALOG Domain DIGITAL Domain 5 Ways to Measure the Same Signal ANALOG Domain DIGITAL Domain](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-11.jpg)
5 Ways to Measure the Same Signal ANALOG Domain DIGITAL Domain
![D. DAQ Hardware Overview • Purpose of DAQ hardware − Transfer data between your D. DAQ Hardware Overview • Purpose of DAQ hardware − Transfer data between your](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-12.jpg)
D. DAQ Hardware Overview • Purpose of DAQ hardware − Transfer data between your sensor/signal and your software Signal Conditioning Sensor Or Signal I/O DAQ Hardware Bus DAQ Software
![Typical General Purpose DAQ Device Architecture Features • Analog Input • Analog Output • Typical General Purpose DAQ Device Architecture Features • Analog Input • Analog Output •](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-13.jpg)
Typical General Purpose DAQ Device Architecture Features • Analog Input • Analog Output • Digital I/O • Counter DAQ Circuitry − Clock&Timing, FIFO, … Data Transfer Bus − USB, PCI Express, PXI Express Synchronization Bus • Used to synchronize multiple DAQ devices • Allows sharing of timing and trigger signals between devices
![General DAQ Devices vs Specialised General DAQ Devices are ones Physics presents different suitable General DAQ Devices vs Specialised General DAQ Devices are ones Physics presents different suitable](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-14.jpg)
General DAQ Devices vs Specialised General DAQ Devices are ones Physics presents different suitable for DAQ in «simple» challenges situations • • • Testing lab Industrial test bench Virtual instrumentation Long term DAQ (environmental, structures, homeland security, …) Monitoring systems Non real-time control systems … • Weak and fast signals • Bad as both voltage or current sources !!! need very special signal conditioning − Charge integration amplification − Low noise techniques − Wide frequency band with the risk of EMI &/or auto oscillations • Signal timing NON-standard signal conditioning! • Fast signals, short rise and • Custom front-end electronics • fallspecialized time • Very custom or industry. Easy or standard signal conditioning needed • made Triggering techniques DAQ electronics
![The Lab. VIEW DAQ-SRS Chambers ON Board Electronics (signalconditioning) DAQ System Bus connection PC The Lab. VIEW DAQ-SRS Chambers ON Board Electronics (signalconditioning) DAQ System Bus connection PC](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-15.jpg)
The Lab. VIEW DAQ-SRS Chambers ON Board Electronics (signalconditioning) DAQ System Bus connection PC running LV (≥ m. MGas, GEM, … chambers UDP connection “RD 51 -srs” Lab. VIEW Project
![E. Signal Conditioning • Purpose of signal conditioning • Signal conditioning tasks and examples E. Signal Conditioning • Purpose of signal conditioning • Signal conditioning tasks and examples](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-16.jpg)
E. Signal Conditioning • Purpose of signal conditioning • Signal conditioning tasks and examples Signal Conditioning Sensor Or Signal I/O DAQ Hardware Bus DAQ Software
![Purpose of Signal Conditioning • Signal conditioning takes a signal that is difficult for Purpose of Signal Conditioning • Signal conditioning takes a signal that is difficult for](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-17.jpg)
Purpose of Signal Conditioning • Signal conditioning takes a signal that is difficult for your DAQ device to measure and makes it easier to measure • Signal conditioning is not always required − Depends on the sensor or signal being measured Signal Conditioning Noisy, Low-Level Signal Filtered, Amplified Signal
![Signal Conditioning Tasks They depend on the type of signal, but in principle Analogue Signal Conditioning Tasks They depend on the type of signal, but in principle Analogue](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-18.jpg)
Signal Conditioning Tasks They depend on the type of signal, but in principle Analogue domain: • Voltage measurement • • Amplification Attenuation Isolation Filtering
![F. DAQ Software Overview • After acquiring data, you usually still need to do F. DAQ Software Overview • After acquiring data, you usually still need to do](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-19.jpg)
F. DAQ Software Overview • After acquiring data, you usually still need to do more − Signal processing, generate a report, interact with data, etc. Signal Conditioning Sensor Or Signal I/O DAQ Hardware Bus DAQ Software
![Lesson 2 Lab. VIEW as a complete DAQ tool TOPICS A. What is Lab. Lesson 2 Lab. VIEW as a complete DAQ tool TOPICS A. What is Lab.](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-20.jpg)
Lesson 2 Lab. VIEW as a complete DAQ tool TOPICS A. What is Lab. VIEW B. Learning Lab. VIEW C. LV Design Patterns D. Event programming E. Lab. VIEW SRS DAQ program structure
![A. What Is Lab. VIEW? — A graphical programming environment used to develop sophisticated A. What Is Lab. VIEW? — A graphical programming environment used to develop sophisticated](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-21.jpg)
A. What Is Lab. VIEW? — A graphical programming environment used to develop sophisticated measurement, test, and control systems. Lab. VIEW: • Interfaces with wide variety of hardware • Scales across different targets and OSs • Provides built-in analysis libraries
![Some Lab. VIEW Features • Fully Graphical programming Natural interface with NI hardware • Some Lab. VIEW Features • Fully Graphical programming Natural interface with NI hardware •](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-22.jpg)
Some Lab. VIEW Features • Fully Graphical programming Natural interface with NI hardware • • • Easy interfacing with third part hardware Built in Advanced Analysis functions Built in C, Matlab, Mathematica compatibility Plug-ins for different processing • • Sound&Vibration, Simulation models, Datalogging & Supervisory Control, … Real Time & FPGA programming • Xilinx families FPGA
![B. Learning Lab. VIEW Two main approaches: • “Sit & go” − − − B. Learning Lab. VIEW Two main approaches: • “Sit & go” − − −](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-23.jpg)
B. Learning Lab. VIEW Two main approaches: • “Sit & go” − − − • Due to the graphical programming, most people think it is simple or even trivial to develop with Knowledge of few elements induces beginners to think “all is understood so I can do everything” The result can be a disaster Training program • • Systematic approach: allows user to learn about available language elements gradually Presents features which would be totally ignored
![Some other “spaghetti diagram” Sometime people are proud of such a job and this Some other “spaghetti diagram” Sometime people are proud of such a job and this](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-24.jpg)
Some other “spaghetti diagram” Sometime people are proud of such a job and this is extremely dangerous. you draw something like this in your past, pleas 1. trash all away 2. forget everything 3. restart from beginning !
![Available Lab. VIEW courses New User Lab. VIEW Core 1 Experienced User Lab. VIEW Available Lab. VIEW courses New User Lab. VIEW Core 1 Experienced User Lab. VIEW](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-25.jpg)
Available Lab. VIEW courses New User Lab. VIEW Core 1 Experienced User Lab. VIEW Core 3 Lab. VIEW Core 2 Lab. VIEW Connectivity Certifications Certified LV Associate Developer Exam Object-Oriented Design and Programming in Lab. VIEW Certified Lab. VIEW Performance Developer Exam Advanced User Managing Software Engineering in Lab. VIEW Advanced Architectures in Lab. VIEW Certified Lab. VIEW Architect Exam Other Courses Lab. VIEW Real-Time 1 Lab. VIEW Real-Time 2 Lab. VIEW Instrument Control Lab. VIEW FPGA DAQ & Signal Lab. VIEW Modular Conditioning Instruments
![Lab. VIEW Education • Instructor Led Training − Lab. VIEW Performance − Object-Oriented Design Lab. VIEW Education • Instructor Led Training − Lab. VIEW Performance − Object-Oriented Design](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-26.jpg)
Lab. VIEW Education • Instructor Led Training − Lab. VIEW Performance − Object-Oriented Design and Programming in Lab. VIEW − Managing Software Engineering in Lab. VIEW − Advanced Architectures in Lab. VIEW − Real. Time and FPGA − Data Acquisition −… • Self-Paced Online: Accessible 24 hours a day, prerecorded video training modules, interactive quizzes, and challenging exercises with solutions. • Printed Course Materials: a variety of instructional packages and tools designed to educate you at your own pace Take time to STUDY: time spent so, acts as a credit for the fut
![C. Design Patterns • Why use Design Patterns? − They have proven themselves useful C. Design Patterns • Why use Design Patterns? − They have proven themselves useful](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-27.jpg)
C. Design Patterns • Why use Design Patterns? − They have proven themselves useful for developing software. − You don’t have to start a program from scratch. − They make it easier for others to read and modify Design Patterns – Code your code. implementations and techniques that are solutions to specific problems in software design Design patterns typically evolve through the efforts of many developers and are fine-tuned for simplicity, maintainability, and readability.
![Simple VI Pattern • Single VI that takes a measurement, performs calculations, and either Simple VI Pattern • Single VI that takes a measurement, performs calculations, and either](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-28.jpg)
Simple VI Pattern • Single VI that takes a measurement, performs calculations, and either displays the results or records them to disk. • Usually does not require a specific start or stop action from the user.
![General VI Framework General VI Framework](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-29.jpg)
General VI Framework
![State Machine Framework State Machine Framework](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-30.jpg)
State Machine Framework
![Producer/Consumer Design Patterns Producer/Consumer Design Patterns](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-31.jpg)
Producer/Consumer Design Patterns
![Choose of a Design Pattern through templates “Create Project…” Choose of a Design Pattern through templates “Create Project…”](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-32.jpg)
Choose of a Design Pattern through templates “Create Project…”
![D. Event-Driven Programming Event — An asynchronous notification that something has occurred Event-Driven Programming D. Event-Driven Programming Event — An asynchronous notification that something has occurred Event-Driven Programming](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-33.jpg)
D. Event-Driven Programming Event — An asynchronous notification that something has occurred Event-Driven Programming — Method of programming where the program waits for an event to occur before executing one or more functions User Action on Front Panel Execution Block Diagram
![Polling versus Event Structures Polling • Method of event-based programming where a loop must Polling versus Event Structures Polling • Method of event-based programming where a loop must](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-34.jpg)
Polling versus Event Structures Polling • Method of event-based programming where a loop must continually run code to check if changes have occurred. • Polling the front panel requires a significant amount of CPU time. • Polling can fail to detect changes if they occur too quickly. Event Structures • Events in Event structures eliminate the need to poll the front panel. • Benefits of using Event structures: – Reduces the CPU requirements of the program. – Simplifies the block diagram code. – Guarantees that the block diagram can respond to all interactions the user makes.
![E. Lab. VIEW SRS DAQ Program Structure E. Lab. VIEW SRS DAQ Program Structure](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-35.jpg)
E. Lab. VIEW SRS DAQ Program Structure
![The Lab. VIEW DAQ-SRS Chambers ON Board Electronics (signalconditioning) DAQ System Bus connection PC The Lab. VIEW DAQ-SRS Chambers ON Board Electronics (signalconditioning) DAQ System Bus connection PC](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-36.jpg)
The Lab. VIEW DAQ-SRS Chambers ON Board Electronics (signalconditioning) DAQ System Bus connection PC running LV (≥ m. MGas, GEM, … chambers UDP connection “RD 51 -srs” Lab. VIEW Project
![Program Features • • UDP Codes data 3 -D monitor Building Example Event of Program Features • • UDP Codes data 3 -D monitor Building Example Event of](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-37.jpg)
Program Features • • UDP Codes data 3 -D monitor Building Example Event of event monitor Fast data stream link via UDP protocol (on Ethernet) Monitors for data packet, event building, online events analysis sampling 2 -D and 3 -D plot representations Online histograms construction Data file saving Data acquisition Run management User friendly (as possible…) UDP data frame in graphical Incoming Event representation: channels in color, 1 sample per visible slot; Formatted Event
![Structure and techniques Based on: • A Producer-Consumer (Event driven) Design Pattern for the Structure and techniques Based on: • A Producer-Consumer (Event driven) Design Pattern for the](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-38.jpg)
Structure and techniques Based on: • A Producer-Consumer (Event driven) Design Pattern for the UI commands [lossless] • A Producer-Consumer (Data driven) Design Pattern for DAQ, Run handling and data file saving [lossless] • A Master-Slave Design Pattern for online data analysis (where samples of events are treated) [lossy] • In total: • 5 parallel loops • Initialization and shutdown
![Than You See you in the Lab this afternoon Than You See you in the Lab this afternoon](http://slidetodoc.com/presentation_image_h/283dda58527ddd742aba3723878a31e4/image-39.jpg)
Than You See you in the Lab this afternoon
- Slides: 39