You are now following this channel
- You will see updates in your content feed.
- You may receive emails, depending on your notification preferences.
You are now following this topic
- You will see updates in your content feed.
- You may receive emails, depending on your notification preferences.
closed loop in the c2000 platfrom using MAtlab
i am confused about how to run as a closed loop. how to do closed-loop control of phase shift using matlab. i am using c2000 embedded by Matlab.
Pin this topic?
This action will pin this post making it appear at the top of the recent discussion pages in the community.
Permanently delete this topic?
This cannot be undone.
Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Permanently delete this reply?
This cannot be undone.
Hi friend,
We do have a couple of examples that explain how to perform closed loop control using c2000 platform. These are closed loop motor control, dc-dc buck converter control, solar pv inverter control, etc.
More details can be found at following location: https://in.mathworks.com/help/supportpkg/texasinstrumentsc2000/modeling.html
If you are looking for something specific, then I'd request you to provide more details.
Permanently delete this reply?
This cannot be undone.
Thanks for the reply. I needed to off SW1 in the control card and short the jumper.
Permanently delete this reply?
This cannot be undone.
My question is I used 50 bit. What would be dead time.
Permanently delete this reply?
This cannot be undone.
Moreover using in external it always give error in between .
Permanently delete this reply?
This cannot be undone.
Hi buddy,
I think we need more information on your questions, as this thread is too long to keep track of.
Would encourage you to please write more details to us at: support@mathworks.com
Permanently delete this reply?
This cannot be undone.
Thanks for your kind reply. I interfaced MATLAB with C2000 and got the desired results as well. but i don't know how to tune the parameter online. i mean what are set up needed to achieve those. do we need to follow this link https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/set-up-the-hardware-for-can-communication-between-the-target-and-the-host-computer-.html?fbclid=IwAR1ak5B_ndUv8htt1_9vCCmW0BlDrh3orVz4c2VmPPNopYkJz5SjCQmOMck but i am confused where to install Vector Hardware
Permanently delete this reply?
This cannot be undone.
Hi friend,
If you are working with CAN based communication, then you might need an additional hardware that communicates CAN messages to USB on your PC/Laptop. Vector is one such third-party that manufactures hardware required for CAN communication.
However, you can also use serial communication to do the same job. This is possible using the same hardware available with you, with the same cable used to download the programmes (*.out or *.hex files) on C2000 hardware.
When using serial, there are two methods to perform parameter tuning:
1) Send / Receive Serial messages from C2000 targets and run a "host model" on simulink. Some of examples mentioned above, use the same facility to change parameters on the targets. e.g. https://in.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/dc-dc-buck-converter.html
2) Use "External Mode". This is where you run the target model in simulink and change parameters "online". More details are described here: https://in.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/parameter-tuning-and-signal-logging-with-serial-external-mode.html
I hope this was helpful.
Permanently delete this reply?
This cannot be undone.
Thanks for the reply. Yeah, you are right i ill be using my usb to communicate between the DSP and my laptop. Currently, I am working on Dual Active bridge and i got the desired results in open loop by using CCS and .out extension. but instead of changing the duty cycle from the model and again build it again anad again. i wanted to change it online so that it can be loaded to the DSP F28335 experimental kit without building again. what would be the procedure to do that.
Permanently delete this reply?
This cannot be undone.
Hi,
As I said, there are two ways to do this. You'd get more familiar with them once you go through the links above.
The following videos may give you an idea of how it's like:
1) https://in.mathworks.com/matlabcentral/fileexchange/61420-dc-dc-buck-converter-example (Watch 7min onwards and understand how parameters are tuned).
2) https://www.youtube.com/watch?v=bgVpU-WhUKY
To know more about each method, please go through the links provided in the earlier reply.
Hope it helps.
Permanently delete this reply?
This cannot be undone.
the example for external mode giving error Failed to connect to the target. A time-out occurred while waiting for the connection response from the target. Possible reasons for the time-out:
Error occurred while executing External Mode MEX-file 'ext_comm': Failed to connect to the target. A time-out occurred while waiting for the connection response from the target. Possible reasons for the time-out: a) The target is not switched on. b) The target is not connected to your host machine. c) The application for the model is not running on the target. You might have clicked the Stop button. If the Run button is not dimmed, click it. Otherwise, click the Build button, which downloads and runs your application on the target. Component:Simulink | Category:Block diagram error Unable to connect to the 'TI Delfino F2833x' target for 'c28x_serial_ext'.
Permanently delete this reply?
This cannot be undone.
Thanks for all your reply. I watched every video. i just need to know using SCI transmit and receive to see the actual hardware or online parameter change. which in no video they told in details. the video is more related tp application instead of the block and how the block works with each other.
Permanently delete this reply?
This cannot be undone.
Hi buddy,
1) The serial transmit and receive blocks are communicating with each other. Here, the target model in c2000 host is sending & receiving data with a host model running in your PC/Laptop via serial communication. I think it'd be more clear if you can try some examples. I think the one on the original link might be a good start. https://in.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/dc-dc-buck-converter.html
In case if you require more guidance, we'd be happy if you can get in touch with the support email ID provided below.
2) The error you've received in external mode requires further info e.g. version of MATLAB & Simulink, CCS, OS, etc. to investigate more on this. I would encourage you to write to support@mathworks.com where you can share more of these details.
Permanently delete this reply?
This cannot be undone.
I have sent the message. Although i could run closed loop from the video. but i am always agettign error .
* LOAD & RUN DONE. ### Successful completion of build procedure for model: exter_comm ### Creating HTML report file exter_comm_codegen_rpt.html Build process completed successfully Error occurred while executing External Mode MEX-file 'ext_comm': Failed to connect to the target. A time-out occurred while waiting for the connection response from the target. Possible reasons for the time-out: a) The target is not switched on. b) The target is not connected to your host machine. c) The application for the model is not running on the target. You might have clicked the Stop button. If the Run button is not dimmed, click it. Otherwise, click the Build button, which downloads and runs your application on the target. Component:Simulink | Category:Block diagram error Unable to connect to the 'TI Delfino F2833x' target for 'exter_comm'.
Permanently delete this reply?
This cannot be undone.
Hi,
As I've already mentioned, we'll need more details to resolve this error. Request you to write to support@mathworks.com.
Permanently delete this reply?
This cannot be undone.
i am attaching file as well.
Permanently delete this reply?
This cannot be undone.
in the video https://www.youtube.com/watch?v=CstjgrGR7dY&t=444s
the model Software implemetation model for TI F28379D LaunchPad with BOOSTXL-BUCKCONV In the model i can see it has been used run as external ? Am i correct ? then the parameter have been tuned with other block. so which they build first and how. ?
Permanently delete this reply?
This cannot be undone.
It appears that the question is already answered in the attachment. Or I didn't get your question. Would it be possible for you to elaborate more?
Permanently delete this reply?
This cannot be undone.
Thanks for the reply. how could i know deadtime related to 12bit number?
Permanently delete this reply?
This cannot be undone.
Hi,
Although you can do so, the model in the video is not running in external mode.
1) The model on the left is built and downloaded to the target.
2) The model on the right is running in normal simulation mode with serial data transfer.
The documentation on the following link clarifies this further. Also, there are step by step instructions to set-up serial communication. https://in.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/dc-dc-buck-converter.html
Hope this helps.
Posts by this author
-
Discussion
-
Discussion
-
Discussion
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)