Digital Input
Reads a digital input pin.
Description
A 'Digital Input' block reads the input level of the selected pin. If the
input level is high, '1' is the output, otherwise '0'.
Output
'1' for high, use '0' for low.
The used datatype is of boolean.
Parameters
- Input pin
- Selects the digital input pin.
- Configuration
- Select if the input is floating or internally connected to a pull-up or pull-down resistor.
- Sample time
- Sample time of the block. The Sample time (in seconds) defines
the rate at which the block is visited by the real-time scheduler of
the target. The value of the Sample time has to be an integer multiple
of the base sample time of the model.