1D DST VI
- Updated2025-07-30
- 2 minute(s) read
Computes the Discrete Sine Transform (DST) of the input sequence X. Wire data to the X input to determine the polymorphic instance to use or manually select the instance.

Inputs/Outputs
X
—
X is a real vector.
DST size
—
DST size is the length of the DST you want to perform. If DST size is greater than the number of elements in X, this VI adds zeros to the end of X to match the size of DST size. If DST size is less than the number of elements in X, this VI uses only the leading DST size elements in X to perform the DST. If DST size is less than or equal to zero, this VI uses the length of X as the DST size.
DST {X}
—
DST {X} is the DST of X.
error
—
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
1D DST
The one-dimensional Discrete Sine Transform DST {X} of a sequence X is defined as:
, k=0, 1, 2, …, N–1
where N is the length of the input sequence X, xn is the nth element of the input sequence X, and yk is the kth element of the output sequence DST {X}. This VI applies a fast DST algorithm instead of calculating the Discrete Sine Transform directly. LabVIEW implements this fast DST algorithm using an FFT-based technique.
X
—
DST size
—
DST {X}
—
error
—