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.

[参考译文] TMS320F280025C:如何将数据吞吐量增加到 GCS v3?

Guru**** 2589265 points
Other Parts Discussed in Thread: TMS320F280025C

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1336919/tms320f280025c-how-to-increase-data-throughput-to-gcs-v3

器件型号:TMS320F280025C

我将器件连接到 GCS、但 由于 错过了数据点、我希望提高数据吞吐量。 我已经对协议和数据进行了优化、以减小吞吐量大小、但这仍然不足以实现我的目的。  我猜是、 传输不是主要的限制因素、而是结构中数据被拉取的更新速率、因为我在增加固件中的日志缓冲区时看到了一些改进。
但由于目标的存储器有限、我无法进一步增加缓冲区大小。
是否有任何选项可以改善或配置使用此设置从目标轮询数据的方式?  
我在另一个问题中介绍了设置:
设置说明链接

一般情况
:您建议使用什么方法实现最高的数据记录采样率?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    器件型号:TMS320F280025C

    我想以 GCS 图形显示来自目标器件的一些数据。 我将使用 GCS_GUI 的 v3。

    包含两个2data 图的图形 XML 片段

    <gc-widget-plot id="plot" plot-title="Speed from Hall Sensor" x-axis-title="TickTime" y-axis-title="Speed Hz">
       <gc-widget-plot-data-points-2d id="data2d" capacity="1000" mode="markers" line-shape="vh" line-dash="dashdot"></gc-widget-plot-data-points-2d>
       <gc-widget-plot-data-points-2d id="data2d_2" capacity="1000" mode="markers" line-shape="vh" line-dash="dashdot"></gc-widget-plot-data-points-2d>
    </gc-widget-plot>

    我根据示例使用绑定、并在对以下代码进行试错后使其正常工作

        /* Wait for widget and target models to be ready */
        await bindingRegistry.waitForModelReady('widget');
        await bindingRegistry.waitForModelReady('pm');
    
        //binds to global variable log_data in the the firmware
        bindingRegistry.bind('widget.data2d.point', 'pm.log_data' , function(data){
            //extracting new data of 1st channel from the log buffer supplied
            //return value is an array of datapoints e.g. [[0,123],[2,124],[3,132]]
            return getNewLogData(data,0);
            }
        );
        
        bindingRegistry.bind('widget.data2d_2.point', 'pm.log_data' , function(data){
            //extracting new data of 2nd channel from the log buffer supplied
            //return value is an array of datapoints e.g. [[0,123],[2,124],[3,132]]
            return getNewLogData(data,1);
            }
        );
    

    我还使用 GUI 链接配置将转盘和测量仪表连接到固件中的某个值。

    当我用铬合金运行它时、它都能正常工作。  
    将其导出为 独立应用程序标盘和测量仪表仍然可以工作、但图形不工作。 调试显示未调用绑定函数。 绑定似乎不起作用。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Marco:

    抱歉、根据您的帖子、我不清楚什么是 GCS GUI? 它是否与使用 CCS 相关? 您尝试从器件运行的代码是否正在执行?