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.

HVPM_Sensorless_2833x例程LEVEL1中DLOG_4CH用graph显示波形错误求助!!!试了以前帖子的方法也不行!

参考了www.deyisupport.com/.../142898.aspx 帖子的设置,也没有出来预期波形。

关于DATALOG的设置如下:

int *iptr1; /* Input: First input pointer (Q15) */
int *iptr2; /* Input: Second input pointer (Q15) */
int *iptr3; /* Input: Third input pointer (Q15) */
int *iptr4; /* Input: Fourth input pointer (Q15) */

// Initialize DATALOG module
dlog.iptr1 = &temp_buf1;
dlog.iptr2 = &temp_buf2;
dlog.iptr3 = &temp_buf3;
dlog.iptr4 = &temp_buf4;
dlog.trig_value = 0x1;
dlog.size = 0x400;
dlog.prescalar = 1;
dlog.init(&dlog);

/* select which of the variables are behing displayed trough data LOG */
temp_buf1 = (int)_IQtoIQ15(rg1.rmp_out);
temp_buf2 = (int)_IQtoIQ15(svgen_dq1.Ta);
temp_buf3 = (int)_IQtoIQ15(svgen_dq1.Tb);
temp_buf4 = (int)_IQtoIQ15(svgen_dq1.Tc);

缓冲区长度400.Q(15)

以上是两种配置下的波形,区别在于start address,其他配置一样,但出不来马鞍形波。

请各位老师帮忙指导下,先谢谢各位了。

  • 这是另一个波形

  • 你好,看了你参考的帖子,感觉你们用的例程一样,但是都是经过自己修改的吧?参考帖子中的DLOG_4CH_buff1起始位置在程序中没有体现具体位置,不知道你的程序里是否有用这个地址?但应该也不是“temp_buf1”(temp_buf1 = (int)_IQtoIQ15(rg1.rmp_out);),“temp_buf1”也是用的其他位置的地址,可以看看你的程序里是不是还有别的地方的程序可以作为起始地址的。
  • 感谢您的回复。
    我查看了DLOG4CHC.ASM文件,定义如下:
    ; External Reference
    .def _DLOG_4CH_update
    .def _DLOG_4CH_init

    ; Data log buffer definition
    BUFF_SIZE .set 400h

    DLOG_4CH_buff1 .usect "DLOG", BUFF_SIZE
    DLOG_4CH_buff2 .usect "DLOG", BUFF_SIZE
    DLOG_4CH_buff3 .usect "DLOG", BUFF_SIZE
    DLOG_4CH_buff4 .usect "DLOG", BUFF_SIZE

    另外cmd文件,有:
    PAGE 1 :
    DLOGSPACE : origin = 0x100000, length = 0x010000

    其他位置没有相关定义了,请问DLOG_4CH_buff1 的具体位置要在哪里找到?
  • 把所有关于DATALOG的设置都换成了与例程完全一样,最终得到了波形。考虑是由于修改了CMD文件使得数据存储空间重叠,而得不到想要波形。此外,关于figure的参数设置是没错的,可供大家参考。
  • 感谢反馈。