This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Multichannel ADC read using Simulink

Other Parts Discussed in Thread: CONTROLSUITE

Hello all you genius people,

I'm trying to read different ADC values from two different channels of ADC-A using Simulink, however, one channel always seems to "copy" the value of the other. I'm using the F28377S Delfino Launchpad with a simple Simulink model: ADC-A1 and ADC-A2 each connected to a display block, 12 bit resolution, with all parameters same for both channels except for the SOC sources. I have a potentiometer connected to each pin. Both the ADCs are outputting the value from one of the potentiometers while the other potentiometer does not seem to have any affect on the ADCs. 

a) Is it possible to read different values from different channels of the same ADC?

b) If yes, I'm pretty sure it has something to do with ADC pin muxing but I'm super new to the Launchpad, so is there an easy way to do it through Simulink, or can someone guide me through the process?

Thanks!

  • Solomon,

    To answer your first question, absolutely yes it is possible to read different values from different channels of the same ADC. However, there are some additional steps that need to be taken in order to do this. When switching between different channels on the same ADC, you have to make sure that the ADC is not actively converting. Otherwise, as I think you've discovered in your particular case, that you will not end up with the expected results.

    Now, if you feel more comfortable using Simulink, it would be best to direct this type of question to the MathWorks forum as they can provide better expertise on Simulink related questions. However, there are several good examples in controlSUITE that can help you get up and running with ADC conversions. If you want to go the controlSUITE route, please let us know so that you can be provided with additional information.

    Kyle