Block Size

When you use NI-DAQmx to control the data acquisition (DAQ) hardware, you must take the block size—in either number of samples or block duration—into consideration.

You can measure the block size either in terms of samples or time as long as the sampling rate is constant.

The following equation calculates the acquisition duration:

T = N * dt

where

T is the acquisition duration

N is the block size

dt is the sample interval

The acquisition duration determines the maximum length of an event that you can measure in a finite acquisition or the time resolution that you can achieve in a continuous acquisition. In a continuous acquisition the duration of each measurement block impacts the rate at which the data acquisition loop must run, the time/frequency resolution of all block-based measurements, and the latency of your DAQ application. The sound and vibration analysis tools in the NI Sound and Vibration Measurement Suite generally check for either time continuity or block size. For example, time-domain weighting filters, resampling, level measurements, octave analysis, zoom FFT analysis, and order analysis require continuous blocks of data even though the blocks do not have to be of equal size. Limit testing, baseband FFT analysis, and subset FFT analysis requires a constant block size but place no restrictions on the timestamp of each block of data.