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.
msg — Data message from register
This message port receives ADC value messages from a connected ADC Interface block. The messages process when the Task Manager block triggers a task containing the ADC Read block. For more information on messages, see Messages.
data — Output signal
This port emits a measurement from the ADC Interface block.
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 Hardware Mapping and Hardware Mapping Peripherals for Texas Instruments C2000 Processors Properties.
Supported hardware boards include the
TI Delfino F2837xD and
TI Delfino F2837xD LaunchPad from the SoC Blockset™ Support Package for Texas Instruments®
Introduced in R2020b