dsPIC_PWM_motor.tlc problem
dsPIC_PWM_motor.tlc problem
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
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
- Attachments
-
- baja.mdl
- (30.63 KiB) Downloaded 1159 times
-
- installation.txt
- (13.56 KiB) Downloaded 1155 times
-
- error.txt
- (3.87 KiB) Downloaded 1151 times
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: dsPIC_PWM_motor.tlc problem
Thanks for bug report,
Will be fixed in next release.
Lubin
Will be fixed in next release.
Lubin
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)
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)
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.
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.
Re: dsPIC_PWM_motor.tlc problem
Fixed in new version! 

-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
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
(As I am not very responsive at that time !)
We're preparing a new blockset suporting newer chips at Microhcip...
Lubin
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
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
- Attachments
-
- motor1.mdl
- (27.39 KiB) Downloaded 1202 times
Who is online
Users browsing this forum: No registered users and 40 guests