LabVIEW in Automation - DAQ in LabVIEW
LabVIEW in Automation - DAQ in LabVIEW
blog
LabVIEW in Automation
DAQ in LabVIEW
Hans-Petter Halvorsen
Contents
• Introduction to DAQ
– What is DAQ?
• Hardware Overview
– USB-6008, Sensors, Electronic components
• Software Overview
– LabVIEW + DAQmx Driver
• Temperature Sensors
– TMP36 Temperature Sensor
– Thermistor Temperature Sensor
• LEDs
• Lowpass Filter
• Log Data to File
• Delivery
DAQ System
DAQ – Data Acquisition
Input/Output Signals
Analog Signals
Software
Analog IO
Digital Signals Application
Sensors Digital IO
(Analog/Digital
Interface) Data Acquisition PC
Hardware
We will use an USB-6008 as the DAQ Hardware
I/O Module
Analog Signals
I/O Module
TMP is a small, low-cost temperature sensor and cost about $1 (you can buy it “everywhere”)
TMP37 LabVIEW Example
TMP
36 Hardware Setup TMP36
5V GND
AI+
We connect the TMP36 to LabVIEW using a USB DAQ Device from National
Instruments, e.g., USB-6001, USB-6008 or similar. I have used a breadboard for
the wiring.
Thermistor
A thermistor is an electronic component that changes
resistance to temperature - so-called Resistance
Temperature Detectors (RTD). It is often used as a
temperature sensor.
Our Thermistor is a so-called NTC (Negative Temperature Coefficient).
In a NTC Thermistor, resistance decreases as the temperature rises.
There is a non-linear relationship between resistance and excitement. To find the
temperature we can use the following equation (Steinhart-Hart equation):
1 % where 𝐴, 𝐵, 𝐶 are constants given below
[Wikipedia]
= 𝐴 + 𝐵 ln(𝑅) + 𝐶 ln(𝑅)
𝑇 𝐴 = 0.001129148, 𝐵 = 0.000234125 𝑎𝑛𝑑 𝐶 = 8.76741𝐸 − 08
Hardware Setup Thermistor
Thermistor LabVIEW Example
Light-emitting diode - LED
A light-emitting diode (LED) is a semiconductor light
source that emits light when current flows through it
Hardware Setup LED
DO-0
𝑅 = 270Ω
GND
LED LabVIEW Example
Lowpass Filter
Purpose:
Remove Noise
from the
Measured Signal
E-mail: hans.p.halvorsen@usn.no
Web: https://www.halvorsen.blog