Important Question Processor In the Loop Application using C2000 Embedded Coder
2 ビュー (過去 30 日間)
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?