FORUM TOPIC · READ ONLY

dsPIC_PWM_motor.tlc problem

dsPIC_PWM_motor.tlc problem

Forum : bug reports

7 message(s) · archive en lecture seule

Ebap
Hi Lubin,



I am trying to do a simple program with the dsPIC_PWM_motor block but when I try to generate the code from matlab, it give me this error ''The + operator only works on numeric arguments'' (In the dsPIC_PWM_motor.tlc) I attach the error file, the installation file and the .mdl.



Matlab 2011a

C30 compiler V3.3

Blockset V3.7c

Pièce jointe : error.txt

Pièce jointe : installation.txt

Pièce jointe : baja.mdl

LubinKerhuel

Re: dsPIC_PWM_motor.tlc problem

Thanks for bug report,



Will be fixed in next release.

Lubin
welf

Re: dsPIC_PWM_motor.tlc problem

I am also affected by this problem. Any progress on a fix or suggestions for a workaround?



Thanks



EDIT: the error does not seem to appear when compiling for certain chips (e.g. 33FJ218MC or 33FJ256MC series), but does for the chip that I am using (33FJ32MC204)
welf

Re: dsPIC_PWM_motor.tlc problem

Actually I am able to compile the resulting code in MPLAB and run it even though the build (in Matlab) aborts with an error!



The MPLAB project is not created - but I can use a previous project file created without the PWM block in the system.

The file "dsPIC_OutputCompare_Interrupt.c" is not found but it is replaced with an object file.
welf

Re: dsPIC_PWM_motor.tlc problem

Fixed in new version! :)
LubinKerhuel

Re: dsPIC_PWM_motor.tlc problem

Ok, Thanks for your feedback,



(As I am not very responsive at that time !)

We're preparing a new blockset suporting newer chips at Microhcip...

Lubin
nasrullah

PWM DC Motor

Hi Lubin,



I am trying to do a simple program to active DC motor. But when I try to generate the code from matlab, it give me this error ''Error building Real-Time Workshop target for block diagram 'motor1'. MATLAB error message: Error(s) encountered while building model "motor1".I attach the motor1.mdl below. The motor driver frequency is 40Khz. Thanks.



Matlab 2009a

MPLAB IDE v8.88 compiler 32 V2.01

Blockset V3.7e

Pièce jointe : motor1.mdl