Sine Pattern VI

Owning Palette: Signal Generation VIs

Requires: Full Development System

Generates an array containing a sinusoidal pattern.

Details  

 Add to the block diagram  Find on the palette
samples is the number of samples of the Sinusoidal Pattern. samples must be greater than or equal to 0. The default is 128. If samples is less than zero, the VI sets Sinusoidal Pattern to an empty array and returns an error.
amplitude is the amplitude of Sinusoidal Pattern. The default is 1.0.
phase is the phase in of the sine wave without reset and must be in degrees. The default is 0.0.
Note  phase must be in degrees rather than radians. If phase is in radians, make sure you convert it to degrees, as shown in the following illustration, before using the Sine Pattern VI.
cycles is the number of complete periods of the Sinusoidal Pattern. The default value is 1.0.
Note  Because cycles is a floating-point number, fractional cycles are possible for the Sinusoidal Pattern. Furthermore, setting cycles to a negative number does not generate an error condition because it is mathematically correct and useful to consider negative frequencies in Fourier and spectral analysis.
Sinusoidal Pattern returns an array containing a sinusoidal pattern of samples. The largest Sinusoidal Pattern the VI can generate depends on the amount of memory in your system and is theoretically limited to 2,147,483,647 (231 – 1) elements.
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.

Sine Pattern Details

If the sequence Y represents Sinusoidal Pattern, the Sine Pattern VI generates the pattern according to the following equations.

yi = asin(xi)

for i = 0, 1, 2, …, n – 1,

where a is the amplitude, k is the number of cycles in the pattern, 0 is the initial phase in degrees, and n is the number of samples