WDT Get Waveform Subset I32 VI
- Updated2025-07-30
- 3 minute(s) read
Retrieves a subset of a waveform at a specified time or index. You must manually select the polymorphic instance you want to use.

Inputs/Outputs
open interval? (T)
—
open interval? defines whether the waveform subset extracted is an open or closed interval. The default is TRUE, which selects an open interval. For example, if t0 = 0, dt = 1, Y = {0, 1, 2}, start/duration format is Relative Time, start samples/time is 0, and duration is 2, an open interval returns {0, 1}. A closed interval returns {0, 1, 2}.
start/duration format
—
start/duration format specifies if you want to retrieve the data value of the specified element or at a specified time.
waveform in
—
waveform in is the waveform for which you want to retrieve a subset.
start samples/time
—
start samples/time is the data element or time value where you want to start acquiring a waveform subset.
duration
—
duration is the amount of time to retrieve data or the number of elements of data you want to retrieve, depending on the start/duration format you select.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
waveform out
—
waveform out is the waveform subset.
actual start samples/time
—
actual start samples/time is the actual data element when the subset was acquired.
actual duration
—
actual duration is the actual number of elements retrieved or the actual amount of time the data values were acquired.
error out
—
error out contains error information. This output provides standard error out functionality. |
For example, consider a waveform of 128 scans with a dt of 1.00. If you wire 40.00 to duration and 25.00 to start samples/time, the actual duration and actual start samples/time are the same, 40.00 and 25.00, respectively. However, if the waveform has a dt of 2.00, the actual duration and the actual start samples/time are 40.00 and 24.00, respectively.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Waveform\Waveform - Get Subset.vi
open interval? (T)
—
start/duration format
—
waveform in
—
start samples/time
—
error in (no error)
—
waveform out
—
actual start samples/time
—
error out
—