Search found 616 matches

by LubinKerhuel
Sat Apr 24, 2010 11:08 am
Forum: Website
Topic: Wiki Update
Replies: 2
Views: 2463

Re: Wiki Update

added new cool stuff on mediawiki

- Export pages as PDF (and create clean book)
- add comment on wiki pages, (should make the wiki more dynamics)
- add editor WYSWIG to make edition easier (FCKeditor)

check installed mediawiki extensions : http://www.kerhuel.eu/wiki/Special:Version
by LubinKerhuel
Sat Apr 24, 2010 11:03 am
Forum: Website
Topic: Forum Updates
Replies: 2
Views: 2357

Re: Forum Updates

updated : from phpbb 3.0.6 to phpbb 3.0.7PL1,
updated : gym_sitemapsV2-0-0 to gym_sitemapsV2-0-1

Two rss flux can be used on the forum, the new RSS of the version 3.0.6 of phpbb, and the old one of gym_sitemaps.
gym sitemaps RSS may be shut down soon (quite messy)
by LubinKerhuel
Fri Apr 23, 2010 12:07 am
Forum: General Remark and Questions
Topic: GUI in Matlab2010a with virtual Com port problem
Replies: 7
Views: 7474

Re: GUI in Matlab2010a with virtual Com port problem

There is a trick with matlab to make matlab use another java version: See: this mathworks page Anyway, I doubt that using another java version will solve the problem. Are you decoding frames from the Tx_Output_Multiplexed_For_Matlab-Labview block with Labview? I did Labview decoding blocks a about 5...
by LubinKerhuel
Thu Apr 22, 2010 7:34 am
Forum: Advanced Simulink & RTW Questions
Topic: sparkfun - UAV v2 Development Platform - dspic30f4011
Replies: 5
Views: 4353

Re: dspic30f4011

Hi Zafer, This board seems very nice for many projects. I quickly read of the doc; why don't you use the PWM motor block to generate PWM for servo motor? You get O1 O2 and O3 pins wired as I understand it. As the duty cycle is fixed for servo motor to 20ms, PWM motor peripheral should be perfect. (I...
by LubinKerhuel
Thu Apr 22, 2010 12:56 am
Forum: General Remark and Questions
Topic: GUI in Matlab2010a with virtual Com port problem
Replies: 7
Views: 7474

Re: GUI in Matlab2010a with virtual Com port problem

I did not test yet bluetooth virtual COM port with matlab 2010a. Are you using a mablab 32 or 64 bits ? I think that matlab serial connections rely on java. Thus, you may try updating java version (see matlab help to change matlab java) Anyway, from my former experiment (planes and robots with bootl...
by LubinKerhuel
Thu Apr 22, 2010 12:20 am
Forum: Advanced Simulink & RTW Questions
Topic: Problem of configuring a dspic with Simulink Blockset
Replies: 7
Views: 5487

Re: Problem of configuring a dspic with Simulink Blockset

You're not very lucky, you find a bug in my toolbox also ;-) Thus, here is the generated code for the file with the error : File: C:\Mes_doccuments_Maison\prog\Matlab2\RTWdsPIC\Developpements\Forum\New Folder\test_dspic\sources\test_main.c 1 /* 2 * File: test_main.c 3 * 4 * Real-Time Workshop code g...
by LubinKerhuel
Wed Apr 21, 2010 6:12 pm
Forum: Advanced Simulink & RTW Questions
Topic: Problem of configuring a dspic with Simulink Blockset
Replies: 7
Views: 5487

Re: Problem of configuring a dspic with Simulink Blockset

Hi,

You are using Microchip blockset.
Please give a try using this one:
http://www.kerhuel.eu/wiki/Download

Lubin
by LubinKerhuel
Wed Apr 21, 2010 7:25 am
Forum: Advanced Simulink & RTW Questions
Topic: Problem of configuring a dspic with Simulink Blockset
Replies: 7
Views: 5487

Re: Problem of configuring a dspic with Simulink Blockset

Hi,

could you also post the simulink model file ? Here are onlymplab projects file
by LubinKerhuel
Thu Apr 08, 2010 8:05 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 19594

Re: Support for CAN Module?

Let me know how to force first 8 bits of FSS to 0.
I can't force them adding & 255 into :

Code: Select all

 _FSS( RSS_NO_RAM & SSS_NO_FLASH & SWRP_WRPROTECT_OFF & 255)
Lubin
by LubinKerhuel
Tue Apr 06, 2010 10:45 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 19594

Re: Support for CAN Module?

You may compare the configuration bits.

What if you compile/run in MPLAB with release mode ?
I often noticed very weird behavious using MPLAB debugger. Thus, I usually avoid using it.

If more option are required in the blockset for the compilation process, just let me know !
Lubin
by LubinKerhuel
Fri Apr 02, 2010 12:18 am
Forum: Advanced Simulink & RTW Questions
Topic: Rx Interrupt buffer size
Replies: 12
Views: 10148

Re: Rx Interrupt buffer size

Thanks for your detailed explanation.
This is a quite original solution that will be very fast. As this dsPIC has a lot of memory, it's just fine like this.
image of your last model
image of your last model
UART_2D_tableV3.PNG (5.83 KiB) Viewed 9752 times
You may optimize a bit by storing data of the lookuptable in the uint8 format (enter uint8(T) ).

Lubin
by LubinKerhuel
Thu Apr 01, 2010 4:47 pm
Forum: Advanced Simulink & RTW Questions
Topic: Rx Interrupt buffer size
Replies: 12
Views: 10148

Re: Rx Interrupt buffer size

set a for loop with N=11 for 11-byte Rx messages, and nest another for loop within to separate digits and insert commas and spaces, and Tx It may works, however three remarks: 1) Theses nested for-loop are going to take more time than one time step. Thus, you will not respect real-time constraints....
by LubinKerhuel
Wed Mar 31, 2010 11:36 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 19594

Re: Support for CAN Module?

Hey, Few news from ECAN : Bryant (bmair on the forum) is updating his code for ECAN. This code can be found (see previous post) I would advise to use it. I will do an ECAN block based on his code (with his agreement), anyway, I haven't do it yet (as you may see I just release new blockset supporting...
by LubinKerhuel
Wed Mar 31, 2010 11:12 pm
Forum: Advanced Simulink & RTW Questions
Topic: Rx Interrupt buffer size
Replies: 12
Views: 10148

Re: Rx Interrupt buffer size

I posted an image of your model that run on Evidence Flex Board (They gracefully provide one for me, so many thanks) ModelOriginale.PNG From UART config blocks, you can get how many data can be read at each time step. Model run here at 2Khz that is a time step of 0.5ms. @ 115200, you can send or rec...
by LubinKerhuel
Wed Mar 31, 2010 12:56 pm
Forum: Advanced Simulink & RTW Questions
Topic: Rx Interrupt buffer size
Replies: 12
Views: 10148

Re: Rx Interrupt buffer size

Hi John, Regarding UART Tx, do the block ordering inputs ond outputs control the sequence of data sent out the UART port? In your example, first send the Tx Output, followed by Tx Output1, followed by Tx Output2, followed by Tx Output3, etc? Ordering of blocks whoses input/output are not in relation...
by LubinKerhuel
Wed Mar 31, 2010 12:14 pm
Forum: Requirement, Installation & Configuration
Topic: Not able to install dspic toolbox... Errors
Replies: 8
Views: 5884

Re: Not able to install dspic toolbox... Errors

Thanks you very much for your post !

This error comes from correction I made in the last blockset version published two days ago.
it appears from your post that some files are missing in the installer package.

I'll correct it shortly.

I'll post a message once it's done !

Lubin
by LubinKerhuel
Fri Mar 12, 2010 10:53 pm
Forum: General Remark and Questions
Topic: PWM output
Replies: 7
Views: 5510

