blockRealToLogic
Real to Logic converter
Information
Conversion of a real input into a digital output without any delay according to:
condition output
first check: input greater upp lupp
second check: input larger low llow
else lmid
If the signal width is greater than 1 this conversion is done for each signal.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | Signal width | |
| Real | upper_limit | Upper limit | |
| Real | lower_limit | Lower limit | |
| L | upper_value | Output if input > upper_limit | |
| L | lower_value | Output if input < lower_limit | |
| L | middle_value | Output else |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput[n] | x | ||
| Digital.Interfaces.DigitalOutput[n] | y |
Revisions
- September 15, 2004
by Christoph Clauss colors changed
- November 5, 2003
by Christoph Clauss
initially modelled.