Can we change the example "Estimate Induction Motor Parameters Using Recommended Hardware" in order to be implemented in TMDSHVMTRINSPIN with F 28069

I changed the PWM blocks, the ADC blocs and the hardware implementation in the setting with the blocs of F2806x. i did Clt+D and a message of error is displayed (This assignment writes a 'double' value into a 'single' type. Code generation does not support changing types through assignment. Check preceding assignments or input type specifications for type mismatches)
this message doesn't appear when i use the original files developped to the LAUNCHXL-F28379D.
I want to know if it's possible to fix this or no?

2 Comments

Can you please mention which example model you are refering to?
the name of the example is "Estimate Induction Motor Parameters Using Recommended Hardware". You can find it by opening this command on Matlab window "open_system('mcb_acim_param_est_host_read.slx')".

Sign in to comment.

Answers (1)

The model "mcb_acim_param_est_f28379D_DRV8305.slx" can be updated to make it work with f28069m controller.
Please refer following models to understand what changes are required in the model to support different controllers.
"mcb_param_est_f28069_DRV8312" (Parameter estimation of PMSM motor with f28069 controller)
"mcb_param_est_f28379D_DRV8305" (Parameter estimation of PMSM motor with f28379d controller)

3 Comments

Thank you for your reply, i fixed all the changed needed but i have a problem with serial port communication.
when i do update (ctrl+D), no comment is played in the diagnostic windows. But when i do build,deplot and start, I have a this comment: "In order to generate code from AsyncIO, the target hardware must be MATLAB Host or a compatible device". Do you have idea how can i resolve this problem?
We need to reporduce the issue at our end to understand the cause. Can you share screenshots of the model update done by you and the error messages. If possible please share the model.

Sign in to comment.

Categories

Find more on Motor Control Blockset in Help Center and File Exchange

Products

Release

R2022a

Asked:

on 12 May 2022

Commented:

on 26 May 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!