Introduction To DAQ With LabVIEW - Overview
Introduction To DAQ With LabVIEW - Overview
page=labview
Introduction to DAQ
with LabVIEW
TC-01
Thermocouple
http://home.hit.no/~hansha/?page=labview
These are the main modules we use in the different
courses at Telemark University College:
• LabVIEW (LabVIEW Professional Development System 32-Bit: English)
• NI-DAQmx (Hardware Driver for NI USB-6008, NI TC-01, etc.)
• LabVIEW Control Design and Simulation Module
• LabVIEW MathScript RT Module
Note! These packages are separate downloads!
All LabVIEW Software can be downloaded here: www.ni.com/download
Additional LabVIEW Resources
Here you will find lots of Videos, Tutorials and Exercises
Arduino
ZigBee
Vision System
cRIO
NOx Sensor
LabVIEW
This is the core LabVIEW installation that installs
the LabVIEW Programming Environment.
Analog/Digital Inputs/Outputs
Note! The DAQmx Driver is needed in order to use them inside LabVIEW!!
DAQ – Data Acquisition Your App created
with LabVIEW
Sensors, etc.
Connect device to
PC using USB
USB
Students: Plug in the device into your USB port and see if this window appears
NI TC-01 Built-in Temperature Logger
Built-in Temperature Logger (No Driver or programming needed)
Students: Test the Built-in Temperature Logger, Log Data to File, etc.
MAX – Measurement & Automation Explorer
Students: Make sure that your device can be located in MAX. Run a “Self-Test” and
use the “Test Panels” to make sure the device works properly.
Data Acquisition Palette in LabVIEW
Functions Palette: “Measurement I/O” -> “NI DAQmx”
For more “advanced” DAQ we use these functions
Students: Make sure that you have this palette installed. If not, install the latest
DAQmx driver!
LabVIEW DAQ Assistant
Assistant
Set Properties
Select Channel
Read Data from TC-01 Device
Right-Click
SubVI
Students: Create this
Example and run it
Select Inputs and Outputs
SubVI
Input Output
Icon that makes it easier
to understand what the
(Control) (Indicator) SubVI is doing
Recommended Settings
Recommended Settings
Datalogging Example
Datalogging Example – Block Diagram
Students: (1) Log Temperature Data, both Celsius and Fahrenheit (use SubVI) to a
“Measurement File”. (2) Then Plot the Data in the File in Excel.
(3) You should also create a new VI in LabVIEW where you plot the data from the File
in a Graph and in an Array.
Read from Measurement File - Example
Block Diagram
Right-click-Properties
Recommended Settings
Recommended Settings
Using a Lowpass Filter to reduce Noise
Functions palette: Express -> Signal Analysis -> Simulate Signal
Since we shall implement the Measurement Filter in a computer, we need to make a dicrete version
of the filter. We use the Euler Backward discretization method:
Or:
This discrete Measurement Filter can be easily
where implemented in a computer using e.g.,
LabVIEW, C#, etc.
LabVIEW Formula Node
Formula Node: Create and use C code
within LabVIEW
Example:
E-mail: hans.p.halvorsen@hit.no
Blog: http://home.hit.no/~hansha/