PRBS – Pseudo-random binary sequence generator

Block SymbolLicensing group: STANDARD
Qt SVG Document Exported by REXYGEN Studio START BRK y BSY PRBS

Function Description
The PRBS block generates a pseudo-random binary sequence. The figure below displays how the sequence is generated.

image/svg+xml swper seqt waitt valhi val0 vallo START

The initial and final values of the sequence are val0. The sequence starts from this value when rising edge occurs at the START input (off on), the output y is immediately switched to the valhi value. The generator then switches the output to the other limit value with the period of swper seconds and the probability of switching swprob. After seqt seconds the output is set back to val0. A waitt-second period follows to allow the settling of the controlled system response. Only then it is possible to start a new sequence. It is possible to terminate the sequence prematurely by the BRK = on input when necessary.

This block does not propagate the signal quality. More information can be found in the 1.4 section.

Input

START

Starting signal (rising edge)

Bool

BRK

Termination signal

Bool

Parameter

val0

Initial and final value

Double (F64)

valhi

Upper level of the y output  1.0

Double (F64)

vallo

Lower level of the y output  -1.0

Double (F64)

swper

Period of random output switching [s]  1.0

Double (F64)

swprob

Probability of switching   0.0  1.0 0.2

Double (F64)

seqt

Length of the sequence [s]  10.0

Double (F64)

waitt

Settling period [s]  2.0

Double (F64)

Output

y

Generated pseudo-random binary sequence

Double (F64)

BSY

Busy flag

Bool

2024 © REX Controls s.r.o., www.rexygen.com