Search found 616 matches

by LubinKerhuel
Wed Oct 15, 2008 9:54 pm
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 26104

Re: UART on DsPic33FJ256MC710

Hi Ender, To complete the topic : how the blockset will work if the loop time execution is too long to match with the transfer rate request? Execution continues (i.e. not like the xPC target system behaviour where the execution hang up) In this case do you use the PLL to increase FCy, the instructio...
by LubinKerhuel
Tue Oct 14, 2008 5:43 pm
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 26104

Re: UART on DsPic33FJ256MC710

Hi, The problem described is weird! It is still not clear where it comes from : - Either there is a bug in the blockset, like an overflow that occurs when using high frequency quartz like 40Mhz quartz - Neither there is a hardware problem on your system. As no PLL are used, a 40Mhz quartz gives a 20...
by LubinKerhuel
Mon Oct 13, 2008 11:45 pm
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 26104

Re: UART on DsPic33FJ256MC710

If led blink at 1.5s, widths between dots should be 1.5m instead of 2.74ms ? Either there is a bug in the code generated by the blockset. Neither the quartz is not at 40Mhz but oscillate at 26.6Mhz. You could try to declare the quartz as a 26.6Mhz quartz in the Master block... Attached are the two r...
by LubinKerhuel
Mon Oct 13, 2008 10:50 pm
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 26104

Re: UART on DsPic33FJ256MC710

