Search found 616 matches

by LubinKerhuel
Tue Nov 17, 2009 3:11 pm
Forum: General Remark and Questions
Topic: PWM motor output error
Replies: 16
Views: 39609

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 bl...
by LubinKerhuel
Sat Nov 07, 2009 10:59 am
Forum: Advanced Simulink & RTW Questions
Topic: Confused about calculus time step
Replies: 2
Views: 11148

Re: Confused about calculus time step

Hey Corey, Thanks for this interresting question. These measurement are absolutly normal. - You changed the sampling time of the ADC inside the ADC block. - The model time-step was fixed at 100Khz (T = 10us) (quite high). PR1 = 400 : 400 instructions are executed within 10us - The 20% or 25% load yo...
by LubinKerhuel
Thu Nov 05, 2009 10:19 am
Forum: General Remark and Questions
Topic: MPLAB C30 Optimizations
Replies: 3
Views: 8824

Re: MPLAB C30 Optimizations

Hi Corey, I am glad that you enjoy the blockset I created. As you probably noticed, Microchip blockset started its blockset ( inspired partly based on my work), and is now a great challenger. This kind of testimonial is exactly what I am looking for. Please feel free to copy it or write similar rema...
by LubinKerhuel
Thu Nov 05, 2009 10:06 am
Forum: bug reports
Topic: Error after using Integer to Bit Converter
Replies: 3
Views: 12238

Re: Error after using Integer to Bit Converter

Ok, I can open the model with the block with matlab 2007b, but it will not compile because it needs an S function that is in the communication blockset that is not installed. Thus, I still cannot test it with matlab 2007b until I install the comm blockset. Anyway, the first model you upload compiled...
by LubinKerhuel
Thu Nov 05, 2009 12:15 am
Forum: General Remark and Questions
Topic: Communication blockset - bpsk modulation - Error at 1138
Replies: 13
Views: 34730

Re: Error using genMakefileAndBuild at 1138

It's the same model as the one you posted ! anyway, I used C30 directly from simulink (through the blockset) You can import all necessary file in MPLAB, but you need to configure the whole project. Do remember to add the required library. It may be better to let matlab to compile all necessary libra...
by LubinKerhuel
Thu Nov 05, 2009 12:06 am
Forum: General Remark and Questions
Topic: MPLAB C30 Optimizations
Replies: 3
Views: 8824

Re: MPLAB C30 Optimizations

In Simulation==>Configuration Parameters ==> dsPIC options (last item on the left) and Optimisation parameter: OPTIM_GCC : There are the following optimisations parameters: -O3 -fschedule-insns -fschedule-insns2 Thus, if your C30 version is expired, compilation optimisations are not working anymore....
by LubinKerhuel
Wed Nov 04, 2009 11:52 pm
Forum: bug reports
Topic: Error after using Integer to Bit Converter
Replies: 3
Views: 12238

Re: Error after using Integer to Bit Converter

I was able to test your model on a 2009b matlab with the communication blockset and it compiled without requiring any modifications. I do not have installed the communication blockset (for the integer to Bit Converter block) on the 2007a matlab version. However, you may post one more time the model,...
by LubinKerhuel
Mon Nov 02, 2009 8:02 pm
Forum: General Remark and Questions
Topic: Communication blockset - bpsk modulation - Error at 1138
Replies: 13
Views: 34730

Re: Error using genMakefileAndBuild at 1138

Hey Lizaveta, Sorry for the delay; I compiled successfully your model on matlab 2009b, with Microchip C30 v3_11. I get the .hex file without problems. However, I do not upload it on the forum as it seems to be a compilation test; the model will not do anything interesting. I think you will get alway...
by LubinKerhuel
Tue Oct 27, 2009 11:28 pm
Forum: General Remark and Questions
Topic: PWM motor output error
Replies: 16
Views: 39609

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
by LubinKerhuel
Tue Oct 27, 2009 11:08 am
Forum: General Remark and Questions
Topic: PWM motor output error
Replies: 16
Views: 39609

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. F...
by LubinKerhuel
Mon Oct 19, 2009 5:48 pm
Forum: General Remark and Questions
Topic: Communication blockset - bpsk modulation - Error at 1138
Replies: 13
Views: 34730

Re: Error using genMakefileAndBuild at 1138

Can i ask, maybe later you'll be able to test it, cause I need it very much I have to find a matlab version with theses blocks available. Anyway, for the complex signal, there is a simulink block that convert complex signal into real part and imaginary part (theses two values are two reals), you ma...
by LubinKerhuel
Mon Oct 19, 2009 5:14 pm
Forum: General Remark and Questions
Topic: Communication blockset - bpsk modulation - Error at 1138
Replies: 13
Views: 34730

Re: Error using genMakefileAndBuild at 1138

I do not have the communication blockset (with PSK modulation and so on). Thus, I cannot test the model right now. Perhaps the AWGN channel block is too complicated for the dsPIC your are using. Try several optimisation options in the real time workshop pannel options. (Simulation ==> Real time work...
by LubinKerhuel
Mon Oct 19, 2009 4:00 pm
Forum: General Remark and Questions
Topic: Communication blockset - bpsk modulation - Error at 1138
Replies: 13
Views: 34730

Re: Error using genMakefileAndBuild at 1138

The error is there : untitled.c:145: error: unrecognizable insn: (0x018c9eb0) (insn 234 42 44 2 (set (reg:SF 2 w2) (unspec:SF [ (mem:SF (plus:P16APSV (subreg:P16APSV (plus:HI (reg/f:HI 15 w15) (const_int -36 [0xffffffdc])) 0) (const_int 24 [0x18])) [0 S4 A16]) (reg:HI 19 PSVPAG) ] 62)) -1 (nil) (nil...
by LubinKerhuel
Sat Oct 17, 2009 3:40 pm
Forum: General Remark and Questions
Topic: Error building dsPIC30F3012 with Fuzzy
Replies: 2
Views: 5254

Re: Error building dsPIC30F3012 with Fuzzy

Hi Alan,

It is not possible to replace RAM by EEPROM.
however, you may try to activate simulink optimization, try to check the box "inline parameters". This may save a lot of RAM memory.

Lubin
by LubinKerhuel
Sat Sep 26, 2009 6:02 pm
Forum: bug reports
Topic: problems with toolbox DSPIC
Replies: 10
Views: 19171

Re: problems with toolbox DSPIC

Bug find and solved.

Please download and try the last blockst version, let me know if it's working as expected !

Lubin
by LubinKerhuel
Fri Sep 25, 2009 9:24 pm
Forum: bug reports
Topic: problems with toolbox DSPIC
Replies: 10
Views: 19171

Re: problems with toolbox DSPIC

Ok, I reproduced the bug, I'll look at it very soon. It may be a new bug that appears in the last blockset update
I'll post a message when it's repaired (I hope in few days)

Thanks for repporting it !

Lubin
by LubinKerhuel
Thu Sep 24, 2009 10:22 am
Forum: dsPIC Peripherals
Topic: dspPIC33FJ256MC710
Replies: 1
Views: 8449

Re: dspPIC33FJ256MC710

As far as I remember, I tested GP710 and MC710

Lubin
by LubinKerhuel
Wed Sep 23, 2009 9:11 am
Forum: bug reports
Topic: problems with toolbox DSPIC
Replies: 10
Views: 19171

Re: problems with toolbox DSPIC

Please let me know the result, I will have a close look if you still encounter this problem.

Lubin
by LubinKerhuel
Tue Sep 22, 2009 10:12 pm
Forum: bug reports
Topic: problems with toolbox DSPIC
Replies: 10
Views: 19171

Re: problems with toolbox DSPIC

Try to clean up the matlab path

Which matlab version are you using ?
I should test that !

Lubin
by LubinKerhuel
Tue Sep 22, 2009 9:35 am
Forum: bug reports
Topic: problems with toolbox DSPIC
Replies: 10
Views: 19171

Re: problems with toolbox DSPIC

Hi Cavalcante, did you updated the blockset ? This error appears if the new blockset find an old file from the old blockset (in the matlab path before the new blockst path), or if a file has been modified (or is corrupted) Solution is to delete all files from the blockst installation directory , ins...
by LubinKerhuel
Fri Sep 11, 2009 8:23 am
Forum: General Remark and Questions
Topic: Sample time C-function Call
Replies: 6
Views: 17265

Re: Sample time C-function Call

Hi Cathia, Could not compile to test (no c files attached). However, you could try this : in Simulation ==> Configuration Parameters ==> Optimization (left) ==> Check box Inline parameters . Tips : You may have a better view of what's happening with : Format ==> Sample Time Display ==> Color (update...
by LubinKerhuel
Thu Sep 10, 2009 10:51 am
Forum: General Remark and Questions
Topic: Sample time C-function Call
Replies: 6
Views: 17265

Re: Sample time C-function Call

Hi Cathia, C function call is only working on registred version of the blockset. Thus, check that you have a registred version (are you working in ASU team that use a registred version ?) Else, you may be using the blockset build (or copied !) by Microchip. Anyway, inf time should activate the block...
by LubinKerhuel
Fri Jul 31, 2009 10:55 am
Forum: General Remark and Questions
Topic: corrupted package 2009a?
Replies: 1
Views: 4010

Re: corrupted package 2009a?

Hi Casparus, about the fust corrupted package, I do not know what it is. unisntall the blockset, clean up the maltab path and re-install the blockset. It may solve that problem. Some time ago, when I clicked on the Help button of a block, I was directed to the help page of the block. When I click no...
by LubinKerhuel
Thu Jul 30, 2009 8:45 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Timeout for Input Capture Block
Replies: 3
Views: 9852

Re: Timeout for Input Capture Block

Would it be possible to integrate the extra blocks you added to get this to work into the input capture block itself? The strategy is to give user the more flexiblity . Thus, any "high level" function that could be done efficiently with simulink should be done this way. I mean, there will be no dif...
by LubinKerhuel
Thu Jul 30, 2009 7:16 pm
Forum: General Remark and Questions
Topic: Duty cycle of OC(HW)
Replies: 4
Views: 9884

Re: Duty cycle of OC(HW)

Hi Quan, I respond quicky, sorry if there are imprecision. OC works with a counter. For a given periode (set within the block) the counter will count from 0 to a number, let say it is 1000 here, this number is given in OCmax (it depends on your quartz). - The ADC starts conversion when the counter i...
by LubinKerhuel
Thu Jul 30, 2009 12:31 pm
Forum: General Remark and Questions
Topic: Duty cycle of OC(HW)
Replies: 4
Views: 9884

Re: Duty cycle of OC(HW)

Could you please have a look on the block's page : http://www.kerhuel.eu/wiki/Block/Output_Compare_HW

Unfortunatly, I will not have time to draw something (that would make it clearer)

If there are unclear point, please let me know.

Lubin
by LubinKerhuel
Thu Jul 30, 2009 11:35 am
Forum: Request for new functions / Peripheral / Chip support
Topic: Timeout for Input Capture Block
Replies: 3
Views: 9852

Re: Timeout for Input Capture Block

Hi, Thanks for the suggestion. Here is the solution I am using (see attached file : figure and model) Model time step is 1ms. The RC PWM signal arrived with a period of 20ms. Thus, The resetable integrator is set to 0 each time one pulse arrived. It increment 1 each ms. If there is no RC connection ...
by LubinKerhuel
Thu Jul 30, 2009 11:08 am
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 67665

Re: Support for CAN Module?

Hello, ECAN has lots of possibility and it is still difficult to start to work on it. It's even more difficult now because I'm writing my PhD report and have some change planned in my private life (getting married soon). Btw, if anyone has knowledge on ECAN and Simulink, I would be happy to discuss ...
by LubinKerhuel
Thu Jul 30, 2009 10:59 am
Forum: bug reports
Topic: ADC doesn't produce correct output type
Replies: 1
Views: 8175

Re: ADC doesn't produce correct output type

Datatype of the output of the block ADC is always uint16. Anyway, this uint16 store the value in the format you selected. Thus, you should use a type convert block, with Stored Integer Value (SI) (in opposition to Real Word Value) to convert the simulink representation of the data. Thanks for reppor...
by LubinKerhuel
Thu Jul 30, 2009 10:55 am
Forum: dsPIC Peripherals
Topic: CAN Configuration
Replies: 1
Views: 8602

Re: CAN Configuration

Dear sathishr , It's a very long time I made the blocks CAN and I have not been using them since. Anyway, It works well when I tested it. Anyway, I do not understand how you can check the received data with this model. You should try for example to send CAN received data to the PC through the UART p...
by LubinKerhuel
Wed Jul 29, 2009 2:04 pm
Forum: General Remark and Questions
Topic: DAC on 33fj64GP802
Replies: 15
Views: 36359

Re: DAC on 33fj64GP802

Hi Lucien, Do you have a blockst version with the C call function unrestricted ?
If not, send me an email with the matlab version you are using, I'll provide you with that.

Lubin
by LubinKerhuel
Tue Jul 28, 2009 9:50 am
Forum: General Remark and Questions
Topic: Pathing Problem in Compilation
Replies: 1
Views: 3694

Re: Pathing Problem in Compilation

Hi Chad,

Did you tried the "magic" yellow block called something like "configure Simulink model for dsPIC" ? add this block to your model, dbl click on it and it usually solved path problems.

Lubin
by LubinKerhuel
Mon Jul 27, 2009 1:27 pm
Forum: General Remark and Questions
Topic: Begin with dsPIC and LCD screen
Replies: 4
Views: 16812

Re: Begin with dsPIC and LCD screen

Hi,

The C function block is not available in the blockset demo version. This may however change soon...

Lubin
by LubinKerhuel
Sun Jul 26, 2009 6:38 pm
Forum: General Remark and Questions
Topic: Error in Compiling Model from demo
Replies: 3
Views: 6127

Re: Error in Compiling Model from demo

Hi Chad, This model compiles just fine with matlab 2007b. I attached the obtained .hex file. Anyway, if you have path error, you may add the yellow block "Configure Model for dsPIC" in the Simulink Configuration subblocks of the dsPIC blockset and click on it. This block check and configure if neces...
by LubinKerhuel
Wed Jul 22, 2009 8:27 am
Forum: General Remark and Questions
Topic: Error in Compiling Model from demo
Replies: 3
Views: 6127

Re: Error in Compiling Model from demo

Hello Chad,

Does the models in the example folder compile ?
Could you upload the model you tried to compile ? (it seems it is not an example)

Lubin
by LubinKerhuel
Tue Jul 14, 2009 10:04 am
Forum: General Remark and Questions
Topic: error building your model Hypersampling
Replies: 4
Views: 7497

Re: error building your model Hypersampling

Hi Casparus, I tested the model with matlab 2008b and I get the same error. It seems that matlab 2008b generate code that make the compiler to bug. I do not have solution for that. As the problem is due to the filter block fdatool, you may easily find a workaround : from the fdatool, generate a simu...
by LubinKerhuel
Mon Jul 13, 2009 10:52 pm
Forum: General Remark and Questions
Topic: Error
Replies: 4
Views: 7200

Re: Error

Dear Tina, In addition, I replaced my main C code file with your main C code file and I obtained the same error. Was I suppose to do it another way? This is no worth as the C code file you replace has just been replaced by the one generated by RTW Embedded Coder (i.e. Simulink). You could replace C ...
by LubinKerhuel
Mon Jul 13, 2009 10:45 pm
Forum: General Remark and Questions
Topic: error building your model Hypersampling
Replies: 4
Views: 7497

Re: error building your model Hypersampling

Hi Casparus, I open the model (with matlab 2009a) and compile it without problems. I attached the .hex file generated. I was wondering if the time-step is not to fast. at 30Khz, it would be better to use fixed point filter. You may considere using the busy flag port (see master block options) It see...
by LubinKerhuel
Mon Jul 13, 2009 11:19 am
Forum: General Remark and Questions
Topic: Error
Replies: 4
Views: 7200

Re: Error

Hi Tina, Thanks for description of the error. I could not reproduce it, using Matlab 2006a and pic30-gcc V3.12 (type at matlab prompt >> !pic30-gcc -v ) and model provided in the example directory dsPIC dsPIC_33f_Explorer16.mdl as is. I attach the correct C code file generated on my system. This fil...
by LubinKerhuel
Fri Jul 10, 2009 11:11 am
Forum: Requirement, Installation & Configuration
Topic: Does this blockset work with MPLAB c30 v3.12?
Replies: 2
Views: 9756

Re: Does this blockset work with MPLAB c30 v3.12?

you're welcome.

There is a workaround when using PWM2 peripheral on some MC chip. This error comes from microchip definition file. I'll publish it soon.

Lubin
by LubinKerhuel
Wed Jul 08, 2009 6:48 pm
Forum: Requirement, Installation & Configuration
Topic: bad link
Replies: 7
Views: 15821

Re: bad link

Dear John, The demo models are done with the blockset I developped. Thus, you should install my blockset to make them works, a version is freely available on my website . Microchip blockset can be installed next to my blockset. Please install them both, test them booth, and let us know what are the ...
by LubinKerhuel
Wed Jul 08, 2009 12:50 am
Forum: Request for new functions / Peripheral / Chip support
Topic: DSPIC30F1010/DSPIC30F2020 support
Replies: 7
Views: 16182

Re: DSPIC30F1010/DSPIC30F2020 support

Support for theses chip were started but is now stopped as it seems to be quite a lots of differences.
Few students from Supelec (french engineering school) attempted to use it, but I did not get news from them.

Lubin
by LubinKerhuel
Wed Jul 08, 2009 12:47 am
Forum: Requirement, Installation & Configuration
Topic: bad link
Replies: 7
Views: 15821

Re: bad link

I could not reproduce this problem.

Please Make sure you install properly the blockset and that you did not install it in the Matlab directory.

Then, if you still have that problem, could you provide more info about your configuration?

Lubin
by LubinKerhuel
Mon Jul 06, 2009 11:09 pm
Forum: Website
Topic: Wiki Update
Replies: 2
Views: 9114

Wiki Update

The website, based on mediawiki has been upgraded from mediaWiki V 1.13 to mediaWiki V 1.15 Mediawiki is much more difficult than the forum phpbb to update as no automatic system are done to keep the changes you may have done on your own system... Anyway, everything seems All right. If you see any p...
by LubinKerhuel
Wed Jul 01, 2009 12:32 am
Forum: Website
Topic: Forum Updates
Replies: 2
Views: 8813

Forum Updates

Forum :

partially updated : from phpbb 3.0.4 to phpbb 3.0.5.
Not finished yet, may encounter few problems next few days (this is a testing message also...)
by LubinKerhuel
Mon Jun 29, 2009 11:07 pm
Forum: bug reports
Topic: No OC2 with 30f3012?
Replies: 3
Views: 10749

Re: No OC2 with 30f3012?

Hi John,

Could you post a model that generate this error ?

Thanks
Lubin
by LubinKerhuel
Mon Jun 22, 2009 10:38 pm
Forum: bug reports
Topic: No OC2 with 30f3012?
Replies: 3
Views: 10749

Re: No OC2 with 30f3012?

Hello John,

Thanks for that bug repport.
It will be corrected in the next version.

Tell me which matlab version you're using, I'll send you by mail the corrected version for testing purpose.

Lubin
by LubinKerhuel
Sat Jun 20, 2009 6:51 am
Forum: Website
Topic: Website unavailable from june 15 until june 20 (2009)
Replies: 0
Views: 7148

Website unavailable from june 15 until june 20 (2009)

A technical incident makes the website off from june 15 until june 20 (5 days in 2009).

Trafic generated by the website reach the limit allowed by my webserver. Thus, the webserver just cut off the connection until I raise the traffic limition.

Apologize for this incident.

Lubin
by LubinKerhuel
Fri Jun 05, 2009 10:28 am
Forum: Website
Topic: a page disapear on the website
Replies: 1
Views: 8899

Re: Complementary Filter !!

Hi Milan, I just simplified URL of the website but I did not find the solution to keep the old url compatible. Converting old URL to new one is simple : remove from the URL : index.php5?title= Thus, the new URL is : http://www.kerhuel.eu/wiki/Miniature_Inertial_Measurement_Unit_-_IMU#Download Hope t...
by LubinKerhuel
Thu Jun 04, 2009 6:20 pm
Forum: General Remark and Questions
Topic: Input Capture Block and Output Compare block
Replies: 3
Views: 6343

Re: Input Capture Block and Output Compare block

Hi Val, I respond very quickly: I cannot find the simulink model on the page of the the autopilote model Ok, I did not upload it yet. my mistake. Will do it soon. Please give me the name of the examples. http://www.kerhuel.eu/wiki/Explorer_16_Board I suppose the time step in the solver must be the s...