- 10 bytes * 20,000Hz = 200,000 bytes/s
- 200,000 bytes/s * 10 bits/byte = 2,000,000 bits/s (baud rate) i.e, 2e6.
- The desired baud rate in this case is 2e6 i.e, 2 Mbps.
How can I use a two model approach for signal logging and parameter tuning on a TI C2000?
6 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2020-12-2
编辑: MathWorks Support Team
2023-4-13
I need a faster way to log data in real-time from my model running on a TI C2000 device. Is there an alternative to External Mode?
采纳的回答
MathWorks Support Team
2023-4-11
编辑:MathWorks Support Team
2023-4-13
The two model approach 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:
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. A 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:
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!