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.
你好!
我现在使用HVMotorCtrl+PfcKit_v2.1开发套件调试BLDC电机,软件是CCS5.2.1 2008,
现在想用debug/tools/Graph 功能显示电机的换相步数pwm1.CmtnPointer,代码如下:
...
int16 DlogCh1 = 0;
...
dlog.iptr1 = &DlogCh1;
...
DlogCh1 = pwm1.CmtnPointer;
The graph single time following settings:
但输出的图形是下边这个样子:
正确的图形应该是下边这个样子吧:
高手解答一下我是哪里设置的不对了?
你好!mangui
数据类型设定是正确的,如下:
int16 DlogCh1 = 0;
这两天我再看网上大家的一些说法
第一种:在CCS的老版本(CCS3.3)里边需要把显示的变量也存成数组,并且要配合断点来使用!
第二种:如果直接用graph显示变量,acquisition buffer size 要设置成1,而且要选左移选项(ccs5.2没有左移这个选项)。
以上方法我都试过了,但还是不行!
期待大家继续帮忙解答一下!
参考帖子:http://www.deyisupport.com/question_answer/microcontrollers/c2000/f/56/t/63205.aspx?pi239031348=1