Re: PWM output

On OC block, duty cycle is set for example throw the OCx_Up. Period is set throw period. But theses input can be change into OCx_Up and OCx_Down in the dialog box.
by LubinKerhuel
Fri Mar 12, 2010 8:29 am
Forum: Requirement, Installation & Configuration
Topic: Build error in function rt_MatMultAndIncCC_Dbl
Replies: 25
Views: 14322

Re: Build error in function rt_MatMultAndIncCC_Dbl

It's possible to send data from matlab to the dsPIC throw the rs232gui interface for example. However, that will not be real time as Matlab is not realtime ! Thus, you will be able to send set-point, or to change gain during execution of the dsPIC realtime program, but you will not do a realtime cos...
by LubinKerhuel
Thu Mar 11, 2010 8:25 am
Forum: Requirement, Installation & Configuration
Topic: Build error in function rt_MatMultAndIncCC_Dbl
Replies: 25
Views: 14322

Re: Build error in function rt_MatMultAndIncCC_Dbl

You should find information here : http://www.kerhuel.eu/wiki/Block/PWM_Motor_Output
hope it's clear enough as it seem to be tricky when I am reading it today !

feel free to edit the wiki, and let me know for unclear point.

Lubin
by LubinKerhuel
Wed Mar 10, 2010 8:23 am
Forum: Requirement, Installation & Configuration
Topic: Build error in function rt_MatMultAndIncCC_Dbl
Replies: 25
Views: 14322

Re: Build error in function rt_MatMultAndIncCC_Dbl

It should works. do you use a scope to check if that's works ? the PWM output is here quite fast : frequency is : 1/ (4.194303e-001 * 1000 / 65534) = 156Hz. If you use a "voltmetre" , you will probably see VDD/2, typically 2.5V. Anyway, please try to change in the Master block, Time Step reference :...
by LubinKerhuel
Fri Mar 05, 2010 8:34 am
Forum: Requirement, Installation & Configuration
Topic: Build error in function rt_MatMultAndIncCC_Dbl
Replies: 25
Views: 14322

Re: Build error in function rt_MatMultAndIncCC_Dbl

The model is composed of constants attached to a PWM motor blocks. Two possible problems : first one : const blocks has a default sampling time set to "inf". This mean that they are typically "executed" only once, and blocks depending only on theses values (here PWM blocks) will inherit this "inf" s...
by LubinKerhuel
Wed Mar 03, 2010 12:42 am
Forum: General Remark and Questions
Topic: UART on Explore16
Replies: 11
Views: 5302

Re: UART on Explore16

Good news, as I think I found the problem and solution is very simple. Few elements first See warnings 1 and 2 from Matlab upon opening model file below. I got these at different times opening the simulink model I can't get a ride of them yet but theses warning are not a problem. If you get at the e...
by LubinKerhuel
Mon Mar 01, 2010 10:54 pm
Forum: General Remark and Questions
Topic: UART on Explore16
Replies: 11
Views: 5302

Re: UART on Explore16

One more remarks : Do not compile anything within MPLAB. Just load the hex file : In the case you use the blockset, you import the .hex (or .coff) binary file into MPLAB and you must directly program without compiling within the MPLAB interface. Otherwise, you compile the current project that does n...
by LubinKerhuel
Fri Feb 26, 2010 10:36 pm
Forum: General Remark and Questions
Topic: UART on Explore16
Replies: 11
Views: 5302

Re: UART on Explore16

