C2000 Host-Communication latency

2 views (last 30 days)
Gu-Cheol Jeong
Gu-Cheol Jeong on 6 Jul 2023
Answered: Animesh on 14 Aug 2023
Hi all,
I've run the motor through the "Field-Oriented Control of PMSM Using Quadrature Encoder" example.
My system setup is LAUNCHXL-F28069M and BOOXTL-DRV8301 setup.
The problem is there is the latency between host and target model. (If I send the signal "1" to the target and that number is received back from the target and it takes around 1 second. The worse thing is this latency increase while the running time increase.
For example, there is
0.9688s latency at 7.86seconds,
1.0585s latency at 31.1185 seconds, and
1.3104s latency at 66.71 seconds.
Could you let me know how I can decrease this latency?
Thank you for your time and help!
Best regards,

Answers (1)

Animesh
Animesh on 14 Aug 2023
Hi Gu-Cheol,
Latency between the host and target model can be caused by various factors. Here are a few suggestions to help decrease the latency:
  1. Reduce data size: If you are transmitting large amounts of data between the host and target, consider reducing the data size by using compression techniques or sending only essential information. This can help reduce the time required for data transmission.
  2. Minimize processing time: Analyse the target model's code and identify any areas that might be causing excessive processing time. Look for opportunities to optimize algorithms, reduce computational complexity, or streamline the code to improve overall performance.
  3. Optimize hardware setup: Ensure that your hardware setup is properly configured and optimized for low-latency communication. Check for any potential bottlenecks, such as slow interfaces or inefficient connections, and make necessary adjustments to improve performance.
Thanks,
Animesh Jha

Categories

Find more on Multicore Processor Targets in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!