Owning Palette: Transforms VIs
Requires: Full Development System
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.
Use the pull-down menu to select an instance of this VI.
Add to the block diagram | Find on the palette |
X is a real vector. | |
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} is the DST of X. | |
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. |
X is the real input sequence. | |
DST {X} is the DST of X. | |
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. |
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.
The two-dimensional Discrete Sine Transform DST {X} of a matrix X is defined as:
where M and N are the number of rows and columns, respectively, of the input matrix X. x(m, n) is the element of the input matrix X with row number m and column number n. y(u, v) is the element of the output matrix DST {X} with row number u and column number v. This VI performs a two-dimensional DST using the following two steps: