What is the idea behind data processing for SCI communication in DC/DC Buck Converter Example?
Show older comments
Dear Antonin, firstly thank you a lot for your model Digital DC/DC Buck Converter Voltage Mode Control (VMC) https://goo.gl/VkdvuD I learnt myself a lot from that model. But there is still one more thing I don't understand. In your model, for target f28377S_DCDC_Buck.slx in subsystem "PI_controller_ISR there is a subsystem Serial Send. Inside that subsystem, I was able to understand everything except: merge blocks and following While Iterator Subsystem. Could you please provide me with the idea, what is happening inside of these blocks? What is the idea in general? You did some data processing, but I don't really understand why. From your video regarding this model, I understand that Simulink is good at handling of big data blocks at low sampling time, whereas target processor is good at handling of small data blocks at high sampling time. But I don't know how to do that. Thanks in advance for your answer. Karol
Accepted Answer
More Answers (3)
Karol Kyslan
on 9 Dec 2018
0 votes
Burak Caykenari
on 15 Jul 2020
0 votes
Hi Antonin and Karol ,
I understood almost all the information you provided except 'When the counter is different than 0, I need to send only the 2 signal data points.' . I watched the related video but I did not understood this sentence. Counter counts up to 12.000 . Then it reaches this point data will be sent. Therefore 4 times loop are implemented. (2 datas , 2 delimiters(SS,EE))
Other conditions there are no any header (SS) and terminator (EE) informations ,instead this you sent 00's . For this reason the iteration loop number is 2(2 data values). For this reason host will not understand the information(because there are no any terminator ,header characters ) and data will not be received by the host. Isn't it ?
If it's true , why you sent 2 datas in this case ? Because data will not be received by the host since there is no header and terminator informations ? Can you explain why do 2 data informations sent in this situation ? Does it make sense ?
Thank you so much .
Burak
3 Comments
Antonin
on 15 Jul 2020
The data is sent every time step and accumulated on the host. Only when the counter equals 0, I send the delimiters in addition to the data for this time step so that the host knows the end of the packet, and the begining of a new packet. For the other condition (counter is not 0), I don't send anything for delimiters, the "for loop" stops at 2 data points, the "for loop" increment is based on the size of the vector, which changes depending on the value of the counter. The host has all the data points at every time step, there is no data loss and you can visualize all the data in the host model in Simulink.
I hope it helps,
Antonin
Moinul Shahidul Haque
on 17 Jul 2020
Hi Antonin,
I have learnt a lot studying your buck model. I have a couple of question.
- in the C2000_Host_read_12M, voltage demand is multiplied by 16383/6.0909; P gain and I gain are multiplied by 16383. I would greatly appreciatre if you could explain why multiplication is done.
- I want read the error and voltage reference using simulink while the F28379D is running. I have convert all the data type as int16. I can read the error and adc values but cannot read the voltage reference. I am wondering if this is possible? If yes, I would appreciate if you could help me with that
R.Y.SH
on 20 May 2021
hi, have you got answer for your first question (in the C2000_Host_read_12M, voltage demand is multiplied by 16383/6.0909; P gain and I gain are multiplied by 16383. I would greatly appreciatre if you could explain why multiplication is done. )
Hassan Abouobaida
on 24 Aug 2020
0 votes
Hi Antonin,
Thank you very much Mr Antonin for your relevant explanations about the sampling and the sending of data via the COM PORT, it is very interesting what you have just explained. But I have a few questions that I can't understand
- The Launchpad F28379D is connected to analog input ADCIN_A4 which contains the real signal (traingular) which represents the current signal passing through the inductor so you preferred to transmit the average or filtered current available at the analog input ADCIN_C5 !!
- the signal received by the exposed method (sending of data packet 12000 x 2) allowed to transmit the signal but the received shape is distorted, the signal has lost its triangular shape,
- the time displayed does not correspond to the real time on the Scope !!
- Why the real time is not used for the "real time" operation and the data LOGGING on the scope directly without going through the COM port !!
Thank you very much for your contribution in this discussion.
Communities
More Answers in the Power Electronics Control
Categories
Find more on General Applications in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!