Analog Input
Reads an analog input pin.
Description
A 'Analog Input' block reads the 12-bit analog to digital conversion results of the selected pin.
Output
12-bit conversion results value (0-4095)
The used datatype is uint16.
Parameters
- Input pin
- Selects the analog input pin.
- Use oversampling and filter (E407 and P405 only)
- When this option is turned on the ADC will sample 10x faster than the base sample time and
the results are filtered with a median/average filter. Note that this can cause a phase shift.
The filtering takes quite some CPU time and therefore it is recommended to use this only when
really necessary.
- 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.