programmer > select programmer > ICD3 programmer > program between theses two step, load the .hex file, or the .coff file (I guess that's already done) Two more ideas : - Check the dsPIC configuration bits programmation : MPLAB can use either the configuration that is in the .hex/.coff file, or the...
by LubinKerhuel
Fri Feb 26, 2010 5:07 pm
Forum: General Remark and Questions
Topic: UART on Explore16
Replies: 11
Views: 5302

Re: UART on Explore16

Hey, - check that your programmer (ICD2 ?) is not in debug mode while loading the program. (it shouldn't as you compiled inside matalb and not directly into mplab). - check your hardware, specificaly the quartz signal ; do you use a pin MCLR, if so, is it tight to "1" properly. running time is it al...
by LubinKerhuel
Tue Feb 23, 2010 9:55 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: debugging registry
Replies: 2
Views: 2876

Re: debugging registry

Hi Josef,

This option _FICD( JTAGEN_OFF & ICS_PGD3 ) is added and will be available in the next blockset release (following V 3.1).
Is there any others "hard coded" options you will need ?
anyway, adding a general box is more complicated right now but may be done if necessary.

Lubin
by LubinKerhuel
Thu Feb 11, 2010 6:26 pm
Forum: Requirement, Installation & Configuration
Topic: 100% beginners
Replies: 4
Views: 3733

Re: 100% beginners

Hello I have downloaded the Install_dsPIC_R2007b for my Matlab. But this is a script file. How do I move forward * open matlab * run the script file : eigher you type its name, or you right click on the script file and click "run" This will install the blockset... at that place ! I guess bobes provi...
by LubinKerhuel
Thu Feb 11, 2010 6:22 pm
Forum: Requirement, Installation & Configuration
Topic: 64-Bit Compatibility
Replies: 2
Views: 3397

Re: 64-Bit Compatibility

Hi Alex, The blockset is not yet compatible with 64 bits matlab. The problem comes from the mexw32 files that only works on matlab 32 bits. I will try to switch soon on 64 bits system to adapt the blockset. The workaround for the moment is to install a matlab 32 bits on your 64 bits system. It works...
by LubinKerhuel
Thu Feb 11, 2010 5:33 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 19594

Re: Support for CAN Module?

I didn't get time yet to have a close look into the code. (I just moved on 1st February, new job and whatever, but no yet internet home, thus, I am not really in right now ) Anyway, I will try to do it. If I can help to find a workaround on the sampling time problem, let me know Also, if some part o...
by LubinKerhuel
Thu Feb 11, 2010 5:22 pm
Forum: General Remark and Questions
Topic: UART232 Configuration Problem
Replies: 5
Views: 2980

Re: UART232 Configuration Problem

Hello, I got another explanation : UART block is pink : that mean that block has a sampling time of inf : this block is executed only once at model start. Solution : sampling time of the UART block (different from UART speed) is inherited from the constant block. Thus, * open the constant block * se...
by LubinKerhuel
Wed Jan 27, 2010 11:19 pm
Forum: bug reports
Topic: Windows Viste 64-bits
Replies: 2
Views: 2742

Re: Windows Viste 64-bits

Hi Mikio,

Blockset is not yet adapted for 64bits matlab.
However, it is working on a a 64-bits OS equipped with a 32 bits version of matlab !

I'll try to adapt the blockst for the matlab 64 bits soon.

Lubin
by LubinKerhuel
Wed Jan 27, 2010 1:32 am
Forum: bug reports
Topic: PIC32. Problems with I2C.
Replies: 3
Views: 3783

Re: PIC32. Problems with I2C.

Hi Olivier,

I should do some more test on I2C with PIC32. I have no project using this target yet and errors may remains.
I'll try to have a look on it, but I may not be able to do it in the next two or three weeks.

Lubin
by LubinKerhuel
Wed Jan 27, 2010 1:26 am
Forum: bug reports
Topic: PORT D bug on DSPIC33FJ64(128)MC804
Replies: 3
Views: 3336

Re: PORT D bug on DSPIC33FJ64(128)MC804

I checked 33fj MC804 definition either on microchip h file, and in the blockset, it's coherent.

Could you check you select the correct dsPIC in the master block ?
Check then that your simulink model does not contain any port D.

Lubin
by LubinKerhuel
Mon Jan 25, 2010 6:32 pm
Forum: Requirement, Installation & Configuration
Topic: Build error in function rt_MatMultAndIncCC_Dbl
Replies: 25
Views: 14322

Re: Build error in function rt_MatMultAndIncCC_Dbl

Thus, installed examples do not compile when you install it newly, but the models you created, that are thus not replaced compile ?
This is due to path. The examples path are set for my computer. However, theses path error should be corrected with the yellow block "configure simulink for dsPIC"
Lubin
by LubinKerhuel
Sun Jan 24, 2010 12:29 am
Forum: Requirement, Installation & Configuration
Topic: Build error in function rt_MatMultAndIncCC_Dbl
Replies: 25
Views: 14322

Re: Build error in function rt_MatMultAndIncCC_Dbl

Hi John, Bobes provided a good advice. You may also try to click on the yellow block titled something like "configure simulink for dsPIC target". This block automatically check all path and should solve problems. If it did not do the job, I would be interrested to get the parameters of your computer...
by LubinKerhuel
Thu Jan 21, 2010 5:13 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: QEI - changed target, stoped working
Replies: 2
Views: 3358

Re: QEI - changed target, stoped working

Hi Josef, typically, chips that have 2 identical peripheral will have a peripheral ref in the peripheral configuration register, like QEI1 / QEI2. You should have a look on the doc of the chip. anyway, I did not has occasions to work on QEI peripheral. You may post your question after the forum thre...
by LubinKerhuel
Thu Jan 21, 2010 12:47 am
Forum: Requirement, Installation & Configuration
Topic: Build error in function rt_MatMultAndIncCC_Dbl
Replies: 25
Views: 14322

Re: Build error in function rt_MatMultAndIncCC_Dbl

Hi roel, thanks for reporting results. As far as I remember, I think there was another problem with "multirate models" compiled with matlab 2007b. This last bug is due to matlab 2007 code generation error. (I coudl not test it right now but I'll check that next week) Anyway, I hope you'll enjoy deve...
by LubinKerhuel
Tue Jan 19, 2010 3:51 pm
Forum: Requirement, Installation & Configuration
Topic: Build error in function rt_MatMultAndIncCC_Dbl
Replies: 25
Views: 14322

Re: Build error in function rt_MatMultAndIncCC_Dbl

Hi Roel, I made a mistake in the previous post : I did not delete the directory created during the code generation process containing the compiled matlab library. This library that cause you trouble when compiling with the latest C30 version, only with mablab 2007b. Because the binary file were alre...
by LubinKerhuel
Tue Jan 19, 2010 2:03 pm
Forum: dsPIC Peripherals
Topic: I2C - alternative pin
Replies: 2
Views: 2660

Re: I2C - alternative pin

This option has not been implemented yet.

I may have a look at it as it sound pretty easy to do.

Lubin
by LubinKerhuel
Tue Jan 19, 2010 1:59 pm
Forum: dsPIC Peripherals
Topic: pwm 2+2
Replies: 4
Views: 3098

Re: pwm 2+2

However I have now something else: I was trying to set the period externally, but I was asked for uint16. Is this correct? Yes, That is correct. Input value must be : requestedTime (in s) * { PWMmax (variable defined in the workspace) / Periode set in the block (in s) } You'll get a large value tha...
by LubinKerhuel
Tue Jan 19, 2010 1:12 pm
Forum: dsPIC Peripherals
Topic: pwm 2+2
Replies: 4
Views: 3098

Re: pwm 2+2

Hi Josef, It may not be possible to get two different PWM period from one "PWM motor" peripheral. However, you may use an Output Compare block that is capable to generate PWM signals with different periods. I just updated the PWM help page http://www.kerhuel.eu/wiki/Block/PWM_Motor_Output#Periode Pl...
by LubinKerhuel
Mon Jan 18, 2010 12:10 pm
Forum: Requirement, Installation & Configuration
Topic: Build error in function rt_MatMultAndIncCC_Dbl
Replies: 25
Views: 14322

Re: Build error in function rt_MatMultAndIncCC_Dbl

Hi Roel, I had a look first at the demo example compilation (2 in your previosu message). I tested the compilation in the same conditions : Matlab R2007b installation + RTW and embedded coder + C30ComboLite_v3_22 + blockset v201 And no problems appears. It compiled successfully on my computer. The c...
by LubinKerhuel
Fri Jan 15, 2010 2:30 am
Forum: Requirement, Installation & Configuration
Topic: Build error in function rt_MatMultAndIncCC_Dbl
Replies: 25
Views: 14322

Re: Build error in function rt_MatMultAndIncCC_Dbl

Hi Roel Leenen, Thanks for all theses informations. I tested recently the blockset with the C30ComboLite_v3_22 compiler version and it works without problems with that compiler. Could you - upload the model you attempted to compile on the forum so as to make me able to reproduce the problem. - try t...
by LubinKerhuel
Tue Jan 12, 2010 12:53 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 19594

Re: Support for CAN Module?

Hello, thanks for sharing this work. It would be very interresting to get an ECAN module compatible with the blockset. I try to have a close look within few weeks (2 or 3) and provide my comments. anyway, I wasn't able to clone the git repository, is it open access ? (I get the last zip file of the ...
by LubinKerhuel
Tue Dec 22, 2009 12:37 pm
Forum: General Remark and Questions
Topic: erreur
Replies: 2
Views: 5326

Re: erreur

essayer de cliquer, avant de compiler sur un block jaune qui permet de configurer le modèle, et corrige les chemins d'accés aux fichiers/compilateurs...
by LubinKerhuel
Thu Dec 10, 2009 9:42 am
Forum: dsPIC Peripherals
Topic: frequency mismatching
Replies: 5
Views: 3382

Re: frequency mismatching

This error means that a block is configured to run with a sampling rate that is either faster, or not an integer multiple of the the model sampling rage. In your model, the block Convert is defined with a sampling rate of 0.0001s. I would advise to set this block to -1 to get it working at the same ...
by LubinKerhuel
Wed Dec 09, 2009 6:03 pm
Forum: dsPIC Peripherals
Topic: frequency mismatching
Replies: 5
Views: 3382

Re: frequency mismatching

Hi Deepthi, Do you get a slower frequency ? could you describe, what are you seeing on your scope ? I do not see obvious errors on the model configuration BUT you selected a time step of 0.00001 which is 100Khz. That's very fast and perhaps the dspic cannot execute the mode that fast ! It may append...
by LubinKerhuel
Fri Nov 27, 2009 10:24 am
Forum: dsPIC Peripherals
Topic: frequency mismatching
Replies: 5
Views: 3382

Re: frequency mismatching

Hi Deepthi, Please upload the model you made (adding screenshoot is even better). this will help to identify the problem. On 30f chip, the real MIPS is the frequency of the quartz divided by 4 , and then multiplied with the choosen PLL (1 if no PLL) . See help http://www.kerhuel.eu/wiki/Block/Master...
by LubinKerhuel
Tue Nov 24, 2009 1:01 pm
Forum: Website
Topic: Forum Updates
Replies: 2
Views: 2357

Re: Forum Updates

updated : from phpbb 3.0.5 to phpbb 3.0.6,
updated : gym_sitemapsV2-0-RC3 to gym_sitemapsV2-0-0

Two rss flux can be used on the forum, the new RSS of the version 3.0.6 of phpbb, and the old one of gym_sitemaps.
by LubinKerhuel
Tue Nov 17, 2009 4:39 pm
Forum: General Remark and Questions
Topic: PIC24 RS-232???
Replies: 1
Views: 1932

Re: PIC24 RS-232???

Provided you have simulink, try to program your dsPIC using Simulink and this blockset : http://www.kerhuel.eu/wiki/Release_Notes
Otherwise, you would porbably get better responses on the microchip forum.

Lubin