Dear all,
Like question "How to use PWMDAC module in Motorware?", I want to ask the same question for DLOG module.
In ControlSuite, I know to do this module as following:
// Initialize DATALOG module
dlog.iptr1 = &DlogCh1;
dlog.iptr2 = &DlogCh2;
dlog.iptr3 = &DlogCh3;
dlog.iptr4 = &DlogCh4;
dlog.trig_value = 0x1;
dlog.size = 0x0C8;
dlog.prescalar = 5;
dlog.init(&dlog);
And in the main_ISR(), I need to call, for example, to view Ta, Tb, Tc and Tb-Tc of SVGEN result:
// ------------------------------------------------------------------------------
// Connect inputs of the DATALOG module
// ------------------------------------------------------------------------------
DlogCh1 = (int16)_IQtoIQ15(svgen1.Ta);
DlogCh2 = (int16)_IQtoIQ15(svgen1.Tb);
DlogCh3 = (int16)_IQtoIQ15(svgen1.Tc);
DlogCh4 = (int16)_IQtoIQ15(svgen1.Tb-svgen1.Tc);
Please guide me how to use this module in Motorware correctly!
Many thank you!




