Table Of Contents

Resample (Variable to Constant) (G Dataflow)

Last Modified: January 12, 2018

Resamples a waveform that is represented by time-value pairs.

connector_pane_image
datatype_icon

XY-data

Signal to resample.

This input accepts the following data types:

  • Array of pairs
  • Multiple arrays of pairs
  • Pair of arrays
  • Multiple pairs of arrays
datatype_icon

x

X component of the XY pair.

datatype_icon

y

Y component of the XY pair.

datatype_icon

resampled dt

Sampling interval, in seconds, between data points in the resampled signal.

Default: 1

datatype_icon

resampled t0

Timestamp value for the resampled signal.

If resampled t0 is less than the first value of x in XY-data, this node adjusts the value of resampled t0 to be equal to or greater than the first value of x.

Default: -Infinity

datatype_icon

interpolation mode

Algorithm this nodes uses to perform alignment of waveforms.

Name Value Description
coerce 0 This node sets each output sample value to the input sample value that is closest to it in time.
linear 1 This node sets each output sample value to the linear interpolation between the two input samples that are closest to it in time.
spline 2 This node uses the spline interpolation algorithm to compute the resampled values.
FIR filter 3 This node uses a finite impulse response (FIR) filtering algorithm to compute the resampled values.

Default: linear

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

resampled XY-data

Resampled signal.

This output can return the following data types:

  • Array of pairs
  • Multiple arrays of pairs
  • Pair of arrays
  • Multiple pairs of arrays
datatype_icon

x

X component of the XY pair.

datatype_icon

y

Y component of the XY pair.

datatype_icon

resampled signal

Resampled signal.

This output can return a waveform or an array of waveforms.

datatype_icon

used t0

The actual timestamp of the resampled waveform and also the first X value of the array of XY pairs containing the resampled signal.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.
datatype_icon

t0 adjusted warning?

A Boolean that indicates whether the actual start time of the resampled signal equals the start time value you specified.

True The actual start time of the resampled signal does not equal the start time value you specified.
False The actual start time of the resampled signal equals the start time value you specified.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics