Search found 616 matches
- Wed Feb 13, 2008 6:11 pm
- Forum: Requirement, Installation & Configuration
- Topic: How to change directory?
- Replies: 20
- Views: 34674
Re: How to change directory?
Something is wrong. In the Real Time Workshop , you have - Comment - Symbols - Custom Code - Debug You should have - Comment - Symbols - Custom Code - Debug - DsPIC options Could you try to select another target than dsPIC.tlc (ert.tlc or any other), click apply, then, choose again dsPIC.tlc, click ...
- Wed Feb 13, 2008 4:58 pm
- Forum: Requirement, Installation & Configuration
- Topic: How to change directory?
- Replies: 20
- Views: 34674
Re: How to change directory?
from http://www.kerhuel.eu/forum/viewtopic.php?f=5&t=73#p152 : You can check by typing at the matlab prompt the command: rtw_alt_pathname('C:\Program Files\Microchip\MPLAB C30') If you do not get C:\PROGRA~1\MICROC~1\MPLABC~1, you will have to change the short path in Simulink : Simulation ==> Confi...
- Wed Feb 13, 2008 1:13 pm
- Forum: Requirement, Installation & Configuration
- Topic: How to change directory?
- Replies: 20
- Views: 34674
Re: How to change directory?
Hi Michele,
a similar problem with its solution are described here : viewtopic.php?f=5&t=73#p152
Adapt and try the solution proposed.
adaptation would be ==> rtw_alt_pathname('C:\Programmi\Microchip\MPLAB C30')
If you still have the problem, please let us know.
a similar problem with its solution are described here : viewtopic.php?f=5&t=73#p152
Adapt and try the solution proposed.
adaptation would be ==> rtw_alt_pathname('C:\Programmi\Microchip\MPLAB C30')
If you still have the problem, please let us know.
- Wed Feb 06, 2008 10:33 pm
- Forum: General Remark and Questions
- Topic: How can I open RS232 user interface?
- Replies: 15
- Views: 20554
Re: How can I open RS232 user interface?
It's at your convenience...
- Tue Feb 05, 2008 11:16 pm
- Forum: General Remark and Questions
- Topic: How can I open RS232 user interface?
- Replies: 15
- Views: 20554
Re: How can I open RS232 user interface?
Hi Surfer, You will find many forums with useful help. The matlab help is also very useful. However, from my experiment: On matlab, and with some computer (depending on its own hardware) Opening serial communication will crash matlab if data are being sent from the other side, while matlab open the ...
- Mon Feb 04, 2008 11:56 pm
- Forum: Request for new functions / Peripheral / Chip support
- Topic: RTWdsPIC: I2C & Complete version ?
- Replies: 4
- Views: 10703
Re: RTWdsPIC: I2C & Complete version ?
Hi Johan,
I worked recently on the I2C Peripheral. It is finished and will be released in the next version (one or two weeks...).
The page http://www.kerhuel.eu/RTWdsPIC/pricing.html will be updated in march (2008).
I worked recently on the I2C Peripheral. It is finished and will be released in the next version (one or two weeks...).
The page http://www.kerhuel.eu/RTWdsPIC/pricing.html will be updated in march (2008).
- Mon Feb 04, 2008 11:48 pm
- Forum: General Remark and Questions
- Topic: How can I open RS232 user interface?
- Replies: 15
- Views: 20554
Re: How can I open RS232 user interface?
Hi Surfer !
I hope to publish the Labview schematic that can decode the data sent by the dsPIC (encoded with the simulink block Tx_Matlab_Labview). I currently do not find time to do it.
Lubin
I hope to publish the Labview schematic that can decode the data sent by the dsPIC (encoded with the simulink block Tx_Matlab_Labview). I currently do not find time to do it.
Lubin
- Sun Feb 03, 2008 12:25 pm
- Forum: General Remark and Questions
- Topic: How can I open RS232 user interface?
- Replies: 15
- Views: 20554
Re: How can I open RS232 user interface?
The rs232gui interface: http://www.kerhuel.eu/RTWdsPIC/Blocks/Img/InterfaceTxMatlabDialog.png should be used with the block http://www.kerhuel.eu/RTWdsPIC/Blocks/Img/TxOutputMultiplexed.png The block builds a communication layer to allow plotting up to 16 different data channel coded using either 8,...
- Sat Feb 02, 2008 4:02 pm
- Forum: General Remark and Questions
- Topic: How can I open RS232 user interface?
- Replies: 15
- Views: 20554
Re: How can I open RS232 user interface?
This file is the Matlab script that will install the toolbox in the current folder. Launch it at the matlab prompt.surfer wrote:install_dsPIC_R2006a.m
- Sat Feb 02, 2008 3:04 pm
- Forum: General Remark and Questions
- Topic: How can I open RS232 user interface?
- Replies: 15
- Views: 20554
- Sat Feb 02, 2008 2:04 pm
- Forum: General Remark and Questions
- Topic: How can I open RS232 user interface?
- Replies: 15
- Views: 20554
Re: How can I open RS232 user interface?
Wen you installed the toolbox, the installer unpacked the two files rs232gui.p and rs232gui.gui in the '/blocks' directory. The blocks directory is also added in the matlab path. (File -> Set Path ...). Check that theses two files are present in the blocks directory. Try to launch the rs232gui.p fil...
- Thu Jan 31, 2008 9:15 am
- Forum: Requirement, Installation & Configuration
- Topic: Matlab: Error while building model
- Replies: 3
- Views: 14336
Re: Matlab: Error while building model
H Johan, It seems it is the same problem : have a look on the following topic sumedhk get similar error : a missing gld file was reported. could you try the solution explained on the topic : Issues in dsPIC 30f6014 compiling : Missing gld & DCI Periph : Ant let me know if you still get the error.
- Thu Jan 31, 2008 8:47 am
- Forum: General Remark and Questions
- Topic: How can I open RS232 user interface?
- Replies: 15
- Views: 20554
Re: How can I open RS232 user interface?
To open the RS232gui user interface, either you type at the matlab prompt :
>> rs232gui
or you place the block
in you model, and you double click on it to open the interface.
>> rs232gui
or you place the block
in you model, and you double click on it to open the interface.
- Sun Jan 27, 2008 12:21 am
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Simulation of dsPIC peripheral
- Replies: 1
- Views: 7985
Re: view the PWM signals in simulink platform
Hi Nanshi, The aim of the dsPIC blockset is not to simulate the behavior of the dsPIC or PIC24 peripheral. Its aim is to automatically generate the C code to configure these peripheral, and to integrate this code into the C code generated by Simulink and the Real Time Workshop Embedded Coder toolbox...
- Tue Jan 22, 2008 10:06 am
- Forum: Requirement, Installation & Configuration
- Topic: genMakefileAndBuild
- Replies: 12
- Views: 23026
Re: genMakefileAndBuild
Hi Nanshi, MPLAB_C30_v3_02-studentEdition <== could this be the problem, if yes where can get usable version (Free or trial version) ? This is not the problem: the student version of the C30_V3_02 work with the dsPIC blockset ! I also saw forum posted by Mr.Peter. You replying "The toolbox must not ...
- Mon Jan 21, 2008 9:28 am
- Forum: Requirement, Installation & Configuration
- Topic: RTW vs. RTW embedded coder
- Replies: 1
- Views: 8077
Re: RTW vs. RTW embedded coder
Hi Masaki,
Real Time Workshop Embedded Coder is required for the dsPIC blockset.
It will not work without RTW Embedded Coder. (RTW Embedded Coder works on top or Real Time Workshop, so you need both)
Real Time Workshop Embedded Coder is required for the dsPIC blockset.
It will not work without RTW Embedded Coder. (RTW Embedded Coder works on top or Real Time Workshop, so you need both)
- Mon Jan 21, 2008 12:06 am
- Forum: Requirement, Installation & Configuration
- Topic: genMakefileAndBuild
- Replies: 12
- Views: 23026
Re: genMakefileAndBuild
Hi Aunanshi The mdl file 'try3.mdl' compile successfully on my system. Could you provide more details on the error : Which matlab version are you using, Is real time workshop and Real Time Workshop Embedded Coder installed on your system, Which version of the C30 compiler are you using ; Is this the...
- Sat Jan 19, 2008 7:09 pm
- Forum: Requirement, Installation & Configuration
- Topic: genMakefileAndBuild
- Replies: 12
- Views: 23026
Re: genMakefileAndBuild
Hi, could you upload on the forum the simulink file that generate that error ?
- Thu Jan 17, 2008 11:50 am
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Issues in dsPIC 30f6014 compiling : Missing gld & DCI Periph
- Replies: 2
- Views: 13107
Re: Issues in dsPIC 30f6014 compiling : Missing gld & DCI Periph
Hi sumedhk I use short path name ("compatible 8.3") to invoke the C30 compiler in Matlab. Perhaps that the short path name for the directory 'C:\Program Files\Microchip\MPLAB C30\support\gld' is false. ( for example, it could be C:\PROGRA~1\MICROC~1\MPLABC~1 or C:\PROGRA~1\MICROC~2\MPLABC~1 You can ...
- Sat Jan 12, 2008 10:52 pm
- Forum: General Remark and Questions
- Topic: c code and mplab
- Replies: 3
- Views: 8362
Re: c code and mplab
ropeekollee, C code generated by simulink can be imported into any microcontrollers or DSP that have a C compiler which can compile "standard C". Anyway, most microcontrollers (and dsPIC) have an PWM peripheral. In other word, the PWM signal is generated by the internal electronics. You just need to...
- Mon Jan 07, 2008 1:28 am
- Forum: Request for new functions / Peripheral / Chip support
- Topic: DSPIC30F1010/DSPIC30F2020 support
- Replies: 7
- Views: 14358
Re: DSPIC30F1010/DSPIC30F2020 and 30f2023 support
Hi Narongchai, The dsPIC 30f1010, 30f2020 and 30f2023 are quite different from others dsPIC30f family. Some modification must be done on the blockset to support these chips. So, If many users ask for the support of theses dsPIC, I will manage to support them (time consuming work). Users interested b...
- Fri Dec 28, 2007 11:35 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: Thrust for unmanned two-engine aircraf : Problem with blocks
- Replies: 1
- Views: 8306
Re: Thrust for unmanned two-engine aircraf : Problem with blocks
Thanks for your message Phil. The error comes from the multiple use of blocks that should be used only once in a model : If you are to use more that one Input Capture port, use only One block IC and configure this block to get many IC ports. Same remark for the ADC block,PWM motor block, OC block an...
- Sat Dec 22, 2007 5:23 pm
- Forum: General Remark and Questions
- Topic: sr232 read data
- Replies: 2
- Views: 6319
Re: RS232 read data
Tahir,
I do not understand the question. Could you provide more information? Do you want to control 4 servo using PWM output on the dsPIC, based on a consign provided by the PC through RS232 ?
Post your simulink model on the forum with the question or problem to resolve.
Lubin
I do not understand the question. Could you provide more information? Do you want to control 4 servo using PWM output on the dsPIC, based on a consign provided by the PC through RS232 ?
Post your simulink model on the forum with the question or problem to resolve.
Lubin
- Sat Dec 15, 2007 2:03 pm
- Forum: bug reports
- Topic: Errors on testing the first examples in 0.94eb version...
- Replies: 6
- Views: 13484
Re: Errors on testing the first examples in 0.94eb version...
It is now possible to upload files on the forum !just4you wrote:P.S > I hope I can upload a file in the forum site..
- Mon Dec 10, 2007 11:00 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: counter application
- Replies: 8
- Views: 16735
Hi Learner, It seems this is a compiler problem. I guess it do not find the definitions files for 33f mcu on your computer. It is working on my computer. Did you install the definition files for the 33f mcu familly ? Could you update your C30 compiler and install the last MPLAB (including support fo...
- Tue Dec 04, 2007 11:19 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: counter application
- Replies: 8
- Views: 16735
C function Call
Hi Learner, If I go with the "C Function Call" block (I know it is only available for full version) 1) Is there any restrictions/limitations for me to write/read any Special Function Registers (SFR) of the dsPIC within the C code (provided I don't corrupt other code)? You could write any PIC registe...
- Tue Dec 04, 2007 11:36 am
- Forum: Advanced Simulink & RTW Questions
- Topic: counter application
- Replies: 8
- Views: 16735
Hi Learner I understand that you want to make me working harder! As you mention, implementing the timer blocks would be pretty much similar to implementing the other peripherals: a nice piece a work! For counter, you should use a discrete resetable integrator provided in the simulink default library...
- Sun Dec 02, 2007 12:10 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: counter application
- Replies: 8
- Views: 16735
Hi Learner, I’m glad that the blockset succeed to program your board. Thanks for this interesting problem. Could you give more detail about it. What do you want to count? About your problem, setting the time step of the simulink diagram to 1/300KHz = 3.3us will probably not work! With the dsPIC peri...
- Thu Nov 29, 2007 10:21 pm
- Forum: Requirement, Installation & Configuration
- Topic: Matlab error
- Replies: 1
- Views: 7974
- Thu Nov 22, 2007 12:37 am
- Forum: General Remark and Questions
- Topic: dspic30f6010
- Replies: 1
- Views: 5172
- Tue Nov 20, 2007 12:26 am
- Forum: dsPIC Peripherals
- Topic: Output Compare block
- Replies: 1
- Views: 8059
Configure the channel to 'Up - Period' (5) The Up input (uint 16) of the block set the Duty Cycle, and the Period input (uint 16) of the block set the period. You must define the max period you will use in 'Max / Channel'. One uint 16 variable is automaticaly defined in the matlab workspace : OC?max...
- Wed Oct 17, 2007 7:19 pm
- Forum: General Remark and Questions
- Topic: Servo Sinus at 0.95 compiled well and Some Question.
- Replies: 1
- Views: 4578
It's up to you. I use the toolbox for my PhD. I build complex models. I am very happy that I can concentrate much on the math and less on the peripheral configuration. Stateflow is a very good tool. There is one or two important chapter to read in the help to fully exploit its possibility. If the to...
- Wed Oct 10, 2007 9:24 pm
- Forum: dsPIC Peripherals
- Topic: C function call
- Replies: 4
- Views: 12278
My advice is to place the c file in the same directory as your mdl file. You must add the C file in Simulation >> Configuration Parameters >> Custom Code >> include directory >> type the directory of your mdl file. and Simulation >> Configuration Parameters >> Custom Code >> Sources files >> type th...
- Sat Oct 06, 2007 1:31 pm
- Forum: bug reports
- Topic: Errors on testing the first examples in 0.94eb version...
- Replies: 6
- Views: 13484
OC and IC will not be assigned to Timer 4 or above !
Very nice bug! Timers are assigned automatically to get the best result (using my criterion!) Unfortunately, Input Capture and Output Compare could only be assigned to Timer 2 or to Timer 3. The optimization algorithm that set timer's prescaler and assign Timer did not take into account this constra...
- Sat Oct 06, 2007 1:22 pm
- Forum: Requirement, Installation & Configuration
- Topic: Target for dsPIC's errors on my system...
- Replies: 5
- Views: 12619
Bug corrected
The new version with bug corrected is now available : V0.95a Several improvement have also been made to this version which now support 56 Microcontrolleurs. Download it here : http://www.kerhuel.eu/RTWdsPIC/download.html Release notes can be found here : http://www.kerhuel.eu/RTWdsPIC/ReleaseNotes.h...
- Sat Sep 29, 2007 1:32 pm
- Forum: bug reports
- Topic: Errors on testing the first examples in 0.94eb version...
- Replies: 6
- Views: 13484
I find the bug; While I correct it, you could avoid it by setting the auto configuration of the timer4 and above to off by setting to 0 at : dsPIC MASTER block dialog box tab : Real Time - Quartz Config Timer [2 3 4 ...] The value should look like this: [-1 -1 0 0 ...] The number of zero depends on ...
- Fri Sep 28, 2007 8:00 am
- Forum: bug reports
- Topic: Errors on testing the first examples in 0.94eb version...
- Replies: 6
- Views: 13484
- Fri Sep 28, 2007 7:48 am
- Forum: Requirement, Installation & Configuration
- Topic: Target for dsPIC's errors on my system...
- Replies: 5
- Views: 12619
- Tue Sep 18, 2007 9:30 pm
- Forum: Request for new functions / Peripheral / Chip support
- Topic: QEI module
- Replies: 4
- Views: 13930
Hello, QEI is not planned in a near future. My priority is: - Make the toolbox compatible with all matlab version (Chinese, Japanese etc…) - Make the I2C blockset - Make the CAN blockset Then I will look at others peripheral like QEI. I do not know how to build a block for dsPIC using the Simulink's...
- Sat Sep 15, 2007 8:14 am
- Forum: Requirement, Installation & Configuration
- Topic: Target for dsPIC's errors on my system...
- Replies: 5
- Views: 12619
- Wed Aug 29, 2007 3:16 pm
- Forum: General Remark and Questions
- Topic: Begin with dsPIC and LCD screen
- Replies: 4
- Views: 15104
Begin with dsPIC and LCD screen
Hi Masum,
It will be difficult to help you: It depends too much on the hardware you use.
The help and examples present on website should help to start.
If you have questions or technical problem with the dsPIC toolbox, do not hesitate to ask.
Regards
Lubin
It will be difficult to help you: It depends too much on the hardware you use.
The help and examples present on website should help to start.
If you have questions or technical problem with the dsPIC toolbox, do not hesitate to ask.
Regards
Lubin
- Tue Aug 21, 2007 10:00 pm
- Forum: Request for new functions / Peripheral / Chip support
- Topic: dsPIC and PIC 18F
- Replies: 6
- Views: 14086
Hi Vedant, The PIC18F family do not use the same C compiler. I looked at the possibility to do a toolbox for 18F chips long time ago ( 2 or 3 years) and concluded that the C compiler for PIC18 I used (from Hi-tech) was not Compliant with the standard C, thus, it does not work with C code generated w...
- Wed Aug 08, 2007 11:40 pm
- Forum: bug reports
- Topic: PLL does not seem to work correctly (bug report)
- Replies: 1
- Views: 7623
Thanks for the report. PLL calculation is not yet described properly on the website. But the dialog should be user friendly. Here is a piece of information: PLL parameters are computed automatically by the blockset. You have to provide only the quartz used and the desired MIPS to reach. The blockset...
- Sat Jul 21, 2007 5:32 pm
- Forum: Requirement, Installation & Configuration
- Topic: Can not find dsPIC.tlc
- Replies: 16
- Views: 27034
- Sat Jul 21, 2007 3:58 pm
- Forum: Requirement, Installation & Configuration
- Topic: Can not find dsPIC.tlc
- Replies: 16
- Views: 27034
Hi Peter, I'm glad that you made it working on your computer ! Download the latest version of the toolbox that has been improved. Pricing and procedure to buy the toolbox are decribed on the website. Because I could not test all peripheral with all microcontroller supported by the toolbox, test the ...
- Sat Jul 21, 2007 10:38 am
- Forum: General Remark and Questions
- Topic: Warning at opening time and can't open dialog in library
- Replies: 1
- Views: 5727
Warning at opening time and can't open dialog in library
hi, Lubin I dowload the "install_dsPIC_R2007a.zip" from your website today, then install it acording to your installing instructions. all is ok. but, when dual click the "Embedded Tartget for Microchip dsPIC" from the "Simulink Library Browse", the following warning occurs: Warning: Error evaluatin...
- Sat Jul 21, 2007 10:27 am
- Forum: Requirement, Installation & Configuration
- Topic: how to remove "the Embedded Target for dsPIC"
- Replies: 4
- Views: 11316
- Sat Jun 09, 2007 11:50 am
- Forum: bug reports
- Topic: Bug, or Matlab needs P4 instruction set, or...
- Replies: 2
- Views: 6935
Hi andor, This is weird. Does anybody encounter the same problem ? I do not think it is in relationship with the processor. Either an unknow bug remains in the toolbox (please, if you get the same error, repport it) neither the toolbox is not properly installed. Try to check the installation : The i...
- Sun Jun 03, 2007 12:33 pm
- Forum: Requirement, Installation & Configuration
- Topic: Can not find dsPIC.tlc
- Replies: 16
- Views: 27034
Dear Peter, I find the origine of the problem : It is your Matlab version. You mentionned : I am using MATLAB 7.01 7.01 or R14SP1 released in 2003 or 2004. As mentionned on the download page : The toolbox has been tested with MPLAB C30 (v2.05 and v3) compiler and with Matlab R2006a, R2006b and R2007...
- Sat Jun 02, 2007 10:24 pm
- Forum: Requirement, Installation & Configuration
- Topic: Can not find dsPIC.tlc
- Replies: 16
- Views: 27034
Hi Peter, I do not see the point here ! I just created a new schematic from scratch with the last version of the toolbox (V0.93) and It works without problems ( Tested with booth : Matlab 2007a and 2006b). Notice that When you change, in the MASTER lock, the dsPIC/PIC you use as target, the dialog g...