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.
TI的3 相永磁同步电机的传感磁场定向控制手册里面的
1A 级(SVGEN_MACRO 测试)里面的graph波形看不出来
配置如下:
DLOG_4CH dlog = DLOG_4CH_DEFAULTS;
dlog.iptr1 = &DlogCh1;
dlog.iptr2 = &DlogCh2;
dlog.iptr3 = &DlogCh3;
dlog.iptr4 = &DlogCh4;
dlog.trig_value = 0x1;
dlog.size = 0x00c8;
dlog.prescalar = 5;
dlog.init(&dlog);
DlogCh1 = (int16)_IQtoIQ15(svgen1.Ta);
DlogCh2 = (int16)_IQtoIQ15(svgen1.Tb);
DlogCh3 = (int16)_IQtoIQ15(svgen1.Tc);
DlogCh4 = (int16)_IQtoIQ15(svgen1.Tb-svgen1.Tc);
看了网友的做法,还是不行,请问是要对应CMD的里面DlogCh1配置吗?请详细指点一下,谢谢
你好,对程序有做过某些修改吗?以及,你是用的F28035的例程还是F28335的?
如果没什么大修改的话cmd文件应该关系不大。可以直接加载文档里面提供的graph设置:
Setup time graph windows by importing Graph1.graphProp and Graph2.graphProp from the following location C:\TI\ControlSUITE\developement_kits\HVMotorCtrl+PfcKit_v2.0\HVPM_Sensorless_2833x\ . Click on Continuous Refresh button on the top left corner of the graph tab to enable periodic capture of data from the microcontroller.
你好,我这边是拿D:\ti\controlSUITE\development_kits\HVMotorCtrl+PfcKit_v2.1\HVPM_Sensorless_2833x;这个工程进行修改的,拿的是我自己做的板子,除了某些引脚的配置,我想其他应该都没什么不同。
我这边测试了一下,还是没什么反应
请问我需要如何去更改?
这部分代码是根据你参考的帖子里面的修改的吗?
DlogCh1 = (int16)_IQtoIQ15(svgen1.Ta);
我看到我的原始例程里面应该是没有(int16)的,有没有试过换成:
DlogCh1 = _IQtoQ15(svgen1.Ta);
因为graph中的格式是16 bit signed integer。
其他的似乎没看出来什么问题,遗憾的是我现在也不方便测试graph