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.
在CCS5.4仿真环境中,做Ti的FOC例程,graph的显示的波形杂乱,不知道是采样频率还是哪个值设置的不对?
请问您用的哪个例程?以下帖子有graph使用介绍,您参考下:
http://www.deyisupport.com/question_answer/microcontrollers/c2000/f/56/t/63205.aspx?pi239031348=1
从纵坐标的值来看,可能是data type不太合理。
另外,sampling rate Hz一般为1
一般设置display data size和acquisition buffer size一样大。
如果还是不对,建议你贴上相关代码和graph设置截图,方面我们帮您定位问题。
您好!
我绘制锯齿波rampgen函数的波形,graph设置如图二所示。可以显示部分有效波形,但是后面的数据无效,请问应该怎样设置,用同样的设置显示正弦波形就无法正常显示。
rg1.Freq = rc1.SetpointValue;
RG_MACRO(rg1)
// ------------------------------------------------------------------------------
// Measure phase currents, subtract the offset and normalize from (-0.5,+0.5) to (-1,+1).
// Connect inputs of the CLARKE module and call the clarke transformation macro
// ------------------------------------------------------------------------------
clarke1.As = _IQmpy2(_IQ12toIQ(IU_ADC)-offsetA); // Phase A curr.
clarke1.Bs = _IQmpy2(_IQ12toIQ(IV_ADC)-offsetB); // Phase B curr.
CLARKE_MACRO(clarke1)
DlogCh1 = (int16)_IQtoIQ15(clarke1.As);
DlogCh2 = (int16)_IQtoIQ15(svgen1.Ta);
DlogCh3 = (int16)_IQtoIQ15(rg1.Out);
DlogCh4 = (int16)_IQtoIQ15(speed1.ElecTheta);
acquisition buffer size是指一次读取的数据长度,您可以试试把它改为200,因为你前200个数据是对的,display data size建议与它保持一致。
另外,您可以打开view->Memory browser,输入DLOG_4CH_buff3,看一下实际的数据是多少?