Search found 616 matches

by LubinKerhuel
Mon Mar 14, 2011 2:23 pm
Forum: bug reports
Topic: Infinite sampling-time blocks can't chain together
Replies: 4
Views: 9998

Re: Infinite sampling-time blocks can't chain together

Does your init functions requires input parameters and output results, or is it only a initialisation function without any input/output parameters ?
If so, there might be a possibility for me to adapt the C function Call block...
by LubinKerhuel
Sun Mar 13, 2011 12:28 pm
Forum: bug reports
Topic: Infinite sampling-time blocks can't chain together
Replies: 4
Views: 9998

Re: Infinite sampling-time blocks can't chain together

Hi Bryant,

I didn't took into account your first post.
Anyway, I'll look at this now.
Would you have a model example to share as it's always faster to start from an example illustrating the problem.

I'll do my own if it's complicated for you

Lubin
by LubinKerhuel
Sun Mar 13, 2011 12:18 am
Forum: bug reports
Topic: Generated MPLAB projects don't allow debugging
Replies: 2
Views: 7640

Re: Generated MPLAB projects don't allow debugging

Thanks Bryant,

This will be taken into account in the next release (after 3.4c).

Lubin
by LubinKerhuel
Thu Mar 10, 2011 5:33 pm
Forum: bug reports
Topic: Generated MPLAB projects don't properly include source files
Replies: 6
Views: 13624

Re: Generated MPLAB projects don't properly include source f

Is it possible to evaluate relative paths before specifying those files within the MPLAB project? Just doing that should fix all of these problems. That should be possible, thanks for your suggestion. It may be even better to have a relative path for such file witin the MPLAB project. Would MPLAB a...
by LubinKerhuel
Mon Mar 07, 2011 7:51 am
Forum: General Remark and Questions
Topic: Error when compiling
Replies: 3
Views: 11698

Re: Error when compiling

Could you post your model on the forum so as to see what is the problem ?
by LubinKerhuel
Sun Mar 06, 2011 10:56 pm
Forum: Advanced Simulink & RTW Questions
Topic: Digital Output Write whole 16 bit word
Replies: 2
Views: 9279

Re: Digital Output Write whole 16 bit word

Hi John, How can I send a 16 bit number to port B In the blockset current version, this is a pain to do as you will have to decompose each bytes of your 16 bits number to feed a write block. I should probably write another digital write function for this! Anyway, waiting for it, I would recommend to...
by LubinKerhuel
Sat Mar 05, 2011 6:43 pm
Forum: bug reports
Topic: MPLAB Compilation
Replies: 1
Views: 7228

Re: MPLAB Compilation