Hi Ender, I tested the dsPIC_33f_Explorer16.mdl demo (in the demo directory of the blockset) with the explorer16 board equipped with the 33f256GP710 and the original 8Mhz quartz. It works successfully (Matlab 2008a, gcc version 4.0.3 (dsPIC30, Microchip v3_11) Build date: Jul 16 2008 student version...
by LubinKerhuel
Mon Oct 13, 2008 7:43 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: fuzzy logic
Replies: 5
Views: 17622

Re: PIC32MX360

I started the support for PIC32.
It works for simple peripheral (see example for the PIC 32 KIT)

However, I stopped the development process because of problems with interrupt (in particular with Output compare peripheral)
I will re-start the investigation later on...

Lubin
by LubinKerhuel
Sat Oct 11, 2008 6:03 pm
Forum: bug reports
Topic: UART on DsPic33FJ256MC710
Replies: 14
Views: 26104

Re: UART on DsPic33FJ256MC710

Hi Ender, I did not see obvious error. The model However, the model send only 100 bytes / seconds with your configuration (time step of the sinus block is 100Hz, time step for the model is 1KHz. Do you have an electrical signal on the Tx pin of UART 2 ? if yes, you should check your quartz configura...
by LubinKerhuel
Tue Oct 07, 2008 7:05 pm
Forum: Advanced Simulink & RTW Questions
Topic: fuzzy in dspic 30f4011
Replies: 5
Views: 18073

Re: fuzzy in dspic 30f4011

Hi César,

I do not have any example using fuzzy logic or "FIS".
by LubinKerhuel
Mon Oct 06, 2008 11:05 pm
Forum: Advanced Simulink & RTW Questions
Topic: fuzzy in dspic 30f4011
Replies: 5
Views: 18073

Re: fuzzy in dspic 30f4011

I obtain a datatype error. Most (or all) blockset from the fuzzy logic can only take floating point variables. Btw, I don't think that you will get an efficient using blocks that compute trigonometric or exponential like function... You may replace the buzzy logic blocks with optimized look up table...
by LubinKerhuel
Mon Oct 06, 2008 12:28 am
Forum: Advanced Simulink & RTW Questions
Topic: fuzzy in dspic 30f4011
Replies: 5
Views: 18073

Re: fuzzy in dspic 30f4011

Something is wrong in the configuration of you simulink model.

You could try to make a new model model starting from an example model file in the directory example (then copy-past your blocks).
If it did not solve the problem, upload your model on the forum.

Lubin
by LubinKerhuel
Sat Oct 04, 2008 8:35 pm
Forum: General Remark and Questions
Topic: Problem using PWM_motor - Solved
Replies: 9
Views: 15060

Re: Problem using PWM_motor

Hi Murali,

Note that with the current version, you will be able to compile your model. You just need to open the PWM block once before compiling!!

Anyway, I can provide you with the version being developed.
Which matlab version are you using?

Lubin
by LubinKerhuel
Sat Oct 04, 2008 7:52 pm
Forum: General Remark and Questions
Topic: Problem using PWM_motor - Solved
Replies: 9
Views: 15060

Re: Problem using PWM_motor

Thanks for the bug report. I sucessfully reproduced it on the blockset version 0.98fe. Workaround : open at least once the PWM dialog blox and close it before compiling. It seems that some parameters are not updated until the block is opened at least once. Bug will be solved in the next release vers...
by LubinKerhuel
Thu Sep 25, 2008 6:37 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Changing oscillator configuration (was Two-speed start-up)
Replies: 2
Views: 11031

Re: Changing oscillator configuration (was Two-speed start-up)

Bernard, I understand the problem since I was already thinking about it while adding the option you requested. The problem you described seems to be very specific (Does any others dsPIC users encounter a similar problem?) Anyway, thanks for proposing clear solutions. I will be out for 3 days from no...
by LubinKerhuel
Thu Sep 25, 2008 6:34 pm
Forum: Advanced Simulink & RTW Questions
Topic: Another method of gyro integrating.
Replies: 26
Views: 54756

Re: Another method of gyro integrating.

Hi Nigma, I am glad to see that you manage to works with the blockset and with the data viewer "rs232gui" interface. I hope you are enjoying dealing now with the interesting part. I faced the problem you describe: If you use only one transfer function to filter and integrate the rate gyro, you may h...
by LubinKerhuel
Thu Sep 25, 2008 3:48 pm
Forum: Advanced Simulink & RTW Questions
Topic: Another method of gyro integrating.
Replies: 26
Views: 54756

Re: Another method of gyro integrating.

Hi Nigma, is gyro calibration OK ? signal should be in degree/s
by LubinKerhuel
Thu Sep 25, 2008 11:04 am
Forum: Advanced Simulink & RTW Questions
Topic: Another method of gyro integrating.
Replies: 26
Views: 54756

Re: Another method of gyro integrating.

Hi Nigma, Matlab use a Java interface to access to the COM port. This interface sometimes bug while trying to connect. In this case, you should press the connect button with the dsPIC off or at least not sending datas. But it seems that you got another error. This may be due to your specific UART PC...
by LubinKerhuel
Thu Sep 25, 2008 10:05 am
Forum: Advanced Simulink & RTW Questions
Topic: Another method of gyro integrating.
Replies: 26
Views: 54756

Re: Another method of gyro integrating.

Hi Nigma, I see at least 1 error in the model: - The gyro MUST NOT be integrated before the "Non adaptive Kalman block". The gyro in already integrated in this block. I could give then few advices : - It is useless to low pass filter the Gyro before the "Non adaptive Kalman block" because this block...
by LubinKerhuel
Wed Sep 24, 2008 10:54 pm
Forum: Advanced Simulink & RTW Questions
Topic: Another method of gyro integrating.
Replies: 26
Views: 54756

Re: Another method of gyro integrating.

Hi Nigma ! You have a datatype error. The easiest way to make it works is to do all calculation in double (i.e. open each block ans set data type to double, or use the Simulink Fixed point tool to do all at once...) If you with to do the calculation in fixed point, avoid to get a fixed point calcul ...
by LubinKerhuel
Wed Sep 24, 2008 10:02 pm
Forum: Advanced Simulink & RTW Questions
Topic: Another method of gyro integrating.
Replies: 26
Views: 54756

Re: Another method of gyro integrating.

Hi Nigma,

The script Script_Kalman.m define theses constants.

The block "Simplified Kalman for publi" is a simplified version of the block that is really implemented in my IMU.

Despite the IMU described is already working well, it is still under developpment.

Lubin
by LubinKerhuel
Mon Sep 22, 2008 11:14 pm
Forum: Advanced Simulink & RTW Questions
Topic: Fuzzy Logic..
Replies: 1
Views: 9910

Re: Fuzzy Logic..

i NigmaTech, All blockset compatible with the Real Time Workshop (RTW) Embedded Coder can be used in model for dsPIC. Fuzzy Logic Blockset is compatible with the Real Time Workshop (RTW) Embedded Coder thus it will work on dsPIC. (see http://www.mathworks.com/products/fuzzylogic/description2.html) I...
by LubinKerhuel
Mon Sep 22, 2008 10:54 pm
Forum: Requirement, Installation & Configuration
Topic: Build error
Replies: 1
Views: 9917

Re: Build error

You must update your C30 compiler to version (3.10b or 3.11b) (student version is also Ok)
See requirements http://www.kerhuel.eu/wiki/Download#Requirement

Lubin
by LubinKerhuel
Sun Sep 21, 2008 7:01 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Two-speed start-up
Replies: 3
Views: 12893

Re: Two-speed start-up

Hi Bernard,

I did not looked at this problem yet. I'll do it shortly...
by LubinKerhuel
Sun Sep 21, 2008 7:00 pm
Forum: bug reports
Topic: IMU Simulation : error while running (lookup table)
Replies: 3
Views: 12264

Re: IMU Simulation : error while running (lookup table)

Hello,

Thanks for repporting the bug.
That was a problem of version. Have a look on the new file I just downloaded. It should work !

Lubin
by LubinKerhuel
Tue Sep 16, 2008 5:29 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Two-speed start-up
Replies: 3
Views: 12893

Re: Two-speed start-up

Dear Bernard, I am not sure to understand what your need is. Do you want to manually "change" the clock source within the program (i.e. add a block to do it in the simulink model ?) Or do you want to use the "Two Speed Start-up" as it is described from the 70186b.pdf doc you mentioned page 7-31 ? In...
by LubinKerhuel
Mon Sep 15, 2008 6:27 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: fuzzy logic
Replies: 5
Views: 17622

Re: PIC32MX360

Support for PIC 32 device is started.
An example for the PIC32 starter kit is available here : viewtopic.php?f=1&t=138&p=425&hilit=starter#p425

I get stuck on a problem relative to interrupt with the Output Compare peripheral. I ave to get back on that problem.

Lubin
by LubinKerhuel
Tue Sep 09, 2008 10:40 pm
Forum: Requirement, Installation & Configuration
Topic: Compiling problem
Replies: 29
Views: 141490

Re: Compiling problem

Thanks gdiana for the good idea.

I added a message at the end of the installation script.
It will be available in the next release (following 0.98fc).

Lubin
by LubinKerhuel
Thu Sep 04, 2008 10:37 pm
Forum: Requirement, Installation & Configuration
Topic: Compiling problem
Replies: 29
Views: 141490

Re: Compiling problem

Hi Arsen, I'm Glad you finally make it! during the design and compilation may i ask questions when i got problems in future?:==)) any question related to the dsPIC embedded coder for Simulink are welcome. Just a remark : when you reply, just click on reply at the bottom. The quote button is not the ...
by LubinKerhuel
Thu Sep 04, 2008 10:33 pm
Forum: General Remark and Questions
Topic: dsPIC virtual simulation in Simulink
Replies: 1
Views: 4047

Re: dsPIC virtual simulation in Simulink

Simulink may not be the software to do so.
by LubinKerhuel
Wed Sep 03, 2008 11:04 pm
Forum: bug reports
Topic: Configuring in a sub-system
Replies: 1
Views: 9621

Re: Configuring in a sub-system

Hi Bernard,

Thanks for the bug report. It is corrected.

The correction will be available in the next release (current release is 0.98fc)

Lubin
by LubinKerhuel
Wed Sep 03, 2008 9:25 pm
Forum: Requirement, Installation & Configuration
Topic: Compiling problem
Replies: 29
Views: 141490

Re: Compiling problem

Hi arsen, I added the block Configure Model for dsPIC and dbl click on it before compiling your model without problems. You are describing a license problem for the C30 compiler. My guess is that your perhaps updated an older version of C30 and something get wrong. If I were you, I will try to remov...
by LubinKerhuel
Tue Sep 02, 2008 8:03 pm
Forum: bug reports
Topic: Matlab Variables do not Propagate to C-Function Call Block
Replies: 2
Views: 10514

Re: Matlab Variables do not Propagate to C-Function Call Block

Hi Mariano,
It seems to be quite complicated to modify the blockset.

Anyway, there may be a way to do what you wants :
replace : YoutVariable by ['[' num2str(YourVariable) ']'] in the dialog box.
I should work for all blocks.

Lubin
by LubinKerhuel
Tue Sep 02, 2008 7:05 pm
Forum: Requirement, Installation & Configuration
Topic: Compiling problem
Replies: 29
Views: 141490

Re: Compiling problem

I tested the C30 v3.11(b) version for students and it seems to works properly. (test with matlab 2006a) could you try to place a block " Configure Model for dsPIC " in your model, dbl click on it and then try to compile ? If you get a problem, try to compile a simple project in the microchip MPLAB I...
by LubinKerhuel
Mon Sep 01, 2008 9:50 pm
Forum: bug reports
Topic: ADC Input block - solved
Replies: 4
Views: 14802

Re: ADC Input block - bug to solve

Hello, there is still a problem with the ADC Input block. Bernard, For dsPIC33FJ256GP710, it gives the permitted analogue input pins as 0-21 and 24-33, instead of 0-31 (which is certainly correct) Thanks Bernard for this bug report. The definition (inside the blockset) for the dsPIC33FJxxxGP710 fami...
by LubinKerhuel
Mon Sep 01, 2008 3:42 pm
Forum: Requirement, Installation & Configuration
Topic: Compiling problem
Replies: 29
Views: 141490

Re: Compiling problem

Hi arsen, The blockset find the C30 compiler. The problem is out there. It seems to be a licence problem about the C30 compiler. Are you using a version for student ? I did not test yet the version 3.11 of C30 thus I am still using the 3.10. Did you install the free C30 compiler for student ? Can yo...
by LubinKerhuel
Mon Sep 01, 2008 8:37 am
Forum: Advanced Simulink & RTW Questions
Topic: C-Function Call and Muxes - to solve
Replies: 3
Views: 12791

Re: C-Function Call and Muxes

Hi Mariano, I am just back and "setting up" my flat again! I wonder what the global input parameter does in the C-Function call The Global Input Size parameters set all input with the defined size. If that size is 1, each input is considered as a scalar. (Simulink call the function with the value as...
by LubinKerhuel
Sun Aug 31, 2008 1:15 pm
Forum: bug reports
Topic: Teething problems - PIC32
Replies: 5
Views: 15059

Re: Teething problems

I did not get back yet on the interrupt problem I had.

so, still stuck. I still hope that someone could help.

Lubin
by LubinKerhuel
Fri Aug 22, 2008 11:29 pm
Forum: bug reports
Topic: Matlab Variables do not Propagate to C-Function Call Block
Replies: 2
Views: 10514

Re: Matlab Variables do not Propagate to C-Function Call Block

Ok, Will have a look on that.
Thanks for the bug report !
Lubin
by LubinKerhuel
Thu Aug 21, 2008 12:44 pm
Forum: Advanced Simulink & RTW Questions
Topic: Another method of gyro integrating.
Replies: 26
Views: 54756

Re: Another method of gyro integrating.

I removed the 'french caracter'. Is it Ok now ?
by LubinKerhuel
Wed Aug 20, 2008 8:30 pm
Forum: Advanced Simulink & RTW Questions
Topic: Another method of gyro integrating.
Replies: 26
Views: 54756

Re: Another method of gyro integrating.

Webpage partly updated. Please have a look and download the simulink file that may help for your projects. http://www.kerhuel.eu/wiki/Miniature_Inertial_Measurement_Unit_-_IMU#Download Another look to your structure, I do not understand it. I guess that Gain1 should be the gain of the rate gyro bein...
by LubinKerhuel
Wed Aug 20, 2008 8:45 am
Forum: Request for new functions / Peripheral / Chip support
Topic: DSPIC30F1010/DSPIC30F2020 support
Replies: 7
Views: 17284

Re: DSPIC30F1010/DSPIC30F2020 support

I did not used this borad yet ; Couldn't help
by LubinKerhuel
Tue Aug 19, 2008 4:34 pm
Forum: dsPIC Peripherals
Topic: No SPI output on the pins?
Replies: 3
Views: 11768

Re: No SPI output on the pins?

Thanks for theses spelling remarks.
I corrected them all ; Corrections will be available in the next release.

Do you need theses corrections soon ?

Regards
Lubin
by LubinKerhuel
Tue Aug 19, 2008 4:15 pm
Forum: Advanced Simulink & RTW Questions
Topic: Another method of gyro integrating.
Replies: 26
Views: 54756

Re: Another method of gyro integrating.

Hi Nigma, It's a nice work. Note that .png picture format is the best one for simple graph like the one you uploaded. I add few remarks hopping that it may help. - Overshoot is not due to the low pass filter (Filtering here at 30 rad/s ; about 5hz) - I did not see the calibration of the gyro gain. Y...
by LubinKerhuel
Sat Aug 16, 2008 8:53 am
Forum: dsPIC Peripherals
Topic: ADC: some problems (revisited)
Replies: 1
Views: 9809

Re: ADC: some problems (revisited)

hi Bernard,

I send update on the blockset on simple mail request. (until I find a way to send to everybody the update at once !)

I am currently on vacation until 1st of september, I will see if I can send you an update earlier.

Lubin
by LubinKerhuel
Fri Aug 15, 2008 4:15 pm
Forum: dsPIC Peripherals
Topic: No SPI output on the pins?
Replies: 3
Views: 11768

Re: No SPI output on the pins?

hi Bernard,

The function WriteSPI1() is a function from the dsPIC library.
It may be usefull to get the Simulink model file with the problem described to have a look. Could you upload it on the forum ? ( or a simplified version)

Lubin
by LubinKerhuel
Thu Aug 14, 2008 6:21 pm
Forum: Requirement, Installation & Configuration
Topic: dspic building error - solved
Replies: 4
Views: 13842

Re: dspic building error

- Please Check that you are using the C30 compiler version 3.10 or above. Then, you could find the .gld file required, copy it into the root directory c:\ On your simulink model, go to: Simulation ==> Configuration Parameters ==> DsPIC Options Change the line LDPICTYPE from -T C:\PROGRA~1\MICROC~1\M...
by LubinKerhuel
Wed Aug 13, 2008 11:17 pm
Forum: Requirement, Installation & Configuration
Topic: dspic building error - solved
Replies: 4
Views: 13842

Re: dspic building error

Hi Jacques, I did not encounter such a bug where matlab cannot create a directory. You should avoid working in the c:\program file\... directory! Try copy your working file somewhere else and try again. If it does not work, you could try to create the slprj directory from the matlab prompt : >>mkdir...
by LubinKerhuel
Wed Aug 13, 2008 6:48 pm
Forum: Advanced Simulink & RTW Questions
Topic: Another method of gyro integrating.
Replies: 26
Views: 54756

Re: Another method of gyro integrating.

Hi Nigma, It's nice to hear from you. I guess that you manage with the compilation problem you described earlier ;-) Thanks for sharing this work. I have only one remark, but as I can't simulate it, you will have to check if I am right : The low pass filter applied to the gyro may be useless because...
by LubinKerhuel
Wed Aug 13, 2008 10:44 am
Forum: Advanced Simulink & RTW Questions
Topic: Rx Interrupt buffer size
Replies: 12
Views: 29089

Re: Rx Interrupt buffer size

Hi Mariano, Weather is not great for the moment here, but waves are here (Anglet,France) I didn't read carefully the 1st message. Anyway, I am sure the response may provide useful information. From the Rx point of view, your suggestion is interesting and very clear. I may also have a look on Septemb...
by LubinKerhuel
Wed Aug 13, 2008 8:46 am
Forum: Requirement, Installation & Configuration
Topic: Compiling problem
Replies: 29
Views: 141490

Re: Compiling problem

Hi, If the directory you are working in has a very long path, you may get error during the compilation. The solution is to create a virtual drive with its roots at your directory: At the matlab prompt, type: !subst z: "C:\Documents and Settings\Bernard\Mes documents\MATLAB\Very very long path ... \....
by LubinKerhuel
Tue Aug 12, 2008 8:40 am
Forum: Advanced Simulink & RTW Questions
Topic: Rx Interrupt buffer size
Replies: 12
Views: 29089

Re: Rx Interrupt buffer size

Hi Mariano, It is possible to send more than one byte within one time step: See example attached below UART_SendVectorPubli.zip UART_MultipleSend.png.png I can add the two outputs you request but I could not do it before September. (In vacation) Using a multirate model, you should be able to do the ...
by LubinKerhuel
Tue Aug 05, 2008 11:11 am
Forum: Requirement, Installation & Configuration
Topic: Compiling problem
Replies: 29
Views: 141490

Re: Compiling problem

The next version of the blockset will be able to find the C30 compiler even if it is not added in the windows path.
This version will be released next month : september 2008.

Lubin