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.
Tool/software: TI-RTOS
hello
i am using tms320f28335 experimental kit / CCSv6 for real time implementation of MATLAB simulink model.
build, load and run is successful .
But the problem is :
output, as we see in the scope of simulink model is not accurate as that of DSO (digital signal oscilloscope).
I mean the output at the pins of experimantal board is not same as that of scope of simulink model.
Actually the time resolution is not same
waveform of pulses that came in 0.02 sec in simulink scope is actually coming in more that 5 sec on the DSO.
I think dsp processor is taking long time to run the model. In this case real time implementation is not possible.
Please suggest, what can be done
Thanks
satwant
satwant singh2 said:i am using MATLAB 2016a.
I've personally used MATLAB 2016b and I didn't face any such issues. Can you check with the Matlab forum as help over here for Simulink based code generation is very minimal.
Regards,
Gautam
Hi Satwant,
You can get better assistance via MathWorks Technical Support, since it was MathWorks to created this solution.
It is possible to create a model that is too computationally intensive to run in real-time on HW. It is also possible that the configuration isn't correct - this is where MathWorks Tech Support can assist.
Cheers,
-Brian
satwant singh2 said:Could u please tell what is the sample time and dsp board u are using in real time simulation with Matlab 2016b.
I've used All the launchpads with 2016b. More relevant to your case would be Launchpads based on F28377S & F28379D. Do check my youtube channel:
https://www.youtube.com/channel/UC0vWIpaMzxZ0RqT4r4Kp75w
Regards,
Gautam
satwant singh2 said:As u suggested the F278377D and one more processors. they are of 200MHZ.
F28379D is what I suggested and not the above part :)
satwant singh2 said:Is there any processor (launchpad) more than 200 MHz by texas insturments.
Nope! F28379D has C28x core and CLA and both have the operating frequency of 200MHz each. Combined can perform 400MIPS.
sir
Does energia supports F28379D.
I m not getting this board in tools>boards>boards manager in energia software pane.
Thanks
Sir
Actually the problem is in the sample time.
tms320f28335 (150MHZ) is unable to handle real time data having resolution of 2 micro seconds.
As i think, MATLAB/SIMULINK solution is OK but TI should think about the more advanced processors.
Thanks
sir
i want to know whether any kind of coding tutorials (using CCS) for texas dsp processors are present on intenet/youtube, so that processor can be full utilized upto its capacity.
Thanks
satwant singh2 said:i want to know whether any kind of coding tutorials (using CCS) for texas dsp processors are present on intenet/youtube, so that processor can be full utilized upto its capacity.
I'm not sure of coding tutorials but you check out the workshop materials:
They're pretty old but can refer.
satwant singh2 said:
Can we use both CMPA and CMPB values to control ePWM1A Or CMPA can only be used to control ePWM1A?
CMPA is the duty cycle register in clocks/percentage for ePWMxA module and CMPB for ePWMxB. I hope you got my point!
sir
How can i convert the usec. time duration in clock cycles (Any formula for that)?
(dsp28335)
Thanks
Hi,
Check this video of mine where I configure ePWM module in simulink:
Regards,
Gautam