Other Parts Discussed in Thread: CONTROLSUITE
Hi, every one
I am trying to observe a floating type data in my programme using Datalog module. But somthing is wrong, I observe a sine waveform in the CCS graph tool.
Hope anyone could help me. Thanks
First I creat a instance and set the parameter
//////////////////////////////////////////////////////////////////////////////////////////////
DLOG_4CH dlog = DLOG_4CH_DEFAULTS;
int DlogCh1=0;//used to store the data temporarily,
dlog.iptr1 = & DlogCh1;
dlog.trig_value = 0x0;
dlog.size = 0x400;//the size for each channel, right?
dlog.prescalar = 1;
dlog.init(&dlog);
///////////////////////////////////////////////////////////////////////////////////////////////
then in the programme loop of 100us, I update the DataLog module. The floating data I want to observe called volt
{
DlogCh1=(int16)(32768.0L*Var1); //Is it right? Floating point data to IQ15 data
dlog.update(&dlog);
}
////////////////////////////////////////////////////////////////////////////////////////////////////
this is the configuration of the graph tool
