Search found 616 matches
- Wed Jun 03, 2009 11:02 pm
- Forum: General Remark and Questions
- Topic: Input Capture Block and Output Compare block
- Replies: 3
- Views: 6491
Re: Input Capture Block and Output Compare block
Hi Val, I hope this is a nice accident ! you will find example about Input Capture block on the example page : http://www.kerhuel.eu/wiki/Category:Example look at the autopilote model, I think it's using IC blocks. Also, have a look on the IC block help : http://www.kerhuel.eu/wiki/Block/Output_Comp...
- Fri May 29, 2009 11:27 pm
- Forum: General Remark and Questions
- Topic: Error using ==> rs232gui
- Replies: 6
- Views: 12398
Re: Error using ==> rs232gui
Hi Jose Luis, I find the error ;-) You are using the internal RC oscillator of the dsPIC. (FRC for Fast RC oscillator). It is very difficult to make the UART works properly with such oscillaotr as it is not precise enough (to my experience). Even if the dsPIC is supposed to run at 30MIPS (7.5MHz RC ...
- Mon May 18, 2009 10:33 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: Another method of gyro integrating.
- Replies: 26
- Views: 55518
Re: Another method of gyro integrating.
Hi Nigma,
Is there any news on the ongoing IMU project ?
Is there any news on the ongoing IMU project ?
- Wed May 13, 2009 7:38 am
- Forum: General Remark and Questions
- Topic: remappable Pin
- Replies: 2
- Views: 5008
Re: remappable Pin
Hi Ender,
There is a port mapping block to do it. It is not described on the wiki, but it is in the blockset anyway.
Lubin
There is a port mapping block to do it. It is not described on the wiki, but it is in the blockset anyway.
Lubin
- Thu May 07, 2009 10:26 pm
- Forum: bug reports
- Topic: Compilation error. Please help.
- Replies: 1
- Views: 10185
Re: Compilation error. Please help.
Dear Girish, I will probably not be available for the next three day. Anyway, could you try to compile one of the example in the example repertory ? On your model, Check that you selected one microcontroller in the Master block configuration Then, if you still get in trouble, could you post your mod...
- Wed May 06, 2009 11:32 pm
- Forum: General Remark and Questions
- Topic: dsPIC & MCP23017 using I2C
- Replies: 5
- Views: 10177
Re: dsPIC & MCP23017 using I2C
Dear Gabe, I did not see any obvious error in your model. You may add a blinking led to make sure the dsPIC is running anyway. I do not look at the specific chip you are using, and at the I2C parameters. I2C digital bus is really a pain to debug compared to its SPI equivalent. I am using I2C bus for...
- Wed May 06, 2009 11:04 pm
- Forum: General Remark and Questions
- Topic: Problem with Nop blocks
- Replies: 3
- Views: 6395
Re: Problem with Nop blocks
Hi Laurent,
That is strange as I use the nop function and it seems to work.
Could you post the .mdl file please ?
Did you loocked in the generated C file ?
Perhaps the compiler optimisation configuration removes nop instruction ?
That is strange as I use the nop function and it seems to work.
Could you post the .mdl file please ?
Did you loocked in the generated C file ?
Perhaps the compiler optimisation configuration removes nop instruction ?
- Wed May 06, 2009 9:06 am
- Forum: General Remark and Questions
- Topic: problem with filter
- Replies: 4
- Views: 8046
Re: problem with filter
Hi Casparus, I will have a look on your filters soon. Input Capture block is quite similar to the Output Compare block. Despite I am using this block a lot (mostly to capture PWM duty cycle from remote control receiver) Ijust realize that there is no example using this block. You must configure insi...
- Wed May 06, 2009 12:40 am
- Forum: Advanced Simulink & RTW Questions
- Topic: Compiling Stateflow Charts
- Replies: 1
- Views: 10173
Re: Compiling Stateflow Charts
Hi Tom,
You will also need Stateflow Coder : http://www.mathworks.fr/products/sfcoder/
For compiling the stateflow model, just place it in a simulink model, and compile the simulink model.
Have a look on the many examples (and video) http://www.kerhuel.eu/wiki/Category:Example
Lubin
You will also need Stateflow Coder : http://www.mathworks.fr/products/sfcoder/
For compiling the stateflow model, just place it in a simulink model, and compile the simulink model.
Have a look on the many examples (and video) http://www.kerhuel.eu/wiki/Category:Example
Lubin
- Tue May 05, 2009 5:06 pm
- Forum: General Remark and Questions
- Topic: problem with filter
- Replies: 4
- Views: 8046
Re: problem with filter
Hi Casparus, You are making weird system. It is not very clear why you are using an ADC. What about using an Input Capture block to measure the period of your input signal? There may be a problem with the filters you design. You should post a model with a non working filter. It may help you to do si...
- Tue Apr 21, 2009 7:54 pm
- Forum: General Remark and Questions
- Topic: Problem with Nop blocks
- Replies: 3
- Views: 6395
Re: Problem with Nop blocks
Hi Laurent,
The Nop Block must be placed between two others blocks, and connected on the ordering input/output of theses two blocks.
Post the simulink model if you have problems. Anyway, it is not adapted for 1s delay.
Lubin
The Nop Block must be placed between two others blocks, and connected on the ordering input/output of theses two blocks.
Post the simulink model if you have problems. Anyway, it is not adapted for 1s delay.
Lubin
- Mon Apr 20, 2009 11:38 pm
- Forum: bug reports
- Topic: CAN num in "CAN receive" block
- Replies: 2
- Views: 11119
Re: CAN num in "CAN receive" block
Hello Florent, I worked on CAN more than one year ago. (Not ECAN yet !) I find the two models I used to develop the CAN blocks. These models were working last year. It was very funny to see on the oscilloscope two CAN trame sent by each dsPIC to cross over. When you see it, you'll find that CAN is a...
- Sun Apr 19, 2009 11:44 pm
- Forum: bug reports
- Topic: wont install
- Replies: 6
- Views: 15207
Re: wont install
I uploaded the corrected version. Just try it (version 0.99d) and let me know...
- Fri Apr 17, 2009 6:14 pm
- Forum: dsPIC Peripherals
- Topic: ADC inputs yet again
- Replies: 2
- Views: 11227
Re: ADC inputs yet again
Thanks again for this clear bug description with simulin example.It really helped to track it !
the bug is corrected and the corrected blockset version will be available in the next blockset version (following version 0.99c)
Lubin
the bug is corrected and the corrected blockset version will be available in the next blockset version (following version 0.99c)
Lubin
- Wed Apr 15, 2009 8:07 pm
- Forum: Request for new functions / Peripheral / Chip support
- Topic: PIC32
- Replies: 2
- Views: 11548
Re: PIC32
Hi Jeorge, Is PIC32 likely to receive better coverage soon and leave the "experimental" status? As soon as you guys will use it in your projects, it will leave the experimental status. It is still experimental for me since I do not use theses chip in my projects yet. Not but reported yet, but is the...
- Wed Apr 15, 2009 7:35 pm
- Forum: bug reports
- Topic: wont install
- Replies: 6
- Views: 15207
Re: wont install
If files are unpacked in the directory RTWdsPIC :
add to the matlab path directories :
- RTWdsPIC
- RTWdsPIC/blocks
- RTWdsPIC/dspic
dsPIC library should be seen in the simulink library with all others...
I'll try to release the new version soon. (few others bugs to correct before)
Lubin
add to the matlab path directories :
- RTWdsPIC
- RTWdsPIC/blocks
- RTWdsPIC/dspic
dsPIC library should be seen in the simulink library with all others...
I'll try to release the new version soon. (few others bugs to correct before)
Lubin
- Wed Apr 15, 2009 3:58 pm
- Forum: bug reports
- Topic: wont install
- Replies: 6
- Views: 15207
Re: wont install
Ok,
This bug should be corrected in the next version. Despite this error, the blockset should be properly installed on your system and should works.
Lubin
This bug should be corrected in the next version. Despite this error, the blockset should be properly installed on your system and should works.
Lubin
- Tue Apr 14, 2009 1:05 pm
- Forum: General Remark and Questions
- Topic: Send data from Explorer16 to Matlab ?
- Replies: 2
- Views: 5229
Re: Send data from Explorer16 to Matlab ?
Hi laurent,
Thanks for sharing your experience.
Lubin
Thanks for sharing your experience.
Lubin
- Thu Apr 09, 2009 10:55 pm
- Forum: Requirement, Installation & Configuration
- Topic: Missing 128ms POR delay
- Replies: 2
- Views: 11410
Re: Missing 128ms POR delay
Hi Bernard, in *all* of the dsPIC33F header files Ok, I believe you, (did not open all of them). But I added the 128ms to all 33f dspic (will be available in the next version , current is 0.99c). I owe you a success story: while I was failing to write you a testimonial, we at add2 have put a product...
- Tue Apr 07, 2009 11:54 pm
- Forum: bug reports
- Topic: possible bug using 2 ADC - solved
- Replies: 4
- Views: 13872
Re: possible bug using 2 ADC
I corrected a bug similar to this one just before publishing the 0.99c version. I thought that this bug was not present yet in the 0.99b, but it may be the same. Anyway, could you test your model using the 0.99c version ? (Note that the 0.99c version on the website is depicted as 0.99b+ at the matla...
- Tue Apr 07, 2009 9:32 am
- Forum: bug reports
- Topic: possible bug using 2 ADC - solved
- Replies: 4
- Views: 13872
Re: possible bug using 2 ADC
Which blockset version are you working with ? (0.99c ?)
Lubin
Lubin
- Thu Mar 26, 2009 12:22 am
- Forum: dsPIC Peripherals
- Topic: How to setup the SPI module to send and recieve data
- Replies: 5
- Views: 14512
Re: How to setup the SPI module to send and recieve data
Hey, About chip select, are you checking the correct pin. It is B2 on the model presented here. You should try to disconnect the B2 pin from the temperature sensor pin. Check that its value changes with an scope. You may also check that both : - the dsPIC SPI clock - the output data (SDO) are changi...
- Tue Mar 24, 2009 11:09 pm
- Forum: General Remark and Questions
- Topic: send more data within one time step
- Replies: 1
- Views: 4463
Re: send more data within one time step
Hi Magic, Thx for the Screen shoot. I am not sure that model was very well doccumented. However, you may find on the page : On the embedded simulink model, a mechanism allow to send data during a predefined time: The model embedded on the dsPIC send data only when the value variable60 is different f...
- Mon Mar 23, 2009 10:56 pm
- Forum: bug reports
- Topic: Compilation error using 2 Interrupt driven blocks
- Replies: 2
- Views: 10954
Re: Compilation error using 2 Interrupt driven blocks
Hi Michael, As far as I remember, It is not possible to place two interrupt driven SPI block. Even it compilation is Ok, the behaviour will not be Ok. You will not get the requested results. It is difficult to imagine a solution with a possibility to have two SPI driven block. It may be possible on ...
- Mon Mar 23, 2009 10:46 pm
- Forum: General Remark and Questions
- Topic: Error using ==> rs232gui
- Replies: 6
- Views: 12398
Re: Error using ==> rs232gui
Hi Jose Luis, You model has an original blocks disposition. I'll probably get inspired from it. shot_20090323223845-140.png Anyway, I do not see errors. When does the error appears ? at the connexion time or when you click on start ? Let me know... If it appears when you click on start, there may be...
- Sat Mar 21, 2009 4:42 pm
- Forum: General Remark and Questions
- Topic: Interrupt function instead of a while cicle?
- Replies: 1
- Views: 4269
Re: Interrupt function instead of a while cicle?
Hi Grael, This is a good solution to run a task in background (i.e., with a low priority). This background task will be interrupted (preempted) by the main control task.. On some microcontrollers, calling function from interrupt may cause problems. That must be tested/checked. Just set the timer int...
- Sat Mar 21, 2009 4:31 pm
- Forum: dsPIC Peripherals
- Topic: How to setup the SPI module to send and recieve data
- Replies: 5
- Views: 14512
Re: How to setup the SPI module to send and recieve data
I had a quick look. On the model prinple, it is Ok. However, I noticed few possible problems : - It seems that data length is 8 bits on the with this SP12 Tyre pressure sensor. Thus, SPI Should be configured with 8 bit data length. (except if you use 16 bits length commands) - Uart : 9% error @11520...
- Wed Mar 18, 2009 11:47 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: Help using angle estimation
- Replies: 1
- Views: 9914
Re: Help using angle estimation
Hi Karthikeyan, To resume, you are to adapt the complementary filter presented on the wiki for the Spark " IMU 5 Degrees of Freedom " card. just want the output in angles I like "just" ;-) Anyway, - Calculations are in double thus no problems about fixed point overflow or so on... - The bias you set...
- Tue Mar 17, 2009 3:34 pm
- Forum: General Remark and Questions
- Topic: about Tx-Matlab
- Replies: 3
- Views: 8232
Re: about Tx-Matlab
Hi Magic, after computer received the data,the time interval would be about the sampling time(0.002s) That true, but you should really recompute a time vector of exactly 0.002s as the dsPIC quartz is much better than the bad approximation that is done with the RS232GUI. If you do not overload the UA...
- Tue Mar 17, 2009 1:36 am
- Forum: General Remark and Questions
- Topic: DAC on 33fj64GP802
- Replies: 15
- Views: 42358
Re: DAC on 33fj64GP802
Hi Lucien, I can propose the same solution than crh (No time to have a look by myself by right-now)
Lubin
Let me know<em>LubinKerhuel</em> wrote:if you want to give it a try and publish results, I can provide you with a blockset with C function call avaialble.
Lubin
- Tue Mar 17, 2009 1:26 am
- Forum: General Remark and Questions
- Topic: about Tx-Matlab
- Replies: 3
- Views: 8232
Re: about Tx-Matlab
Hi Magic, Thanks for this interresting question. I tried to complete the doc of the Interface_Tx-Matlab page. I added that : T_R is an approximation of time only, and shoudl be used for vewing purpose only. If you need precise data time stapm, follow the following procedure : * On the simulink model...
- Thu Mar 12, 2009 11:17 am
- Forum: bug reports
- Topic: wont install
- Replies: 6
- Views: 15207
Re: wont install
Do not install inside the matlab directory.
is it a 32 bit of 64 bit matlab ?
is it a 32 bit of 64 bit matlab ?
- Wed Mar 11, 2009 10:14 am
- Forum: General Remark and Questions
- Topic: DAC on 33fj64GP802
- Replies: 15
- Views: 42358
Re: DAC on 33fj64GP802
Hi Casparus,
This is not planned yet. However, if you want to give it a try and publish results, I can provide you with a blockset with C function call avaialble.
Lubin
This is not planned yet. However, if you want to give it a try and publish results, I can provide you with a blockset with C function call avaialble.
Lubin
- Tue Mar 10, 2009 11:05 pm
- Forum: General Remark and Questions
- Topic: Error 0xff appears while compiling
- Replies: 7
- Views: 9841
Re: Error 0xff appears while compiling
Hi, Simulink configuration is Ok. That a problem about the installation of the Microchip C30 compiler. There is 2 version of this compiler on the microchip website. (As fas as I remember, C30 for Pic24 and C30 for dsPIC30f). Install them booth. Make sure that this file exist : C:\PROGRA~1\MICROC~1\M...
- Tue Mar 03, 2009 7:52 pm
- Forum: General Remark and Questions
- Topic: Error 0xff appears while compiling
- Replies: 7
- Views: 9841
Re: Error 0xff appears while compiling
That's definitly not the right target ! You must choose, within the list,microcontroller your are targetting. it can be a dsPIC30f2010 or any of the given list, but not "choose_dsPIC_Target".HTL wrote:if thats not the right one which target do i have to choose?
Lubin
- Mon Mar 02, 2009 1:57 pm
- Forum: General Remark and Questions
- Topic: Error 0xff appears while compiling
- Replies: 7
- Views: 9841
Re: Error 0xff appears while compiling
Thanks for the picture that help. The system target file is selected (dspic.tlc) properly: Ok But you did not select the PIC/dsPIC you are using in the Master block. Thus, dbl click on the master block, and select your target (for the moment, the selected target is 'Choose_dsPIC_Target', as written ...
- Thu Feb 26, 2009 1:43 am
- Forum: bug reports
- Topic: IMU Simulation : error while running (lookup table)
- Replies: 3
- Views: 12635
Re: IMU Simulation : error while running (lookup table)
Don't know, but colors are always in the same order : yellow, magenta,...RideZeBigOne wrote:adding legends on scope
- Thu Feb 26, 2009 1:40 am
- Forum: Requirement, Installation & Configuration
- Topic: Configuration bits warning
- Replies: 2
- Views: 11174
Re: Configuration bits warning
Hello, where am i setting whether the port B is a input or a output port ? That is set automatically, depending if you use Port read or port write blocks... window says that the configuration bits are not proper and its defaulting to preset default values Problems comes from that. Try generating the...
- Thu Feb 26, 2009 1:33 am
- Forum: General Remark and Questions
- Topic: Error 0xff appears while compiling
- Replies: 7
- Views: 9841
Re: Error 0xff appears while compiling
Hi -mcpu=choose_dsPIC_Target That mean that you did not selected the target in the Master block ! http://www.kerhuel.eu/RTWdsPIC/examples ... MPLAB.html That's may be old pages. Please go to the wiki for more "up to date ;-)" informations. Try compiling an example from the example directory ! and th...
- Mon Feb 23, 2009 10:35 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: Control of DC servomotor with digital encoder
- Replies: 5
- Views: 17223
Re: Control of DC servomotor with digital encoder
Hello Jose Luis,
I have hardly no time at the moment to have a close look. I'll try later on. Anyway, Feel free to complete the wiki page. Let me know if you get trouble because of right permission to edit it or so...
Lubin
I have hardly no time at the moment to have a close look. I'll try later on. Anyway, Feel free to complete the wiki page. Let me know if you get trouble because of right permission to edit it or so...
Lubin
- Wed Feb 11, 2009 9:09 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: Did anyone implement a controller in dsPIC by this toolbox?
- Replies: 15
- Views: 30822
Re: Did anyone implement a controller in dsPIC by this toolbox?
Hello Gladiac, Mariano, I'am quite overloaded (Working on both the next blockset version and my PhD ...) forgot this thread. Sorry about that. Thanks Gladiac for the last model you posted. I'll try to have a look next week. (it is not urgent for anybody? ) I'll report results If it is not already do...
- Wed Feb 11, 2009 8:41 pm
- Forum: General Remark and Questions
- Topic: Problem about QEI and DisPIC33fj256mc710
- Replies: 4
- Views: 10315
Re: Problem about QEI and DisPIC33fj256mc710
Hi Magic, I don't go into the QEI code, I leave this part to Mariano and Ender ... I did not see errors in the model somewhere else. - QEI Init code is called after the configuration of others peripheral (That's OK). - Sampling time is Ok - double in C function GetQEI is a 32 bit real in Simulink (w...
- Mon Feb 09, 2009 10:38 pm
- Forum: General Remark and Questions
- Topic: IMU Complementary filter method
- Replies: 3
- Views: 14869
Re: IMU Complementary filter method
Hi Martin,
I did not get your question. It would be helpfull to add a quick draw with transfert functions (or a simulink model)
Lubin
I did not get your question. It would be helpfull to add a quick draw with transfert functions (or a simulink model)
Lubin
- Sun Feb 08, 2009 6:21 pm
- Forum: General Remark and Questions
- Topic: Problem using ADC and SPI
- Replies: 15
- Views: 18009
Re: Problem using ADC and SPI
The IMU page I provide has schematic for the electronics parts. But for testing purpose, you could just test the SPI output and clock output. They should works, even when not connected to any another system. In this way, SPI bus is much more easier to debug than I2C (I2C does not work when nothing's...
- Sun Feb 08, 2009 2:37 pm
- Forum: General Remark and Questions
- Topic: Problem using ADC and SPI
- Replies: 15
- Views: 18009
Re: Problem using ADC and SPI
Hi Manu, It's likely I will not get time to do testing today... anywat, SPI has been tested on project on 30f chip. (for example in IMU ) but wasn't used yet (at least by myself) on project with 33f chip. Few changes between spi on 33F and 30f appears on the SPIxCON register, but bits that changes a...
- Sun Feb 08, 2009 2:21 pm
- Forum: General Remark and Questions
- Topic: IMU Complementary filter method
- Replies: 3
- Views: 14869
Re: IMU Complementary filter method
That's correct, but acceleration here is not the true acceleration of the IMU itself, but a change in the gravity vector orientation to which the accelerometer is sensitive.
- Sat Feb 07, 2009 3:46 pm
- Forum: General Remark and Questions
- Topic: Problem using ADC and SPI
- Replies: 15
- Views: 18009
Re: Problem using ADC and SPI
Hi manu, SPI (MASTER) generates clock signal only while sending data. No clock otherwise. I tested Peripheral mapping on this chip with the Rx-Tx UART block. As it works, It should be the same for every mapped peripheral. Thus, I have no idea. You should perhaps try to make SPI work starting a new M...
- Sat Feb 07, 2009 1:11 pm
- Forum: General Remark and Questions
- Topic: Problem using ADC and SPI
- Replies: 15
- Views: 18009
Re: Problem using ADC and SPI
There is thus no relationhsip with ADC ? you confirm that SPI alone is not working ? In the Port mapping, try to map all pin of the SPI1 peripheral (with clock In = Clock-Out ; RP11 on your model ; and map also Data Input) Did you check generated code for port mapping ? SPI code shoud work as I am u...
- Fri Feb 06, 2009 3:03 pm
- Forum: General Remark and Questions
- Topic: Problem using ADC and SPI
- Replies: 15
- Views: 18009
Re: Problem using ADC and SPI
You can upload directly on the forum (look tab 'upload attachement' at the bottom when writting a message) or even by mail.
I may have a look during the week-end and but I can't promise to find the problem by tuesday... even more if it is not obvious
Lubin
I may have a look during the week-end and but I can't promise to find the problem by tuesday... even more if it is not obvious
Lubin
- Fri Feb 06, 2009 1:44 pm
- Forum: General Remark and Questions
- Topic: Problem using ADC and SPI
- Replies: 15
- Views: 18009
Re: Problem using ADC and SPI
Hi Manu, I did not used yet theses chip with port mapping function on projects, thus there may be buggy. Could you please upload your model on the forum ? That would help for testing. Also, you may have a look on the C code generated by the real time workshop (configure your model to generate the ht...