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.
Hello,
I need help, i can't see the real value on my scope on Simulink I do not know why.
The idea is to read an analog value (temperature sensor) and dispale it in real time on Simulink with the Scope.
The scope always displays zero.
Rida,
I may need the MW team to take a look, but I think there is a different block to read the ADC results. The block above showing A_IN15 I believe this is to insert a simulated analog signal onto the ADC_AIN15 pin. To read SOC0, you should see a block with outputs labeled ADCA_RESULT0-xx; and you will want to read ADCRESULT0 since SOC0 is sampling the channel of interest.
Best,
Matthew
Rida,
Did you try the shipping example?
https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/adc-pwm-synchronization-via-adc-interrupt.html
Can you read an ADC via CCS? If so, then we know your board is working correctly
---
This block does work, assuming you have input on the correct pin and configured it correctly in Simulink.
If you continue to struggle, you may wish to contact MathWorks Tech Support directly.
cheers,
-Brian
Hello,
Thank you for answering me Brian,
I tried this example, I can see the output signal on my oscilloscope, I put 3.3V in input ADCIN15 and as an ouput I have a PWM signal with 3.3V in Amplitude.
But on my scope Simulink, always I have zero !!!
I don not why !
Sounds like some sort of config error; this block does compile and run properly on C2000 devices. There are thousands of users who have gotten it to work.
Does the shipping example work?
---
If you cant figure it out, contact MathWorks Tech Support - they should be able to assist.
-b
Hello Rida,
I have faced the same problem and did not get yet how to see the values in scope.
Have you got any solution?
My ADC blocks take in signal which I can see in oscilloscope but not in scope.
Please let me know if you have found anything.
Regards
Hello Fahad,
Can i know exactly what do you want to display ? and what did you made as a test ?
Rida