Get Waveform Subset
- Updated2023-02-17
- 5 minute(s) read
Get Waveform Subset
Retrieves a subset of a waveform at a specified time or index.

Inputs/Outputs

open interval
Boolean that determines whether the waveform subset extracted is an open or closed interval.
True | The extracted waveform subset is an open interval. |
False | The extracted waveform subset is a closed interval. |
This input is available when you wire a waveform or digital waveform to waveform.
Default value: True

start/duration format
Value that determines whether to retrieve the data value of the specified element or at a specified time.
This input is available when you wire a waveform or digital waveform to waveform.
Samples | 0 | Returns the data value of the specified element in the waveform data. |
Relative Time | 1 | Returns the data value at a specified time relative to the first point in the waveform. In this mode, the dt of the waveform affects actual start samples/time and actual duration. |
Default value: Samples

waveform
Waveform from which you want to retrieve a subset.
This input accepts an array of waveforms or an array of digital waveforms.
This input is available when you wire a waveform or digital waveform data type to digital data. If you wire a digital table to waveform, this input changes to digital data.

digital data
Set of digital data from which you want to retrieve a subset.
This input is available only when you wire a digital table to waveform. If you wire a waveform or digital waveform to digital data, this input changes to waveform.

start samples/time
Data element or time value where you want to start acquiring a waveform subset.
This input is available when you wire a waveform or digital waveform data type to digital data. If you wire a digital table to waveform, this input changes to start.
Default value: 0

start
Data element or time value where you want to start acquiring a data subset.
This input is available only when you wire a digital table to waveform. If you wire a waveform or digital waveform to digital data, this input changes to start samples/time.
Default value: 0

duration
Amount of time to retrieve data or the number of elements of data you want to retrieve, depending on the start or duration format you select.
This input is available when you wire a waveform or digital waveform data type to digital data. If you wire a digital table to waveform, this input changes to number of samples.
Default value: 1

number of samples
Number of samples to include in the digital data subset.
This input is available only when you wire a digital table to waveform. If you wire a waveform or digital waveform to digital data, this input changes to duration.
Default value: 0

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

waveform subset
Subset of the provided waveform based on the parameters you specify.
This output is a digital waveform when you wire a digital waveform to waveform.
This output is available when you wire a waveform or digital waveform to waveform. If you wire a digital table to waveform, this output changes to digital data subset.

digital data subset
Subset of the provided digital data based on the parameters you specify.
This output is available only when you wire a digital table to waveform. If you wire a waveform or digital waveform to digital data, this output changes to waveform subset.

actual start samples/time
Actual data element when the subset was acquired.
This output is available when you wire a waveform or digital waveform to waveform.

actual duration
Actual number of elements retrieved or the actual amount of time the data values were acquired.
This output is available when you wire a waveform or digital waveform to waveform.

error out
Error information.
The node produces this output according to standard error behavior.