Read ADC data values from ADC Interface block
SoC Blockset / Processor I/O
The ADC Read block converts the message received from the ADC Interface block to a signal that can be used by an algorithm. The data type of the output signal is the same as the data type in the contained data massage.
Data type — Data type of ADC measurements received
double (default) |
Select the data type of the input data. Match this data type with data type of the ADC hardware.
Sample time — Sample time
-1 (default) | nonnegative scalar
Specify how often the scheduler runs this block. If this value is
-1 (default), the scheduler assigns the sample time for the
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
When deployed to a supported hardware board, this generated code for this block reads the ADC registers in the MCU for the specified ADC module. For more information on configuring the register settings, see Peripheral Configuration.
Supported hardware boards include the
TI Delfino F2837xD and
TI Delfino F2837xD LaunchPad from the SoC Blockset™ Support Package for Texas Instruments™