Digital Output

Controls a digital output pin.

Description

A 'Digital Output' block sets the output level of the selected pin. If the input is '1' the output is high, if the input is '0' the output is low.

Input

Use '1' for high, use '0' for low.
The used datatype is of boolean.

Parameters
Output pin
Selects the digital output pin.
Configuration
A open drain output is floating when high. A push-pull output is connected to Vcc when high.
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.