FB_WhiteNoise (Function Block)
Generates uniformly distributed white noise.
The output is a random value in the range [-Amplitude, +:attr:Amplitude]
on every cycle. Useful for testing controller robustness against measurement noise
and disturbances.
Note
The block is FINAL and must be instantiated, not extended.
Use FB_init to set Amplitude at declaration time.
Extends: FB_SoComponent
Properties
Amplitude
Type: LREAL
Gets or sets the amplitude.
The output is uniformly distributed in [-Amplitude, +:attr:Amplitude].
A value of 0 holds the output at zero.
Methods
FB_init
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
if TRUE, the retain variables are initialized (warm start / cold start) |
|
|
if TRUE, the instance afterwards gets moved into the copy code (online change) |
|
|
Maximum absolute output value. |
Run
Generates the next white noise sample.