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.
MathWorks Embedded Coder with the MathWorks TI C2000 Hardware Support Package allows automatic build and execution on C2000 hardware from models developed using MATLAB and Simulink.
This is the fastest way to log data in realtime. In the two model approach, the idea is to create two models, one that runs on the target and sends data to serial. The second one runs on the host and gets data from the target. Here is an example of DC DC buck converter that takes this approach.
Differences between External mode and two model approach
Two Model approach
Data logging supports up to a maximum rate of 20kHz.
Data transfer supports up to a maximum rate of 200kHz.
Ideal for 4 to 40 signals.
Ideal for up to 3 signals.
Additional processing required by the target for external mode.
No additional processing is required by the target.
Extra buffer needs to be allocated by updating "--heap_size" parameter in the configuration parameters.
No need to allocate extra buffer size.
When using the two model approach
The number of signals that can be logged depends on the baud rate and the rate at which the data is transferred. For example, consider that we need to transfer 10 bytes of data at 20kHz.
On the same lines, using two model approach, the data can be transferred at a higher rate of 200KHz. Maximum of 3 Uint16 signals can be transferred at a rate of 200KHz if the baud rate is configured as 12Mbps.
Details on how to use the two model approach are available here.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.