@ Professor Doug Harper Department of Physics and Astronomy Presented to WKU Student Chapter of March 21, 2017
Professor Doug Harper BS in Physics and Mathematics, WKU PhD in Surface Physics, Vanderbilt University Professor of Physics at WKU for 26 years Certified LabVIEW Architect
I’ve used LabVIEW… since it came on floppy discs.
Sign up to win… Digilent Analog Discovery 2 Six of the most used lab instruments in one hand-held device 2 channel 100 MS/s scope 16 channels of high-speed digital I/O Free WaveForms application software Programmable with LabVIEW Six of the most used lab instruments in one hand-held device 2 channel 100 MS/s scope 16 channels of high-speed digital I/O Free WaveForms application software Programmable with LabVIEW Six of the most used lab instruments in one hand-held device 2 channel 100 MS/s scope 16 channels of high-speed digital I/O Free WaveForms application software Programmable with LabVIEW Six of the most used lab instruments in one hand-held device 2 channel 100 MS/s scope 16 channels of high-speed digital I/O Free WaveForms application software Programmable with LabVIEW
Waveforms: free software for Mac, Windows, Linux
Also … It works with LabVIEW
LabVIEW != Text-Based Programming
LabVIEW: Laboratory Virtual Instrument Engineering Workbench
LabVIEW: Laboratory Virtual Instrument Engineering Workbench
LabVIEW: Laboratory Virtual Instrument Engineering Workbench
LabVIEW VI: Front Panel and Block Diagram
Controls = Inputs Indicators = Outputs
Terminals
Nodes
Dataflow
Dataflow Quiz
Dataflow Quiz Answer
Enough Talk … Time for a Demo …
Data Acquisition Building Blocks: Sensor A Sensor converts a physical phenomenon such as temperature, pressure, light intensity, distance, etc. to a different quantity that can be more easily measured.
Data Acquisition Building Blocks Computer Sensor Application Software
Data Acquisition Building Blocks Computer DAQ Hardware Sensor Application Software Driver Software ADCs, DACs, Counters, DIO Signal Conditioning
Data Acquisition with LabVIEW and DAQmx Computer DAQ Hardware Sensor NI-DAQmx Application Software Driver Software ADCs, DACs, Counters, DIO Signal Conditioning
DAQmx Based Hardware: myDAQ NI-DAQmx Features: 2 Analog Inputs (16 bits, 200 S/s) 2 Analog Outputs (16 bits, 200 S/s) 8 Digital IO Lines 1 Counter/Timer
DAQmx Hardware: Multi-Function DAQ Cards NI-DAQmx
DAQmx Based Hardware: C Series Modules NI-DAQmx
DAQmx Based Hardware: CompactDAQ NI-DAQmx
DAQmx Based Hardware: PXI Chassis NI-DAQmx
LabVIEW Real Time + FPGA: Embedded Applications Computer DAQ Hardware Sensor Application Software Driver Software ADCs, DACs, Counters, DIO Signal Conditioning
Real Time Hardware: myRIO
Real Time Hardware: Compact RIO
Real Time Hardware: Single Board RIO
Real Time Hardware: Flex RIO
LabVIEW for the Maker Community Computer DAQ Hardware Sensor Application Software Driver Software ADCs, DACs, Counters, DIO Signal Conditioning http://www.labviewmakerhub.com/
LabVIEW for the Maker Community Computer DAQ Hardware Sensor Application Software Driver Software ADCs, DACs, Counters, DIO Signal Conditioning http://www.tsxperts.com/
myRIO Demo
Gesture Sensor: Broadcom APDS-9960 Features: Ambient Light Sensing RGB Color Sensing Proximity Sensing Touchless Gesture Detection Operating Range: 10-20 cm I2C Interface
Gesture Sensor: Sparkfun Breakout for APDS-9960 Connections: VL: Power for IR LED GND: Ground Vcc: Power for Sensor SDA: I2C Data SCL: I2C Clock INT: Digital Interrupt
I2C Communication
I2C Communication
Gesture Detection
LabVIEW Web Services
University Physics Laboratory
Now Available on the LabVIEW Tools Network Search for ‘Physics Lab Assistant’ at http://www.ni.com/labview-tools-network/
PHYS 318: Data Acquisition Using LabVIEW 2001 Established Course Once Every 2 Years 2009 LabVIEW Academy Once Every Year 2013 Every Semester 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016
LabVIEW Academy Requirements Benefits CLAD Certified Instructors 30 hours of Instruction 20 hours of Homework 20 hours of LabVIEW Project Dedicated classroom One PC per student Dedicated DAQ Hardware Benefits Up to date curricular materials Recent software / updates LabVIEW Certified Instructors Student Software Licenses LabVIEW Core 1 & Core 2 Can take CLAD Exam for Free
Certified LabVIEW Associate Developer (CLAD)
WKU PHYS 318 CLAD results since 2009 (68/138 = 49.2%)
Projects Deliverables Project Specification Document Source Code Project Presentation Final Report
Oak Ridge National Laboratory: Spallation Neutron Source
Friction Measurement Device
Friction Measurement Device Movable Stage (holds finger) Fixed Force Plate (Fx, Fy, Fz) Linear Actuator (3 axis) CompactRIO (AI, DI, 3 DO)
Friction Measurement Device
Friction Measurement Device – User Interface
Friction Measurement Device – Application Architecture User Interface RT UI Status Loop RT UI Data Loop User Interface Event Loop Queued State Machine Real Time Controller DAQ Loop (100 µs) Motor Control Loop UI RT Messages RT UI Data and Status FPGA Motor Control Loops (x3) Motor Status Loop Force Plate Analog Input
Phototaxis – Sigrid Jacobshagen, WKU Biology
Phototaxis
Phototaxis
Phototaxis – Inherited Code to Refactor
Phototaxis – Improved Program Architecture
What’s New in LabVIEW 2016
Analog Discovery 2 Giveaway
Pull a number from a hat … with LabVIEW !!