Tones and Noise VI

Generates an array composed of a sum of sine tones, noise, and DC offset.


icon

Inputs/Outputs

  • cbool.png reset signal

    reset signal, if TRUE, resets the phase of each tone to the phase value from the tones array, the seed to the seed control value, and the time stamp to zero. The default is FALSE.

  • ci32.png samples

    samples specifies the number of samples to generate in the output array tones and noise. The default is 1000.

  • c1dnclst.png tones

    tones contains the parameters for each sine tone.

  • cdbl.png frequency

    frequency specifies the frequency of the sine tone in hertz.

  • cdbl.png amplitude

    amplitude specifies the amplitude of the sine tone.

  • cdbl.png phase

    phase specifies the initial phase of the sine tone in degrees. The default is 0.

  • cdbl.png noise (rms)

    noise specifies the rms level of the additive Gaussian noise. The default is 0.0.

  • cdbl.png offset

    offset is the DC offset of the signal. The default is 0.0.

  • cdbl.png Fs

    Fs is the sampling rate in samples per second. The default is 1000.

  • ci32.png seed

    seed, when greater than 0, causes reseeding of the noise sample generator. The default is –1.

    LabVIEW maintains the internal seed state independently for each instance of this reentrant VI. For a specific instance of this VI, if seed is less than or equal to 0, LabVIEW does not reseed the noise generator, and the noise generator resumes producing noise samples as a continuation of the previous noise sequence.

  • i1ddbl.png tones and noise

    tones and noise is the generated output array.

  • ii32.png 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.