Quasi Random VI

Owning Palette: Signal Generation VIs

Requires: Full Development System

Generates quasi-random Halton or Richtmeyer sequences, which are low-discrepancy number sequences.

You must manually select the polymorphic instance to use.

Details  

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Halton Sequence

initialize? controls whether the noise sample generator seeds with a new value.

If initialize? is TRUE, the VI updates noise samples according to the value of seed. If initialize? is FALSE, the VI produces noise samples as a continuation of the previous noise sequence. The default is TRUE.
samples specifies the number of samples the VI returns in the output array. The number of samples must be greater than 0. The default is 128.
seed determines the seed to generate the sequence. seed must be a prime number. If seed is negative, LabVIEW takes the absolute value. The default is 3.
Halton Pattern returns a Halton sequence in the interval [0,1].
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.

Richtmeyer Sequence

initialize? controls whether the noise sample generator seeds with a new value.

If initialize? is TRUE, the VI updates noise samples according to the value of seed. If initialize? is FALSE, the VI produces noise samples as a continuation of the previous noise sequence. The default is TRUE.
samples specifies the number of samples the VI returns in the output array. The number of samples must be greater than 0. The default is 128.
seed determines the seed to generate the sequence. seed must be an irrational number. If seed is negative, LabVIEW takes the absolute value. The default is the square root of 3.
Richtmeyer Pattern contains a Richtmeyer sequence in the interval [0,1].
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.

Quasi Random Details

The quasi-random sequence is a sequence with low discrepancy that uniformly distributes in the interval [0,1].

Use a prime number as the seed to generate a Halton sequence.

Use an irrational number as the seed to generate a Richtmeyer sequence.

In the VI, use the initialize? input to generate a long quasi-random noise sequence block-by-block. The following block diagram shows two ways to generate identical 300-sample Halton sequences.