100 likes | 187 Vues
Learn about resolution, sampling rate, Nyquist theorem, DAQ in LabVIEW, and data conversion in data acquisition. Understand the key principles to optimize data collection for your chemical engineering projects.
E N D
Data Acquisition Seth Price Department of Chemical Engineering New Mexico Tech Rev. 10/9/14
Resolution • Resolution: the smallest “y” step measurable by measurement system • Resolution is related to the number of states (and thus number of bits)
Sampling Rate • How fast a system collects data • Generally expressed in Hertz, Hz • Means how many times a second • Trade off when choosing sampling rate • Sampling too fast -> generating larger files, some “useless” data, expensive hardware • Sampling too slow -> miss short-lived events, aliasing
Aliasing • Consider a 10 Hz waveform sampled at a few different sampling rates:
Nyquist (or Sampling) Theorem • MUST sample at a rate that is greater than twice the highest frequency you will see in the system to avoid aliasing S > 2*fm
DAQ In LabVIEW • Using DAQ Assistant Express VI: • Handles much of the low-level configuration for you • Much easier than traditional DAQ • Does not work on all equipment • Can be the source of problems
DAQ in LabVIEW • Place a DAQAssistant Express VI on the block diagram • Select whether you will be generating a signal or acquiring a signal • Select the type of signal (voltage, current, etc.) • Select the physical channel
DAQ in LabVIEW • Choose a Sampling Method • For this class, choose “On Demand” • Choose a Grounding Method • For this class, choose “Let NI Choose” • Test in DAQAssistant Window • Press “OK”
Data Conversion • LabVIEW uses a data type called “Dynamic Data” when interfacing hardware • We want a number (in this case), so we must convert it
Data Conversion • For “Acquiring Signals”, use “From DDT” • On the popup menu, select “Single Scalar” • For “Generating Signals”, use “To DDT” • On the popup menu, select “Single Scalar”