modelPRTS
Extends from Modelica.Blocks.Interfaces.SO (Single Output continuous control block).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | amplitude | 1 | Amplitude of signal |
| SI.Frequency | freqHz | Frequency of signal | |
| Real | offset | 0 | Offset of output signal |
| SI.Time | startTime | 0 | Output = offset for time < startTime |
| Real[integer(3^nBits - 1)] | mls | TRANSFORM.Math.max_len_seq_ternary(seed, generator, bias) | |
| Sequence | |||
| Real | bias | 0 | Bias from nominal middle value of signal |
| Integer | nBits | 3 | Sequence bit length |
| Integer[nBits] | seed | cat(1, {-1}, fill(1, nBits - 2), {0}) | Seed sequence array of -1, 1, and 0, size(seed) = nBits |
| Integer[nBits] | generator | if nBits == 3 then {1, 2, 2} elseif nBits == 4 then {2, 1, 1, 1} elseif nBits == 5 then {0, 2, 1, 1, 2} elseif nBits == 6 then {1, 1, 1, 0, 1, 1} elseif nBits == 7 then {2, 1, 1, 1, 1, 1, 2} elseif nBits == 8 then {2, 1, 2, 1, 2, 1, 1, 1} else fill(0, nBits) | Generator for sequence. size(generator) = nBits |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from SO) | Connector of Real output signal |