Important Question Processor In the Loop Application using C2000 Embedded Coder

조회 수: 5 (최근 30일)
Hello ,
I want to make PIL implementation using Matlab C2000 embedded coder
I successfully read EPWM value duty cycle(cmpa and time counter value ) according to this value I generated PWM on simulation beside on the Launchpad pin using EPWM. No problem here.
But I realized that there is no any input of the ADC block . According to PIL application voltage is getting from the voltage divider of plant circuit like a buck converter etc. But ADC block only accept the value via pin of the launchpad or microcontrollers.
For this reason I didn’t get the voltage value from the voltage divider circuit and insert it to ADC block. I want to implement this condition . I don’t want modeling a ADC block using matlab blocks , I want to use C2000 ADC block in order to analyze as if real value getting from voltage divider and adc makes sample,hold,quantization processes like a real application.
This is successfully done by PLECS like following figures;
You could see the simulation values(sensed values) enter the ADC block.
The inside of the adc block as follows;
this is an ADC type the way i want it to use my matlab PIL application(processor in the loop) . But as I mentioned above
The ADC block does not have no inputs in MATLAB like an ADC block have inputs as in the PLECS.
I don’t want to use PLECS because of the PIL modeling and out file creating difficulties(need to design some codes using code composer studio)
Compared to PLECS, Matlab out file generation and interface more simpler.
1-Do you have any works on this topic?
2-Are there any methods you can suggest?
3- Will there be an improvement in this issue in the matlab c2000 embedded coder infrastructure in the coming years?
Burak
  댓글 수: 3
Venkatesh Chilapur
Venkatesh Chilapur 2020년 10월 1일
Here are list of examples that makes use of the SOC blockset that help one simulate the ADC, ePWM, IPC blocks...
Regards,
Venkatesh C

댓글을 달려면 로그인하십시오.

답변 (1개)

Aditya Padmanabha
Aditya Padmanabha 2021년 10월 18일

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by