Relay
=====
A switch with hysteresis: on\_value once the input reaches on\_at, off\_value once it falls to off\_at.
``relay`` · control · element by element: vectors in, vectors out
.. raw:: html
Relayfn
on_at0.1
off_at-0.1
on_value1
off_value0
Original
Inputs
------
.. list-table::
:header-rows: 1
* - Port
- Type
- Unit
- Components
* - ``u``
- signal
- —
- —
Outputs
-------
.. list-table::
:header-rows: 1
* - Port
- Type
- Unit
- Components
* - ``y``
- signal
- —
- —
Parameters
----------
.. list-table::
:header-rows: 1
* - Param
- Type
- Default
- Options or unit
* - ``on_at``
- number
- ``0.1``
- —
* - ``off_at``
- number
- ``-0.1``
- —
* - ``on_value``
- number
- ``1.0``
- —
* - ``off_value``
- number
- ``0.0``
- —