First, please download the latest blockset version available on the wiki. Then, do not use the MPLAB Matlab menu. Just open your model within matlab, compile it. If you want to open the generated C code within MPLAB, just open the mplab project file that is generated within Matlab. (instruction are ...
by LubinKerhuel
Tue Mar 01, 2011 11:44 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Improve duplicate ports warning
Replies: 2
Views: 8005

Re: Improve duplicate ports warning

Would it be possible to improve these warning so that they say what block was being evaluated when the duplicate port use was found? It would also be nice is during compilation a list of all used ports and which ones they were could be output instead of just how many pins are used All is done in ve...
by LubinKerhuel
Sun Feb 27, 2011 1:21 am
Forum: bug reports
Topic: PWM module 1 and 2
Replies: 5
Views: 11423

Re: PWM module 1 and 2

Bobes wrote:could you make them PWMn: PWM1 and PWM2?
will be PWM and PWM2 ( for backward compatibility)

Will be updated with the next blockset version (following V3.4b).
Lubin
by LubinKerhuel
Sun Feb 27, 2011 12:48 am
Forum: bug reports
Topic: PWM module 1 and 2
Replies: 5
Views: 11423

Re: PWM module 1 and 2

First part workaround: it looks like a .h definition file about PWM 2 peripheral is missing It seems to be a microchip error in the pwm12.h definition file still remaining in v3.22 compiler version ! already published on the wiki : http://www.kerhuel.eu/wiki/Pic30-gcc_v3.12_bugfix Search for the pwm...
by LubinKerhuel
Sat Feb 26, 2011 11:52 pm
Forum: bug reports
Topic: Two UARTs in a single model
Replies: 2
Views: 7766

Re: Two UARTs in a single model

Thanks for repporting the problem.
Problem is now solved and will be available in next blockset version (following v3.4b)

Lubin
by LubinKerhuel
Sat Feb 26, 2011 8:49 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: delay between PWM
Replies: 1
Views: 6786

Re: delay between PWM

Here is your model: model.PNG how can there be a delay between these 3 signals? I do not think there is a robust way to do it. Anyway, you may try the Output Compare Hardware (OC (HW)) (instead of the Output Compare ( OC )) block which I used for picooz motor control or this other example . With OC ...
by LubinKerhuel
Wed Feb 23, 2011 12:09 pm
Forum: bug reports
Topic: error compilation
Replies: 5
Views: 12649

Re: error compilation

Could you test with the model I uploaded on the forum ?
by LubinKerhuel
Tue Feb 22, 2011 11:59 pm
Forum: bug reports
Topic: PWM module 1 and 2
Replies: 5
Views: 11423

Re: PWM module 1 and 2

Hi Josef, Thanks for the report. We have experienced problems when using only second PWM module on dsPIC33fj128mc804. it does not compile correctly. Log is enclosed. When we added the first PWM module, it works fine. From the report you posted, it looks like a .h definition file about PWM 2 peripher...
by LubinKerhuel
Tue Feb 22, 2011 11:44 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Improve duplicate ports warning
Replies: 2
Views: 8005

Re: Improve duplicate ports warning

Hi Bryan, Thanks for looking closely at the generated warning. Few guys does it I guess. I will try to take into account your remarks about telling which peripheral use which port. There might be necessary to do few internal changes to do so. The best would then be to create a sketch diagram of the ...
by LubinKerhuel
Mon Feb 21, 2011 12:51 pm
Forum: bug reports
Topic: error compilation
Replies: 5
Views: 12649

Re: error compilation

Working version attached.
LubinKerhuel wrote:Please try to copy/past from the matlab workspace the errors you obtain using the forum Code function. Try to add to the model you posted a screenshot of it. It may help other users and I may respond faster.
Lubin
by LubinKerhuel
Fri Feb 18, 2011 10:12 am
Forum: bug reports
Topic: error compilation
Replies: 5
Views: 12649

Re: error compilation

Hi Elmay, Unexpected problem, easily solved however ! It happens that your model name pwm.mdl generates C code files with the same name (i.e. pwm.c and pwm.h ). But the model must include another files which is pwm.h from the microchip library. Here, the generated file pwm.h shadows the microchip li...
by LubinKerhuel
Tue Feb 15, 2011 11:01 pm
Forum: Website
Topic: Set up a Wiki ?
Replies: 5
Views: 11625

Re: Set up a Wiki ?

Hi John, Thanks for your help ! I just find your message back ! Defautl wiki user do not have right to create new pages. Anyway, you were promoted and will now get more right on the wiki. Let's me know if its Ok when you'll try again. Any help is more than welcome for adding examples, correction a o...
by LubinKerhuel
Tue Feb 15, 2011 10:55 pm
Forum: General Remark and Questions
Topic: explorer16 demo still working?
Replies: 2
Views: 10116

Re: explorer16 demo still working?

Thanks for the problem report.

I corrected the example and next blockset version will be Ok (thus, above 3.4b).
Don't know what's happend as I did not modify anything also !

Nice curve :)
Lubin
by LubinKerhuel
Tue Feb 15, 2011 10:49 pm
Forum: General Remark and Questions
Topic: Can not add anything to my schematic
Replies: 2
Views: 10173

Re: Can not add anything to my schematic

Hi fabien,

Weird problem! Not sure to get it all ; it might be helpful to post the model so as to get more insight.

Anyway, you might try to use the Busy flag port (see Master block) and a scope to check what's really going on.

Lubin
by LubinKerhuel
Tue Feb 15, 2011 10:33 pm
Forum: Advanced Simulink & RTW Questions
Topic: Rs 232 Gui Interface with PIC 32 starter kit
Replies: 1
Views: 7507

Re: Rs 232 Gui Interface with PIC 32 starter kit

