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.

[参考译文] TMS320F28379D:为 GUI Composer v3 小工具预处理全局易失性

Guru**** 2546020 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1566777/tms320f28379d-pre-process-global-volatile-for-gui-composer-v3-widget

部件号:TMS320F28379D


工具/软件:

我不知道如何访问 javascript 中的流数据、然后才能在构件中使用该数据。  

我可以复制小部件到小部件绑定、如  此处所示。 但是 我想在将微控制器数据放入小工具之前对其进行一些预处理。  该目标看起来非常合理且是必要的、因此我只能从微控制器发出 ADC 计数、并且只能转换到 GUI 中的其他单元。  

在 GUI Composer  ‘v3 文档第 3.2 节中、建议使用 bindingRegistry.bind(‘swidget.gc_widget_led.on '、<eps> treaming.led_on ')行; 我添加了  在  index.gui 中的 gc-target-connection-manager 标签内。 然后使用

bindingRegistry.bind ('tempor_2.value'、'streaming.g_tempC'、function (value){return value;});

我的微控制器代码定义了 易失性浮点 g_tempC = 0.0f;稍后会读取其中的内置热传感器。  

温度计_2 小工具只显示 0、没有任何类型的错误。 同时、另一个值属性绑定到“pm"且“且 g_tempC 的温度计按预期工作。 在 YouTube 示例和 文档的第 5.4 节中、他们使用  document.addEventListener(GC-DataBind-ready..但这是否仅对 v2 组件有必要?

我尝试在浏览器中使用开发工具进行调试、但未成功。  

我使用的是 XDS100v2 USB Debug Probe。  

我想知道这是否与 中的 ACTIVE-CONFIGURATION=“XDS+PM"有关“有关  gc-target-connection-manager definition in index.gui? Because I added streaming like "xds+pm+streaming" but then I get configuration errors. Thanks if anyone can give me some tips. 

Update: I was worried my first post on this issue was not well phrased enough, so I made this post in addition. Apologies for the double post.