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.

TMS320F28054F: Can we remove these lines on our lab05b based production program?

Part Number: TMS320F28054F

Hello, we are evaluating our lab05b based program for our product.

On our production software, we do not have to read the following gMotorVars variables in lab05b program. 

  // get the magnetizing current

  gMotorVars.MagnCurr_A = EST_getIdRated(obj->estHandle);

  // get the rotor resistance

  gMotorVars.Rr_Ohm = EST_getRr_Ohm(obj->estHandle);

  // get the stator resistance

  gMotorVars.Rs_Ohm = EST_getRs_Ohm(obj->estHandle);

  // get the stator inductance in the direct coordinate direction

  gMotorVars.Lsd_H = EST_getLs_d_H(obj->estHandle);

  // get the stator inductance in the quadrature coordinate direction

  gMotorVars.Lsq_H = EST_getLs_q_H(obj->estHandle);

  // get the flux in V/Hz in floating point

  gMotorVars.Flux_VpHz = EST_getFlux_VpHz(obj->estHandle);

  // get the flux in Wb in fixed point

  gMotorVars.Flux_Wb = USER_computeFlux(handle, gFlux_pu_to_Wb_sf);

Can we remove these lines for our production software?

If we delete these lines, are there any problem on lab05b execution?

Best regards,

ay0689

  • The program calls updateGlobalVariables_motor() from the main for() loop when they need to be updated. You can remove all get functions from updateGlobalVariables except CTRL_getState() and EST_getState(). You can instead update the other gMotorVars at your convenience when you want to check their values.

    Sean