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.

sensorless control pmsm motor using tms320f28335 dsp

Other Parts Discussed in Thread: TMS320F28335

Hi,

 I am working on sensorless control of pmsm motor using tms320f28335 dsp chip. I wrote  " C " code for sensorless control of pmsm motor using sliding mode observer for estimating rotor flux angle, there by estimate the speed. But when I am trying to run the program I am getting one software error.

" /* Initialize the SMOPOS constant module*/

     smo1_const.Rs = _IQ(smo1_const.Rs);

     smo1_const.Ls = _IQ(smo1_const.Ls);

     smo1_const.Ib = _IQ(BASE_CURRENT);

     smo1_const.Vb = _IQ(BASE_VOLTAGE);

     smo1_const.Ts = _IQ(T);

     SMO_CONST_MACRO(smo1_const);    "

Above mentioned is the code and the error is :

error: expected a field name

The error is same for all the lines. I already assigned the value of "Rs" and "Ls" values initially. I don't know why I am getting this error.

Could you please  suggest me how to overcome the above error.

Thanks in advance.

 

Best Regards,

Suneel


  • It appears you are using some software package related to sensorless motor control.  I'm not familiar with any such package.  My guess is you are not including some needed header file, or you have somehow mis-configured things.  Add --verbose_diagnostics to your build.  That should help you understand the error, and you might figure out the problem.

    Thanks and regards,

    -George