Search found 17 matches

by Simon_says
Tue Jun 02, 2009 11:43 pm
Forum: General Remark and Questions
Topic: Error using ==> rs232gui
Replies: 6
Views: 5160

Re: Error using ==> rs232gui

Hi Lubin!

You were right!!!
I did use a cristal instead of internal clock. Now I can even see multiple inputs in the ADC. I am still working with 30MIPS and use a baud rate of 115200b . It really works!

I am still testing it, but so far so good!!!
Thanks for your support!!

Jose Luis
by Simon_says
Fri May 29, 2009 8:48 pm
Forum: General Remark and Questions
Topic: Error using ==> rs232gui
Replies: 6
Views: 5160

Re: Error using ==> rs232gui

Hello Lubin. Thanks for the updated blockset. I have installed it and try them with the same model. After I pressed start it seemed to work fine , but after 2 or 3 seconds I got this: Port COM1 successfully open at 1200............OK redefinition SerialCOM ??? Error using ==> plus Matrix dimensions ...
by Simon_says
Thu May 28, 2009 10:50 pm
Forum: General Remark and Questions
Topic: Error using ==> rs232gui
Replies: 6
Views: 5160

Re: Error using ==> rs232gui

Hello every one! Hi Lubin... I am still getting the same problem when trying to log data on matlab wit the RS232gui.... this is the error I get: Connecting... May take few seconds... Port COM1 successfully open at 2400............OK redefinition SerialCOM ??? Error using ==> plus Matrix dimensions m...
by Simon_says
Fri Mar 27, 2009 6:38 pm
Forum: General Remark and Questions
Topic: Error using ==> rs232gui
Replies: 6
Views: 5160

Re: Error using ==> rs232gui

Hello Lubin, You see, the error appears several seconds after I press start. The UART has a succesful connection, then I press start and it seems like waiting for information. It takes 20 or 30 seconds and then the error appear. It is odd because sometimes it works and sometimes it dos not. I am tes...
by Simon_says
Mon Mar 23, 2009 6:52 pm
Forum: General Remark and Questions
Topic: Error using ==> rs232gui
Replies: 6
Views: 5160

Error using ==> rs232gui

Hello Lubin: See, I have succesfully connected and send data through rs232 gui from dsPIC to matlab before. However, I have had trouble this time to plot data from the dsPIC. I´ve got the error message below when I try to plot data. What am I doing wrong? Please help! Attached is the model I am usin...
by Simon_says
Wed Feb 18, 2009 10:55 pm
Forum: Advanced Simulink & RTW Questions
Topic: Control of DC servomotor with digital encoder
Replies: 5
Views: 4327

Re: Control of DC servomotor with digital encoder

Hello Lubin and you all. Here I got the math model of the motor with the pendulum. I think for simulation purposes this model (servomotor_pendul.mdl) is very close to reality. I have made the changes suggested in order to get a better performance and here it is. It seems to work and I am still testi...
by Simon_says
Thu Feb 12, 2009 9:34 pm
Forum: Advanced Simulink & RTW Questions
Topic: Control of DC servomotor with digital encoder
Replies: 5
Views: 4327

Re: Control of DC servomotor with digital encoder

Hi Lubin: Absolutely you can put this project in a case study and add the link to the example page. I had been working getting the math model of the system. This is the first time I do this so it is taking me some time. I hope I get the math model soon. I´ll post it when I get it. Meanwhile hang on ...
by Simon_says
Wed Feb 04, 2009 1:31 am
Forum: Advanced Simulink & RTW Questions
Topic: Control of DC servomotor with digital encoder
Replies: 5
Views: 4327

Control of DC servomotor with digital encoder

Hi Lubin... Hello you all. This is one of the first projects I made. I am trying to control a DC servomotor with incremental encoder (FAULHABER 1717V0023 this is the link: http://micromo.com/servlet/com.itmr.waw.servlet.Anzeige?fremdaufruf=ja&kdid=40929&sprachid=1&htdigurl=/n112053/i404618.html&frem...
by Simon_says
Wed Jan 14, 2009 1:11 am
Forum: General Remark and Questions
Topic: ADC, QEI and PWM on dsPIC30f4012 problem
Replies: 3
Views: 2449

Re: ADC, QEI and PWM on dsPIC30f4012 problem

That was the solution!!! Great! Thanks a lot. I will continue experimenting and learning...
Thanks a lot!

Jose Luis
by Simon_says
Tue Jan 13, 2009 2:49 am
Forum: General Remark and Questions
Topic: ADC, QEI and PWM on dsPIC30f4012 problem
Replies: 3
Views: 2449

ADC, QEI and PWM on dsPIC30f4012 problem

Hello Lubin and Mariano! I am still learning how to use the pheriperals of the dsPIC. I was implementing the following model in order to use the PWM, the ADC and the QEI at the same time. The PWM generates just a signal with a constant period and constant duty cycle. The QEI, reads the position of t...
by Simon_says
Sat Jan 10, 2009 10:53 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: QEI module
Replies: 4
Views: 5341

Re: QEI module

Hello Lubin... I need some help with this model. I tried to read the QEI module using Mariano example and it worked fine. Thanks a lot Mariano! However, I tried to use your sample model with a slight modification in order to read the counts of the QEI unsuccesfully. Coul you advise me if I am doing ...
by Simon_says
Thu Jan 08, 2009 5:14 pm
Forum: General Remark and Questions
Topic: C function call block
Replies: 4
Views: 4202

Re: C function call block

Hi Lubin.. Sorry for the delay of my response... Happy new year to all of you! This season I did not work at all, but now I have tested the model and I can see what my mistakes were. It works as you suggested!!! I have implemented it in a dsPIC and it is working. Thanks a lot. I am continuing experi...
by Simon_says
Fri Dec 12, 2008 9:08 pm
Forum: General Remark and Questions
Topic: C function call block
Replies: 4
Views: 4202

Re: C function call block

Hi Lubin.. Here are the .mdl and .c files. I am just trying to turn a pair of leds when the ADC reads more than 2.5V or less than 1.5V. I wanted to use the C function call in order to lear how to use it. I decided to use the example format you posted and it compiles succesfully. However, I program t...
by Simon_says
Thu Dec 11, 2008 6:32 pm
Forum: General Remark and Questions
Topic: C function call block
Replies: 4
Views: 4202

C function call block

Hi you all! Hello Lubin: I am trying to understand how the C call function block works but I am stuck. I have just tried to read a variable "data" and put it out . I compare it with a constant and set a port bit if it is greater or iqual. I have attached the C function also. After I compile it I get...
by Simon_says
Fri Dec 05, 2008 12:27 am
Forum: Request for new functions / Peripheral / Chip support
Topic: Encoder interface?
Replies: 3
Views: 2613

Re: Encoder interface?

Please, add the QEI block!!!!!!!!

Thanks!
by Simon_says
Wed Dec 03, 2008 7:23 pm
Forum: Requirement, Installation & Configuration
Topic: how to remove "the Embedded Target for dsPIC"
Replies: 4
Views: 3404

Re: how to remove "the Embedded Target for dsPIC"

I need some more help on this. I can´t find the directory of the Embedded Target for dsPIC blockset. Besides, does this has to be done from matlab or windows environment? I do not want to make mistakes... Please give me a more detailed instuctions please!

Simon_says