Hi, I hardly use this starter kit. As far as I remember, It is not possible to connect to the dsPIC UART from the USB. (I think that USB is connected to a PIC with USB peripheral which may act as a bootloader only). Try to find an available UART pin on the board. You may then connect the two pin (Rx...
by LubinKerhuel
Tue Feb 15, 2011 10:27 pm
Forum: bug reports
Topic: PSV model for interrupts not explicitly declared
Replies: 2
Views: 8538

Re: PSV model for interrupts not explicitly declared

Hi Bryan,

I corrected the problem by addiin the PSV model option within the interrupt. (I used the auto_psv option).
Will be realease with the next version.

Anyway, the generated code is Ok despite of this warning.

Thanks for the suggestion.

Lubin
by LubinKerhuel
Tue Feb 15, 2011 10:24 pm
Forum: Version compatibility issues
Topic: SLUGS - an open source autopilot
Replies: 24
Views: 424151

Re: SLUGS - an open source autopilot

Hi Dan, There are two ways to execute the linker : - Either calling directly the linker executable: pic30-ld - Neither calling the compiler with appropriate flags (compiler is pic30-gcc ) In one of the recent version I tested (3.25), I could not manage to get the linker pic30-ld working properly. Th...
by LubinKerhuel
Tue Feb 15, 2011 1:33 am
Forum: Requirement, Installation & Configuration
Topic: Getting Started PIC32 Cerebot
Replies: 1
Views: 8302

Re: Getting Started PIC32 Cerebot

Thank you very much for sharing this here.

I Created a wiki page with link to your pdf and simulink model file. Please feel free to edit it as you want. The main example page link to this new page.

I modified you right on the wiki. You might be able to create new pages if you want to.

Lubin
by LubinKerhuel
Sat Jan 08, 2011 11:54 pm
Forum: General Remark and Questions
Topic: how to send data using rs232gui
Replies: 3
Views: 11169

Re: how to send data using rs232gui

Hi Justin, You may have a look on the Flex Board blinking LED example This example demonstrates how to modify a variable in your model running in real time into your dsPIC, through the UART and using the rs232gui graphical interface available in the blockset. Please have a look on this one. You may ...
by LubinKerhuel
Sat Jan 08, 2011 11:42 pm
Forum: dsPIC Peripherals
Topic: I/O pins allocation
Replies: 1
Views: 7089

Re: I/O pins allocation

Hi Nadav, Not sure to understand your question. dspic 33FJ256GP710A does not have PWM motor peripheral. However, you could use Output Compare peripheral. On the datasheet on page 17, you can see the dsPIC pin diagram and thus you will be able to locate Output Compare (from OC1 to OC8). Thus, to use ...
by LubinKerhuel
Fri Dec 10, 2010 9:34 pm
Forum: General Remark and Questions
Topic: Long time acquisitions using rs232gui/labview
Replies: 5
Views: 9033

Re: Long time acquisitions using rs232gui/labview

Hi Vânia, I am not sure to get it. If you use a hyperterminel like realterm, you will record raw data into a file but you will not be able to see graph in real time ; only binary data that will appears on the screen with sometime beep (I think ascii 7). To record data while seeing curve in real time...
by LubinKerhuel
Fri Dec 10, 2010 12:27 am
Forum: General Remark and Questions
Topic: Long time acquisitions using rs232gui/labview
Replies: 5
Views: 9033

Re: Long time acquisitions using rs232gui/labview

Labview is also pretty goog for logging data. I think I already upload on the forum few labview file.
An exemple of the protocole is presented on my old (french) website : see http://lubink.free.fr/projelectro/Proto ... ew_FR.html
by LubinKerhuel
Thu Dec 09, 2010 11:44 pm
Forum: General Remark and Questions
Topic: Long time acquisitions using rs232gui/labview
Replies: 5
Views: 9033

Re: Long time acquisitions using rs232gui/labview

Hi Vânia ,

I updated the wiki page with a response to your question.
http://www.kerhuel.eu/wiki/Block/Interf ... b#Long_log

I hope it will help.

Lubin
by LubinKerhuel
Wed Dec 08, 2010 11:08 pm
Forum: bug reports
Topic: Error loading example
Replies: 17
Views: 24351

Re: Error loading example

Thx Onur for precious help and for your feedback !
Lubin
by LubinKerhuel
Sun Dec 05, 2010 11:06 pm
Forum: bug reports
Topic: Error loading example
Replies: 17
Views: 24351

Re: Error loading example

Hi Onur, Hi mickpowell,

Thanks for all your remarks that makes me go forward.
I think I find out the problem. Please give a try to the latest blockset version (3.3b) and let me know if problem is solved.

Thanks
Lubin
by LubinKerhuel
Sun Dec 05, 2010 11:00 pm
Forum: Version compatibility issues
Topic: SLUGS - an open source autopilot
Replies: 24
Views: 424151

Re: SLUGS - an open source autopilot

There could be something wrong with the makefile that is being used by MATLAB to generate the hex file That's correct ! There was something wrong with the makefile that does not work anymore with the latest Microchip linker pic30-ld (V3.25). I could not have this tools working (with this version on...
by LubinKerhuel
Fri Dec 03, 2010 1:10 am
Forum: bug reports
Topic: Error loading example
Replies: 17
Views: 24351

Re: Error loading example

Hi Onur and mickpowell Thanks Onur for uploading your illustration on the forum. From your message, i appears that there may be a bug in the blockset for some computer configuration. As I can't reproduce it, I would ask for your help. Could you please upload the file testing.p, copy it in the exampl...
by LubinKerhuel
Fri Dec 03, 2010 1:04 am
Forum: bug reports
Topic: Error loading example
Replies: 17
Views: 24351

Re: Error loading example

Hi Onur and mickpowell Thanks Onur for uploading your illustration on the forum. From your message, i appears that there may be a bug in the blockset for some computer configuration. As I can't reproduce it, I would ask for your help. Could you please upload the file testing.p, copy it in the exampl...
by LubinKerhuel
Thu Dec 02, 2010 12:44 pm
Forum: General Remark and Questions
Topic: can i make real time speech processing and dsc starter kit
Replies: 5
Views: 14843

Re: can i make real time speech processing and dsc starter k

I guess pic18 serve only for programming the main dsPIC 33.
Thus, you will not be able to use USB interface for your own program.
If you have few input/output on the board for sound, it should be Ok.

Lubin
by LubinKerhuel
Thu Dec 02, 2010 1:25 am
Forum: bug reports
Topic: Error loading example
Replies: 17
Views: 24351

Re: Error loading example

Hi Onur, Thanks for your report. Please upload directly your image on the forum, it's much more easier to see and open them than through rapidShare. Anyway, at first, I could not reproduced the bug. However, I saw that you have the Microchp blockset installed. Thus I installed it on my system (v2.10...
by LubinKerhuel
Wed Dec 01, 2010 8:18 pm
Forum: General Remark and Questions
Topic: can i make real time speech processing and dsc starter kit
Replies: 5
Views: 14843

Re: can i make real time speech processing and dsc starter k

Hi, It's possible to do real time sound processing with matlab simulink. The signal processing blockset has a microphone block and a speaker block allowing doing this. There are also few toolbox that may accelerate real time processing on your computer (windows target ?). MPLAB Starter Kit for dsPIC...
by LubinKerhuel
Wed Dec 01, 2010 8:11 pm
Forum: bug reports
Topic: Error loading example
Replies: 17
Views: 24351

Re: Error loading example

Okay,

Let's see what's happening.
Can you compile the examples in the demo directory ?
did you tried to dbclick the yello block that configure and should solve automatically few problems ?

If you started a model from scratch, please upload it on the forum so I can have a look.
Lubin
by LubinKerhuel
Tue Nov 30, 2010 11:33 pm
Forum: bug reports
Topic: slow matlab
Replies: 5
Views: 11462

Re: slow matlab

Hey, did you solve the problem ?
A new blockset version is available, could you let me know if you still get the problem with this new one ?

Lubin
by LubinKerhuel
Tue Nov 30, 2010 11:31 pm
Forum: Requirement, Installation & Configuration
Topic: How to configure PLL and maintain correct time
Replies: 8
Views: 16086

Re: How to configure PLL and maintain correct time

Thanks for illustrating what I was talking about the Configuration bits. The picture shows a correct configuration.

Good to see the blockset working now.
Provided you could reproduce the bug, I would be glad to get the how you did so as to correct that problem !

Lubin
by LubinKerhuel
Tue Nov 30, 2010 11:29 pm
Forum: Version compatibility issues
Topic: SLUGS - an open source autopilot
Replies: 24
Views: 424151

Re: SLUGS - an open source autopilot

Doesn't this mean that it compiled sucessfully? Yes, very good news ! Theoretically, I should be able to compile in MATLAB till it breaks then open the mcp file to finish the hex compile right? Yes. If I were in your shoes, I would (at least once) delete the two generated folder : slpjr and control...
by LubinKerhuel
Tue Nov 30, 2010 6:43 pm
Forum: Version compatibility issues
Topic: SLUGS - an open source autopilot
Replies: 24
Views: 424151

Re: SLUGS - an open source autopilot

Hi Dan, It seems you model file get two MASTER blocks now ! One of them may be in a subsystem ? Here is the message I get while opening the model : Warning: Could not find an exact (case-sensitive) match for 'ExecBatch'. C:\Program Files\81eq9Z16RLFXQ\dspic\execBatch.m is a case-insensitive match an...
by LubinKerhuel
Tue Nov 30, 2010 10:28 am
Forum: Version compatibility issues
Topic: SLUGS - an open source autopilot
Replies: 24
Views: 424151

Re: SLUGS - an open source autopilot

I also have MPLAB IDE installed on my computer. While installing MPLAB, Mirochip also propose to install compiler and so on. I usually install them all.
Thus, you may try to install MPLAB also (freely available from Microchip website)

Lubin
by LubinKerhuel
Tue Nov 30, 2010 8:41 am
Forum: Requirement, Installation & Configuration
Topic: How to configure PLL and maintain correct time
Replies: 8
Views: 16086

Re: How to configure PLL and maintain correct time

Could you check that, in MPLAB, the configuration bits are also programmed (because there is a checkbox option in MPLAB that force the configuration options bits with the current GUI config...)

Lubin
by LubinKerhuel
Tue Nov 30, 2010 12:07 am
Forum: General Remark and Questions
Topic: CAN Communication Between two PIC microcontrollers
Replies: 1
Views: 5084

Re: CAN Communication Between two PIC microcontrollers

Hello, I did not build an example with CAN communication yet as I was waiting to suport ECAN to build a demo of CAN peripheral communicating with ECAN. Anyway, I attach the two messy model used at testing time. I used two 30f4012 dsPIC that communicate throught CAN. I am not sure the two models are ...
by LubinKerhuel
Mon Nov 29, 2010 10:47 pm
Forum: Requirement, Installation & Configuration
Topic: How to configure PLL and maintain correct time
Replies: 8
Views: 16086

Re: How to configure PLL and maintain correct time

Are you using a bootloader ?
Bootloader typically do not program config registers where PLL and others parameters are stored.

Otherwise, Could you upload the modified model on the forum ? Something's wrong !

Lubin
by LubinKerhuel
Mon Nov 29, 2010 9:03 pm
Forum: Requirement, Installation & Configuration
Topic: How to configure PLL and maintain correct time
Replies: 8
Views: 16086

Re: How to configure PLL and maintain correct time

When I increase the dspic master to 40 MIPS, it clearly affects the time step of the model (the LEDs blink much faster, for example). Are you increasing the speed using the MASTER block ? Time step should not be affected (make sure you recompile the model. Perhaps try to compile it twice ! (to make...
by LubinKerhuel
Mon Nov 29, 2010 9:00 pm
Forum: Advanced Simulink & RTW Questions
Topic: rs232gui and PIC32 starter kit
Replies: 16
Views: 28199

Re: rs232gui and PIC32 starter kit

That is my old French website (beautiful, but perhaps not accurate enough) Anyway, when you are using a virtual COM port, for example a USB adaptator, this one can take any number of COM port. It usually remains stable. You have to check your computer config (easiest way is to use the list of hardwa...
by LubinKerhuel
Mon Nov 29, 2010 8:44 pm
Forum: Version compatibility issues
Topic: SLUGS - an open source autopilot
Replies: 24
Views: 424151

Re: SLUGS - an open source autopilot

Ok for me
by LubinKerhuel
Mon Nov 29, 2010 1:25 pm
Forum: Version compatibility issues
Topic: SLUGS - an open source autopilot
Replies: 24
Views: 424151

Re: SLUGS - an open source autopilot

I think it is a good time for a Skype telecon, ideally with Lubin Joining us. I'll ba available on monday eivening (either about 19h30, or 20h30 or later on, French time is UTC+1.) Lubin PS : I uploaded on the forum directly mariano dropbox's file (more sustainable for the forum). Prefere using the...