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.
Tool/software: Code Composer Studio
Hi,
I am trying to run the example "Sensored Field Oriented Control of 3-Phase Permanent Magnet Synchronous Motors using F2837x" in control suite. How can I properly get the waveforms mentioned in its manual in Build level1?
I set EnableFlag=1 in expression window and tried to open a single time graph with starting address at svgen1.Ta. I should be able to see a sinusoidal waveform but I can't.
I appreciate if there is any help.
Please find the "data_log.pdf" in controlSUITE as below folder, that shows how to use datalog and graph tool to get these waveforms.
C:\ti\controlSUITE\libs\app_libs\motor_control\drivers\f2803x_v1.2\~Docs
Dear Yanming,
Thanks for your response. I read the manual and it was helpful but unfortunately, I still can't get the right waveform. Here is what I am doing after running the code:
1.Enable Flag=1
2.Dual Time Graph starting address:DBUFF_4CH2 End Address :DBUFF_4CH3
I appreciate it if you could help me with this.
Regards,
Mohammad
DLOG_4CH_F_init(&dlog_4ch1);
dlog_4ch1.input_ptr1 = &DlogCh1; //data value
dlog_4ch1.input_ptr2 = &DlogCh2;
dlog_4ch1.input_ptr3 = &DlogCh3;
dlog_4ch1.input_ptr4 = &DlogCh4;
dlog_4ch1.output_ptr1 = &DBUFF_4CH1[0];
dlog_4ch1.output_ptr2 = &DBUFF_4CH2[0];
dlog_4ch1.output_ptr3 = &DBUFF_4CH3[0];
dlog_4ch1.output_ptr4 = &DBUFF_4CH4[0];
dlog_4ch1.size = 200;
dlog_4ch1.pre_scalar = 5;
dlog_4ch1.trig_value = 0.01;
dlog_4ch1.status = 2;
///////////////////////////////////////////////////////////////////////////////
DlogCh1 = rg1.Out;
DlogCh2 = svgen1.Ta;
DlogCh3 = svgen1.Tb;
DlogCh4 = svgen1.Tc;
You may refer to the project in the below folder since you are working on F2837x device, and find a document in the same folder that should help you to use the datalog and graph tool as well. You might click the "Reset Graph" button and then "Continuous Refresh" button on the graph window if you still can't get waveform.
C:\ti\controlSUITE\development_kits\TIDM-SERVO-LAUNCHXS