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.

[参考译文] TMS320F28027F:Instaspin 通用 GUI

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1121867/tms320f28027f-instaspin-universal-gui

器件型号:TMS320F28027F

您好!

我将 GUI 与电机控制套件和28027F 结合使用。

一段时间前、我修改了 C2000 Instaspin 通用 GUI、因此我在 index.js 文件中添加了一些代码来转换系统值。

 --------

//
//总线电压
//
gc.DataBind 注册表.bind ('widget.ti_widget_numberbox_busvolte.value'、

总线电压:'my_Xds.gMotorVars.VdcBus_kV'//、
// Vd:'my_Xds.gMotorVars.Vd'
}、
函数(value){
return (MyUtil.DivideQ24_multiply1000 (value.BusVoltage));
// var toQ24 = value.BusVoltage/(Math.pow (2、24));
// var result = Math.round (toQ24 * 1000);
//返回(结果);

);

------

我还向项目中添加了一个文件、在此我收集了所有转换函数、例如 、DivideQ24_multiply1000

----------

(function(){
"严格使用";

myUtil ={

乘以_100:函数(oldValue)

VAR 结果= oldValue*100;
返回(结果);
}、

divideQ24_multiply1000:函数(oldValue)

var toQ24 = oldValue/(Math.pow (2、24));
VAR 结果= Math.round (toQ24 * 1000);
返回(结果);
}、

divide1000_multiplyQ24:函数(oldValue)

VAR 除法= oldValue/1000;
VAR 结果=除法*(Math.pow (2、24));
返回 Math.floor (结果).toString();
}、


除以 Q24_two_precision:函数(oldValue)

var toQ24 = oldValue/(Math.pow (2、24));
var n = toQ24.toPrecision (3);
返回(n);
}、

----------

当时工作正常、但现在 GUI 中未显示任何值。

我仍然可以处理所有变量、如 flags。

您是否知道出现了什么问题?

我还找到了一个新的 GUI、但在这里我也遇到了同样的问题:如何转换这些值。

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

    您是否说它在一个时间点工作、但停止工作? 同时发生了什么变化? 对 CCS 版本或任何其他内容进行了任何更改? 对在 F28027F 上运行的应用程序的更改?

    惠特尼