Get XY Value
- Updated2023-02-17
- 6 minute(s) read
Get XY Value
Returns the X and Y value of a waveform or digital data set.
Inputs/Outputs

waveform
Waveform from which to retrieve a specified data value (X and Y value).
This input accepts a waveform or a digital waveform.
This input is available when you wire a waveform or digital waveform to digital data in. If you wire a digital table to waveform in, this input changes to digital data in.

digital data
Digital table for which you want to retrieve the X and Y values.
This input is available when you wire a digital table to waveform. If you wire a waveform or digital waveform to digital data, this input changes to waveform.

Y position format
Data value of the specified element or at a specified time.
This input is available when you wire a waveform or digital waveform to digital data in. If you wire a digital table to waveform in, this input changes to start.
| Samples | 0 | Data value of the specified sample in the waveform data. |
| Relative Time | 1 | Data value at a specified time relative to the first point in the waveform. |
Default value: Samples

start
Data element or time value where you want to start acquiring X and Y values.
This input is available when you wire a digital table to waveform in. If you wire a waveform or digital waveform to digital data in, this input changes to Y position format.
Default value: 0

Y position
Element number you want from the set of waveform data or the value at a specified time.
For example, if you want the value of the 200th scan, wire 199 to this input. If you want the value at time 100, wire 100 to this input. You specify whether this input operates based on samples or relative time in Y position format.
In Relative Time mode, this node determines whether the value wired to this input is an integer multiple of dt. If the value is not an integer multiple of dt, the node uses the closest exact multiple of dt.
This input is available when you wire a waveform or digital waveform to digital data in. If you wire a digital table to waveform in, this input is not available.
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

X value
Timestamp that captures the X value of the waveform at the location or time you specify.
This output is available when you wire a waveform or digital waveform to digital data in. If you wire a digital table to waveform in, this output changes to compressed index.

compressed index
Index of the data element or time value with respect to the compressed waveform.
For example, if the actual sample number is 8 but the sample is compressed in a portion of the waveform that starts at 3, the compressed index is 3.
This output is available when you wire a digital table to waveform in. If you wire a waveform or digital waveform to digital data in, this output changes to X value.

actual Y position
Index or time value of the point this node returns.
This output is available when you wire a waveform or digital waveform to digital data in. If you wire a digital table to waveform in, this output changes to sample number.

sample number
Sample number of the data element or time value. If the value of start is inside a compressed portion of the waveform, this node calculates the sample number as if the waveform were not compressed.
This output is available when you wire a digital table to waveform in. If you wire a waveform or digital waveform to digital data out, this output changes to actual Y position.

Y value
Integer that captures the Y value of the waveform at the location you specify.
This output is an integer array of Y values when you wire a digital waveform to waveform in.
This output is available when you wire a waveform or digital waveform to digital data in. If you wire a digital table to waveform in, this output changes to digital value.

digital value
Integer array of Y values.
This output is available when you wire a digital table to waveform in. If you wire a waveform or digital waveform to digital data in, this output changes to Y value.

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

waveform data value
Values of the digital waveform data.
This output is available when you wire a digital waveform to waveform in or digital data in. If you wire a digital table to waveform in or digital data in, this output changes to digital data value. If you wire an analog waveform to waveform in or digital data in, this output is not available.

digital data value
Values of the digital data.
This output is available when you wire a digital table to waveform in. If you wire a digital waveform to waveform in or digital data in, this output changes to digital waveform value. If you wire a waveform to waveform in or digital data in, this output is not available.