modelnoiseGen
Noise generator
Extends from Interfaces.RealNinOperation (Real comparison interface).
Information
Description
Model of a noisy signal.
The output ( y ) is the result of an algorithm that produces a sequence of pseudo random values.
The properties of the signal can be modified through the algorithm parameters: amp and X_start.
The output is filtered through a first order low pass filter, with time constant Ts
Fixed Point not available in this model
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | Ts (from RealNinOperation) | 0.1 | sampling time |
| Integer | nInput (from RealNinOperation) | 1 | number of inputs |
| Boolean | useInputs (from RealNinOperation) | true | =true, if inputs are enabled |
| Fixed Point | |||
| Boolean | FixedPoint (from RealNinOperation) | false | Use fixed point real numbers |
| Integer | Nbit (from RealNinOperation) | 16 | Number of bits for representing the real numbers |
| Real | scaleFactor (from RealNinOperation) | 1 | Scale factor for Fixed Point numbers |
| Integer | MAX (from RealNinOperation) | integer(2^(Nbit - 1)) | maximum number that can be represented with Fixed Point notation |
| Integer | MIN (from RealNinOperation) | -integer(2^(Nbit - 1)) + 1 | minimum number that can be represented with Fixed Point notation |
| Noise generator | |||
| Real | amp | 0.01 | Amplitude |
| Real | Tf | 1 | First order filter time constant |
| Real | X_start | 1 | Initial value |
| Algorithm | |||
| Real | m | 2^31 - 1 | coefficient |
| Real | a | 7^5 | coefficient |
| Real | c | 10 | coefficient |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput[nInput] | u (from RealNinOperation) | input vector | |
| Modelica.Blocks.Interfaces.RealOutput | y (from RealNinOperation) | output |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Integer[nInput] | Ufp (from RealNinOperation) | floating point converted input | |
| Integer | Yfp (from RealNinOperation) | floating point converted output |
Revisions
- Industrial Control Systems (v 1.0.0) : April-May 2012
- List of revisions:
- 11 May 2012 (author: Marco Bonvini)
- Main Authors:
- Marco Bonvini; <bonvini@elet.polimi.it>
- Alberto Leva <leva@elet.polimi.it>
- Politecnico di Milano
- Dipartimento di Elettronica e Informazione
- Via Ponzio 34/5
- 20133 Milano - ITALIA -
- Copyright:
- Copyright © 2010-2012, Marco Bonvini and Alberto Leva.
- The IndustrialControlSystems package is free software; it can be redistributed and/or modified under the terms of the Modelica license.