PWM motor output error
PWM motor output error
Hi Lubin,
I have a problem with setting of processor type dsPIC30f6015. I can't set PWM motor output. I don't know how this problem removes. I placed print screen of this error at attachment. Then I would like asking you a possibility to set-up of dead time on PWM. I don't find this options in setting of PWM motor output block. I used R2008a version of Matlab. Thanks for your help.
I have a problem with setting of processor type dsPIC30f6015. I can't set PWM motor output. I don't know how this problem removes. I placed print screen of this error at attachment. Then I would like asking you a possibility to set-up of dead time on PWM. I don't find this options in setting of PWM motor output block. I used R2008a version of Matlab. Thanks for your help.
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: PWM motor output error
Hi Jirka,
Thanks for the screen shoot.
This seems to be a bug from the blockset since the error message talk about PWM motor 2 peripheral, but the PWM motor dialog is set on PWM motor 1 !
Thus, I'll try to look at this soon. Could you upload your simulink .mdl file, It will help to track that bug.
For the dead time, I did not implemented it yet as I usually use this block just for generating PWM, not for motor control. I will try to have a look within few weeks. If you have any suggestion on how you want to have it implemented (as a constant set in the dialog box (best I think), as a block input ?)
Lubin
Thanks for the screen shoot.
This seems to be a bug from the blockset since the error message talk about PWM motor 2 peripheral, but the PWM motor dialog is set on PWM motor 1 !
Thus, I'll try to look at this soon. Could you upload your simulink .mdl file, It will help to track that bug.
For the dead time, I did not implemented it yet as I usually use this block just for generating PWM, not for motor control. I will try to have a look within few weeks. If you have any suggestion on how you want to have it implemented (as a constant set in the dialog box (best I think), as a block input ?)
Lubin
Re: PWM motor output error
Hi Lubin,
Thanks for answer. I upload the mdl file as you required.
For the dead time, I don't have special requirement. I think that it implement as constant set in the dialog box is good.
Jirka
Thanks for answer. I upload the mdl file as you required.
For the dead time, I don't have special requirement. I think that it implement as constant set in the dialog box is good.
Jirka
- Attachments
-
- dspic30f6015.mdl
- (25.87 KiB) Downloaded 3494 times
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: PWM motor output error
Hi Jirka,
I compiled successfully this model on my system without doing anything particular.
Could you try to download the latest blockset version and test it again ?
Let me know if you still get the error.
Lubin
I compiled successfully this model on my system without doing anything particular.
Could you try to download the latest blockset version and test it again ?
Let me know if you still get the error.
Lubin
Re: PWM motor output error
Hi Lubin,
I reinstall blockset for dspic and now it is all right. Thank you for help.
Now I waiting only on setting of deat time so I can try to control BLDC motor. Could you give know when you'll have complete setting for dead time?
Once again thank you for everything.
Jirka
I reinstall blockset for dspic and now it is all right. Thank you for help.
Now I waiting only on setting of deat time so I can try to control BLDC motor. Could you give know when you'll have complete setting for dead time?
Once again thank you for everything.
Jirka
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: PWM motor output error
Hi Jirka
I implemented the Dead time on the PWM motor peripheral.
Please test the new blockset version and let me know if the way it is implemented is usefull for BLDC motor control.
download link : http://www.kerhuel.eu/wiki/Download
It would be great to get an example of BLDC control using this blockst. Would it be possible to post a model here, or even better, on the wiki ?
Lubin
I implemented the Dead time on the PWM motor peripheral.
Please test the new blockset version and let me know if the way it is implemented is usefull for BLDC motor control.
download link : http://www.kerhuel.eu/wiki/Download
It would be great to get an example of BLDC control using this blockst. Would it be possible to post a model here, or even better, on the wiki ?
Lubin
Re: PWM motor output error
Hi Lubin,
thanks for the deat time, but I'm very busy now.I will try to have a look within few weeks.
Jirka
thanks for the deat time, but I'm very busy now.I will try to have a look within few weeks.
Jirka
-
- Posts: 2
- Joined: Thu Nov 03, 2011 10:27 am
Re: PWM motor output error
hi lubin...jirka wrote:Hi Lubin,
I have a problem with setting of processor type dsPIC30f6015. I can't set PWM motor output. I don't know how this problem removes. I placed print screen of this error at attachment. Then I would like asking you a possibility to set-up of dead time on PWM. I don't find this options in setting of PWM motor output block. I used R2008a version of Matlab. Thanks for your help.
i have a smilar project with the above but i got another error showing this erro for PWM.. please advice me .. i really need help ..i did attach the error screem shot and the .mdl fine for your red.. hope u will help me

regards
William
- Attachments
-
- FYP_pwm_model.mdl
- (36.83 KiB) Downloaded 3398 times
-
- Posts: 2
- Joined: Thu Nov 03, 2011 10:27 am
Re: PWM motor output error
i will be using with dsPIC33fJ64MC802 and microstick .
Re: PWM motor output error
Hi Lubin,
I have a bug with PWM block set.
I use dsPIC Toolbox for Matlab R2011b.
I created new folder "blocks2"and put it in a file "dsPIC_PWM_motor_callback_InitMask.p".
The "dsPIC_PWM_motor_callback_InitMask.p" is copy "dsPIC_PWM_Motor_callback_InitMask.p" from folder "blocks".
Then I added the path to the Matlab search Path.
It solved the my problem. Compilation was successful.
I have a bug with PWM block set.
I use dsPIC Toolbox for Matlab R2011b.
I created new folder "blocks2"and put it in a file "dsPIC_PWM_motor_callback_InitMask.p".
The "dsPIC_PWM_motor_callback_InitMask.p" is copy "dsPIC_PWM_Motor_callback_InitMask.p" from folder "blocks".
Then I added the path to the Matlab search Path.
It solved the my problem. Compilation was successful.
- Attachments
-
- 1.png (7.37 KiB) Viewed 67790 times
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: PWM motor output error
Akwer,
Matlab is now case sensitive.
I corrected few problem caused by this change.
You might be using an old blockset version. Please update and let me know if the problem is still there.
The file dsPIC_PWM_Motor_callback_InitMask.p has M of Motor upper case in latest blockset release.
Lubin
Matlab is now case sensitive.
I corrected few problem caused by this change.
You might be using an old blockset version. Please update and let me know if the problem is still there.
The file dsPIC_PWM_Motor_callback_InitMask.p has M of Motor upper case in latest blockset release.
Lubin
PWM on 32MX460F512L
Hi Lubin,
It is true that there is no PWM motor peripheral available on chip 32MX460F512L?
It is true that there is no PWM motor peripheral available on chip 32MX460F512L?
Re: PWM motor output error
I'm only a freshmen without any knowledge in building stuff. I want to build a motor in which can vibrate at a given frequency. It will be helpful if the materials are cheap to get. I was looking at an electromagnetic linear motor but i cant find one in which i can buy.
______________________
healthy dinner recipes ~ simple recipes for dinner ~ low fat recipes
______________________
healthy dinner recipes ~ simple recipes for dinner ~ low fat recipes
-
- Posts: 4
- Joined: Fri Sep 06, 2013 7:47 am
- Contact:
Re: PWM motor output error
Thus, I'll try to look at this soon. Could you upload your simulink .mdl file, It will help to track that bug.
-
- Posts: 4
- Joined: Fri Sep 06, 2013 7:47 am
- Contact:
-
- Posts: 4
- Joined: Fri Sep 06, 2013 7:47 am
- Contact:
Who is online
Users browsing this forum: Google [Bot] and 17 guests