Align and Resample Express VI

Owning Palette: Signal Manipulation Express VIs

Requires: Full Development System

Performs an alignment of signals by changing the start time or performs a resampling of signals by changing the time delta. This Express VI returns the adjusted signals.

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs
 Add to the block diagram  Find on the palette

Dialog Box Options

ParameterDescription
Acquisition TypeContains the following options:
  • Single segment—Aligns and/or resamples each iteration separately.
  • Continuous—Aligns and/or resamples all iterations as one continuous segment.
AlignAligns the signals to have the same start time.
Alignment IntervalContains the following options:
  • Global—Aligns the start and end times of signals by adding zero values to the beginning of the signal that starts last and to the end of the signal that ends first.
  • Common—Aligns the start and end times of signals by using the start time of the signal that starts last and the end time of the signal that ends first.
ResampleResamples the signals to have the same sampling interval.
Resampling IntervalContains the following options:
  • Lowest dt—Resamples all the signals to have the same sampling interval as the signal with the smallest sampling interval.
  • Specific dt—Resamples all the signals to have a user-defined sampling interval.
    • dt—Sampling interval you define. The default is 1.
  • Reference signal—Resamples all the signals to have the same sampling interval as a reference signal.
Interpolation ModeWhen resampling, you might need to add points to the signal. Interpolation Mode controls how LabVIEW calculates the amplitude of the new points. Interpolation Mode contains the following options:
  • Linear—Returns an output sample value equal to a linear interpolation between the two input samples that are closest to the output sample value in time.
  • Coerce—Returns an output sample value equal to the input sample value that is closest to the output sample value in time.
  • Spline—Uses the spline interpolation algorithm to compute the resampled values.
  • FIR filter—Uses an FIR filter to compute the resampled values.
FIR Filter ParametersContains the following options:
  • Alias rejection (dB)—Specifies the minimum attenuation level of signal components aliased after any resampling operation. The default is 120. This option is available only when you select FIR filter.
  • Normalized bandwidth—Specifies the fraction of the new sampling rate that is not attenuated. The default is 0.4536. This option is available only when you select FIR filter.
Open intervalDefines whether an input signal is an open or closed interval. The default is TRUE, which selects an open interval. For example, assume an input signal has t0 = 0, dt = 1, and Y = {0, 1, 2}. An open interval returns a final time value of 2. A closed interval returns a final time value of 3.
Sample Input DataDisplays sample input signals you can use as a reference to determine how the configuration options you select affect the actual input signals. If you wire data to the Express VI and run it, Sample Input Data displays real data. If you close and reopen the Express VI, Sample Input Data displays sample data until you run the VI again.
Result PreviewDisplays a preview of the measurement. The Result Preview plot indicates the value of the selected measurement with a dotted line. If you wire data to the Express VI and run the VI, Result Preview displays real data. If you close and reopen the Express VI, Result Preview displays sample data until you run the VI again. If the cutoff frequency values are invalid, Result Preview does not display valid data.

Block Diagram Inputs

ParameterDescription
dtSpecifies a sampling interval you define. If you wire a value to this input, the wired value overrides the value you set in the configuration dialog box.
Reference SignalContains a reference signal whose sampling interval is used as the rate at which this Express VI resamples the input signals. If you wire a value to this input, the wired value overrides the value you set in the configuration dialog box.
ResetControls the initialization of the internal state of the VI. The default is FALSE.
SignalsContains the input signal or signals.
Signals 2Contains the input signal(s).
error inDescribes error conditions that occur before this node runs.

Block Diagram Outputs

ParameterDescription
Resampled SignalsReturns the resampled signals.
Resampled Signals 2Returns the resampled signals.
error outContains error information. This output provides standard error out functionality.

This Express VI operates similarly to the following VIs and functions:

Align Waveforms (continuous)
Align Waveforms (single shot)
Resample Waveforms (single shot)
Resample Waveforms (continuous)