Generates a pseudorandom pattern of ones and zeros, where the probability of generating a one is one probability and the probability of generating a zero is (1–one probability).

If one probability is 0.7, each element of signal out has a 70% chance of being one and a 30% chance of being zero.


icon

Inputs/Outputs

  • cbool.png reset signal

    reset signal, if TRUE, resets the seed to the seed control value and the time stamp to zero. The default is FALSE.

  • cdbl.png one probability

    one probability specifies the probability of a given element of signal out being true (1). The default is 0.5.

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

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. With the following exception, this input provides standard error in functionality.

    This node runs normally even if an error occurred before this node runs.

  • cnclst.png sampling info

    sampling info contains sampling information.

  • cdbl.png Fs

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

  • cdbl.png #s

    #s is the number of samples in the waveform. The default is 1000.

  • iwdtint.png signal out

    signal out is the generated waveform.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.