Search found 616 matches
- Fri Sep 09, 2011 4:51 pm
- Forum: General Remark and Questions
- Topic: dsPIC Master error
- Replies: 12
- Views: 35401
Re: dsPIC Master error
don't pay attention to warning message at model opening. I do not understand the message you obtain on matlab 2007b. Real-Time Workshop Embedded Coder is not licensed or not installed. The current target is: C:\Program Files\MATLAB\toolbox\dspic\dspic\dspic.tlc You need to have Embedded Coder instal...
- Fri Sep 09, 2011 11:01 am
- Forum: General Remark and Questions
- Topic: dsPIC Master error
- Replies: 12
- Views: 35401
Re: dsPIC Master error
In the examples I can open the "Master Block" and change it. If I copy the "Master Block" into my model, it seems to work. But no compilation. You need to set the Code Generation target : simulink configuration, pannel Code Generation, set it to dsPIC or pic32... a yellow block is capable of config...
- Fri Sep 09, 2011 8:18 am
- Forum: Requirement, Installation & Configuration
- Topic: Required Matlab components
- Replies: 4
- Views: 14728
Re: Required Matlab components
You listed the minimum required toolboxes. EC (Embeddede Coder) is the most important ! for designing efficient embedded system, the fixed point toolboxes is very useful. Stateflow might also be usefull if you are to design FSM. Then all matlab toolboxes related to your topic (system identification,...
- Fri Sep 09, 2011 8:11 am
- Forum: General Remark and Questions
- Topic: dsPIC Master error
- Replies: 12
- Views: 35401
Re: dsPIC Master error
Which blockset version are you working with ?
Can you compile the files in example directory ? (there is a m script to compile them all at once !)
Lubin
Can you compile the files in example directory ? (there is a m script to compile them all at once !)
Lubin
- Tue Sep 06, 2011 9:48 pm
- Forum: bug reports
- Topic: ADC block sets configures all pins to the ADC
- Replies: 8
- Views: 18278
Re: ADC block sets configures all pins to the ADC
Hi Bryant, I did not give feedback yet, however changes are already done, (will be published in version following v3.6). I added in the C function Call the Pins Configuration tab which allows to set up any pin which might be used in the C function as a digital I/O or an analog Input. If for any reas...
- Tue Aug 30, 2011 12:54 pm
- Forum: General Remark and Questions
- Topic: can i make real time speech processing and dsc starter kit
- Replies: 5
- Views: 18381
Re: can i make real time speech processing and dsc starter k
I am not up to date with real time processing of audio data with simulink on PC. I could provide the following inputs: - Simulink Microphone block might create a buffer and provide the following block with a fixed size buffer. This will create a first delay in processing. - sound cards drivers usual...
- Thu Aug 25, 2011 9:34 am
- Forum: dsPIC Peripherals
- Topic: DSPIC 30f4011 help needed
- Replies: 1
- Views: 9225
Re: DSPIC 30f4011 help needed
It seems that the blockset for simulink has the required blocks to make it easy.
Are you using Siumlink to program your dsPIC ? otherwise, you might not be on the most appropriate forum.
Lubin
Are you using Siumlink to program your dsPIC ? otherwise, you might not be on the most appropriate forum.
Lubin
- Tue Aug 23, 2011 1:57 pm
- Forum: Requirement, Installation & Configuration
- Topic: PTfile not found
- Replies: 3
- Views: 11477
Re: PTfile not found
Hey,
Choose a dsPIC within the MASTER block.
Until you select a chip, the default pic usd is called "choose_dsPIC". Obviously compiler definition files for that chip does not exist !
Anyway, thanks for the bug report, I might try to help user for that.
Lubin
Choose a dsPIC within the MASTER block.
Until you select a chip, the default pic usd is called "choose_dsPIC". Obviously compiler definition files for that chip does not exist !
Anyway, thanks for the bug report, I might try to help user for that.
Lubin
- Fri Aug 19, 2011 1:45 pm
- Forum: bug reports
- Topic: build error in GenericTypeDefs.h
- Replies: 13
- Views: 31678
Re: build error in GenericTypeDefs.h
Hi John, The best might be to modify the generated code within MPLAB X until it's working. Thus trying the microchip forum's solution with MPLAB and the generated code. Then finding a trick to make it works from simulink straight. It's difficult to help you more on this. However, could you post the ...
- Thu Aug 18, 2011 2:19 pm
- Forum: bug reports
- Topic: build error in GenericTypeDefs.h
- Replies: 13
- Views: 31678
Re: build error in GenericTypeDefs.h
I did not use code where the BOOL type were required.
Thus I have no solution for that. There might be more usefull information on Microchip forum for this.
Anyway, I would be glad to get the final word. It is weird that this BOOL enumeration does not work.
Lubin
Thus I have no solution for that. There might be more usefull information on Microchip forum for this.
Anyway, I would be glad to get the final word. It is weird that this BOOL enumeration does not work.
Lubin
- Thu Aug 18, 2011 2:17 am
- Forum: bug reports
- Topic: ADC block sets configures all pins to the ADC
- Replies: 8
- Views: 18278
Re: ADC block sets configures all pins to the ADC
Hi Bryant, I tested your model reading the temperature on my Explorer 16 board endowed with a 33fj256GP710 PIM module. I'll use degree °C instead of fahrenheit Thus your formulae : ((ADC * 3.3/1023-0.5)/.01)*9/5+32 turn into ( ADC * 3.3/1023*100 ) - 50 I get here a correct reading of the temperature...
- Wed Aug 17, 2011 9:03 pm
- Forum: bug reports
- Topic: build error in GenericTypeDefs.h
- Replies: 13
- Views: 31678
Re: build error in GenericTypeDefs.h
Hi John, The problem appears for 24fj chips : see forum post here It has been corrected for 24Fj chips : the dsPIC blockset now generate its own GenericTypeDefs.h file. I will do the same correction for 32f Chips. The workaround is just to modify the file GenericTypeDefs.h like : // typedef enum _BO...
- Sat Aug 13, 2011 12:34 am
- Forum: bug reports
- Topic: restorePath, and slbuild errors, matlab working directory ch
- Replies: 8
- Views: 23104
Re: restorePath, and slbuild errors, matlab working director
Hi John, Thanks for bug reports. I have also seen " recursive call to slbuild." When the previous compilation hand-up in an unexpected way, you get this message the next time your try to compile the model. Usually, next time you try to compile should be Ok (or hang-up again...) Hang-up is typically ...
- Sat Aug 13, 2011 12:15 am
- Forum: MPLAB IDE tricks
- Topic: MPLAB X
- Replies: 1
- Views: 10137
Re: MPLAB X
Hi John,
Tanks for taking time to make this tutorial.
I linked it to the wiki to make it accessible more easily, next to your latest tutorial about Cerebot kit.
Lubin
Tanks for taking time to make this tutorial.
I linked it to the wiki to make it accessible more easily, next to your latest tutorial about Cerebot kit.
Lubin
- Fri Aug 12, 2011 10:43 pm
- Forum: General Remark and Questions
- Topic: Tx block
- Replies: 1
- Views: 11857
Re: Tx block
Hi caeowens,
Place the Tx block within an "enabled subsystem" that you could then activate or not at will...
Lubin
Place the Tx block within an "enabled subsystem" that you could then activate or not at will...
Lubin
- Fri Aug 12, 2011 10:41 pm
- Forum: Requirement, Installation & Configuration
- Topic: install_ds_PICR20XX.m effor
- Replies: 3
- Views: 12167
Re: install_ds_PICR20XX.m effor
Hi Clay, I am not able to reproduce the problem using the website blockset version (with checksum 2A9BBB5164A79 tagged with 25-Jul-2011 22:26:12). Could you try to install the blockset in another place than within the matalb directory ? Do you have right restriction with your computer ? Which window...
- Fri Aug 12, 2011 10:20 pm
- Forum: Requirement, Installation & Configuration
- Topic: install_ds_PICR20XX.m effor
- Replies: 3
- Views: 12167
Re: install_ds_PICR20XX.m effor
It seems there is a bug in the installer.
I will have a look on it.
Lubin
I will have a look on it.
it should work.clay.mcvay wrote: Any thoughts? One last question. Will our paid 2010b blockset version work in MATLAB 2011a?
Lubin
- Tue Jun 28, 2011 7:14 pm
- Forum: dsPIC Peripherals
- Topic: Importing a MATLAB code from the workspace?
- Replies: 1
- Views: 8880
Re: Importing a MATLAB code from the workspace?
Simulink has a block that allows to embed matlab code. Note however that embeded code might react differently from your matlab function on high level function like svd or eig. The order of the eigen value return does not follows the same rules when comparing between code execution in embedded matlab...
- Tue Jun 28, 2011 12:05 am
- Forum: dsPIC Peripherals
- Topic: dsPIC33fj256710A programming on explorer 16 board
- Replies: 2
- Views: 10468
Re: dsPIC33fj256710A programming on explorer 16 board
Q1.I'd like to know how exactly can i use this simulink blockset ,signal processing blockset plus the wavelet blockset available in simulink ? Any blocks supporting the Real Time Embedded coder (This is to say, almost all) will compile for dsPIC. However, be aware that power not infinite even with ...
- Tue Jun 28, 2011 12:01 am
- Forum: bug reports
- Topic: Compilation with submodels
- Replies: 3
- Views: 12448
Re: Compilation with submodels
Sorry for the response delay. submodel I guess this is called by Mathworks guys model referencing : when you include a simulink model file within another one. The blockset is just not working as soon as you are doing model referencing. I should investigate much more, but it seems quite complex to so...
- Mon Jun 27, 2011 11:53 pm
- Forum: bug reports
- Topic: ADC block sets configures all pins to the ADC
- Replies: 8
- Views: 18278
Re: ADC block sets configures all pins to the ADC
Was there a reason for this design originally? High impedance and low current leakage I guess ? That's clearly a conflict that shouldn't happen That make sens. What about adding a block just to be able to configure unused pin as either a digital input or ouptut ? Thus, you might then configure any ...
- Mon Jun 27, 2011 11:45 pm
- Forum: General Remark and Questions
- Topic: dsPIC33FJ256GP710A compatible?
- Replies: 3
- Views: 14759
Re: dsPIC33FJ256GP710A compatible?
Should works, but the A revision will be added in next release.
Lubin
Lubin
- Mon Jun 27, 2011 11:43 pm
- Forum: General Remark and Questions
- Topic: trame ppm
- Replies: 3
- Views: 15363
Re: trame ppm
Want to do this with analogic electronics ?
What about using a transistor ? (you will not get 0V however byt 0.2 I guess)
What about using a transistor ? (you will not get 0V however byt 0.2 I guess)
- Mon Jun 27, 2011 11:40 pm
- Forum: General Remark and Questions
- Topic: How to install pic30 on Matlab
- Replies: 1
- Views: 11470
Re: How to install pic30 on Matlab
Install your PIC30 compiler as usual, Matlab witht the dsPIC blockset will find it automatically. You do not need to install it twice.
Lubin
Lubin
- Mon Jun 27, 2011 11:39 pm
- Forum: General Remark and Questions
- Topic: Monitoring RCON register
- Replies: 1
- Views: 11231
Re: Monitoring RCON register
I hope you already find the problem. If not, please attached the model and c code file with your post. Anyway, I am wondering if the datatype you are using within your file is defined. You might either use unsigned int instead of uint16_T , or include the datatype def file generated by simulink. Lubin
- Mon Jun 27, 2011 11:24 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: Interfacing with an VN100 (INS/AHRS SENSOR)
- Replies: 5
- Views: 17134
Re: Interfacing with an VN100 (INS/AHRS SENSOR)
Hi Ismaeel, As I understand, you are willing to use the SPI drivers provided by Vector Nav to accec to the VN-100 variables. If I were you, I would use directly the dsPIC drivers. Including C files from others should just be more complicated, thus provided the required driver already exist and that ...
- Tue Jun 21, 2011 9:46 am
- Forum: General Remark and Questions
- Topic: Evaluation and matlab version compatibility
- Replies: 2
- Views: 13292
Re: Evaluation and matlab version compatibility
Hi Richard, Thanks for your comment. The 2010b version will works with matlab 2011a. Thus, you do not need to wait for the blockset version 2011a (that may come shortly anyway). In any case, the model you will create will works with all blockset version (from matlab 2008 to matlab 2011). Thus, you m...
- Fri Jun 17, 2011 7:39 am
- Forum: dsPIC Peripherals
- Topic: OC minimum to maximum range
- Replies: 1
- Views: 8897
Re: OC minimum to maximum range
At 100%, the wave form is high for 995 microseconds and the frequency drops to 380 Hz. OC block compute a signal using interrupt and change during the interrupt values for the next event to appears... Thus very fast event such as 1% or 99% might not work properly. (due to software handling) Anyway,...
- Thu Jun 09, 2011 5:04 pm
- Forum: bug reports
- Topic: ADC block sets configures all pins to the ADC
- Replies: 8
- Views: 18278
Re: ADC block sets configures all pins to the ADC
Hi Bryant, I'll respond from what I remember: Pin at startup are all configured to use ADC. You must change the default configuration if you want a digital I/O. ADC configuration for unused pin might be better (maybe, due to their high impedence) Thus, this is how the blockset does also: If one pin ...
- Thu May 19, 2011 9:43 am
- Forum: dsPIC Peripherals
- Topic: UART2, UART alternativ et I2C in the same time
- Replies: 2
- Views: 10657
Re: UART2, UART alternativ et I2C in the same time
Hi Amandine, For the UART problem, could you try : - Simulation ==> Configuration parameters ==> Optimisation : Check inline parameters (code will be more efficient) - UART 1 Config ==> Tx Tab ==> Interrupt configuration : Do not use interrupt (not required here as you sent 1 data every 15ms and the...
- Mon May 16, 2011 1:29 pm
- Forum: General Remark and Questions
- Topic: Fixed step/MIPS
- Replies: 1
- Views: 11418
Re: Fixed step/MIPS
There are no relationship between the time step ("fixed step") and the MIPS value.
However,
* he slower the time step, the biger the number of Instruction within one time step ;
* the higher the MIPS value, the higher the number of instruction within one time step.
Lubin
However,
* he slower the time step, the biger the number of Instruction within one time step ;
* the higher the MIPS value, the higher the number of instruction within one time step.
Lubin
- Sun May 15, 2011 4:58 pm
- Forum: General Remark and Questions
- Topic: Microstick
- Replies: 1
- Views: 11909
Re: Microstick
Lee, I just copy the solution you sent by email I found the problem; it was the configuration bits. I had left the previous settings which had an external oscillator. The Microstick only uses an internal oscillator, so in the Master block, I needed to set Oscillator Mode to Internal Fast RC (I also ...
- Fri May 06, 2011 5:43 pm
- Forum: General Remark and Questions
- Topic: error 255 - tcpip not found
- Replies: 9
- Views: 27954
Re: error 255 - tcpip not found
I used extensively the dsPIC30f4013 and it should not have this kind of bug.
Could you please upload the simulink model you are using on that forum ? (upload attachment at the bottom).
Lubin
Could you please upload the simulink model you are using on that forum ? (upload attachment at the bottom).
Lubin
- Fri May 06, 2011 5:41 pm
- Forum: bug reports
- Topic: error programmation
- Replies: 1
- Views: 10390
Re: error programmation
ça veut dire que soit il existe un problème dans la connectique, soit le pic est effectivement grillé.
- Tue May 03, 2011 1:06 pm
- Forum: General Remark and Questions
- Topic: error 255 - tcpip not found
- Replies: 9
- Views: 27954
Re: error 255 - tcpip not found
This is not the bug.joanpamo wrote:--dir C:\PROGRA~1\MATLAB\R2010a/rtw/c/src/ext_mode/tcpip not found. It is not added to MPLAB project.
This is the bug.joanpamo wrote:prueba1_main.c: In function '_FICD':
prueba1_main.c:36: error: syntax error before '{' token
Which PIC/dsPIC did you choosed in the Master block ?
Lubin
- Tue Apr 26, 2011 6:35 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: Simulink to dspic
- Replies: 1
- Views: 9305
Re: Simulink to dspic
Hi Elmay, I do not understand what your model is supposed to do. The input capture Up signal connected to a boolean data type conversion will provide you 1 until the Up period of the input signal is not 0. you might use the rising edge detection of this block. In the input capture block, you might s...
- Wed Apr 20, 2011 5:07 pm
- Forum: bug reports
- Topic: rs232gui problem
- Replies: 1
- Views: 9526
Re: rs232gui problem
Did you use the block Tx_Output_Multiplexed_For_Matlab-Labview ? Is the baud rate right ? (are you using an RC oscillator which have low precision, or a precise quartz ?) You could try to press "Raw", bottom left of the interface to get the raw value that the PC is receiving. Try to check if data re...
- Sun Apr 17, 2011 6:12 pm
- Forum: General Remark and Questions
- Topic: rs232gui data format
- Replies: 8
- Views: 42730
Re: rs232gui data format
ADC data are 10 bits integer. Thus to convert the represented value to Volt, you should multiply by 3.3 / 2^10 (provided you are using a 3.3V cards which is probably the case) do the 3.3 / 2^10 calculation within the rs232gui interface (i.e. receiver side) and not on the value beeing sent within th...
- Thu Apr 14, 2011 3:58 pm
- Forum: bug reports
- Topic: error compilation
- Replies: 3
- Views: 23353
Re: error compilation
Try to add the yellow block that configure automatically the model (it may resolve incorrect path). It seems you may have to clean up your matlab path. Do you have multiple blockset installed ? (like microchip official one, mine or others ?) Please install latest blockset version. I am not sure you ...
- Wed Apr 13, 2011 4:14 pm
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Support for PIC24F Starter Kit (PIC24fj256GB106)
- Replies: 1
- Views: 9401
Re: Support for PIC24F Starter Kit (PIC24fj256GB106)
Does the generated code works for this chip, did you already tested ?
Lubin
Lubin
- Sat Apr 09, 2011 6:47 pm
- Forum: dsPIC Peripherals
- Topic: input capture
- Replies: 2
- Views: 10233
Re: input capture
Hi Elmay,
Is the problem to get an input on the 220V signal or to synchronize the PWM signal ?
Getting 220V signal should be done using an antenna for example.
About synchronizing PWM signals, you may change the PWM period.
I have no example about this specific problem.
Lubin
Is the problem to get an input on the 220V signal or to synchronize the PWM signal ?
Getting 220V signal should be done using an antenna for example.
About synchronizing PWM signals, you may change the PWM period.
I have no example about this specific problem.
Lubin
- Fri Apr 08, 2011 3:45 pm
- Forum: General Remark and Questions
- Topic: rs232gui data format
- Replies: 8
- Views: 42730
Re: rs232gui data format
Ismaeel, I could not figure out what the problem is as your docx file (please prefere to upload .png or .jpg file) shows the three output you sent to the Rx-Tx matlab block. Red curve is the matlab generated square signal, and blue and green are the ADC output raw data and its filtered version. ADC ...
- Thu Apr 07, 2011 10:17 pm
- Forum: bug reports
- Topic: Generated MPLAB projects don't properly include source files
- Replies: 6
- Views: 16302
Re: Generated MPLAB projects don't properly include source f
Thanks for testing the early blockset version I sent and for the feedback. I will try to published thie version soon to succeed to the v3.4c. --dir C:\PROGRA~1\MATLAB\R2010a/rtw/c/src/ext_mode/tcpip not found. It is not added to MPLAB project. This indicates that matlab included the directory "C:\PR...
- Sat Apr 02, 2011 11:48 am
- Forum: General Remark and Questions
- Topic: rs232gui data format
- Replies: 8
- Views: 42730
Re: rs232gui data format
What does about error messages imply? By default, the rs232gui interface try to decode a frame whose definition is detailed here (french) If data are too much corrupted, this error may appear. You may try to reset the buffer (push button resetBuffer), bug if there is a problem with the UART rate, t...
- Thu Mar 31, 2011 12:21 am
- Forum: General Remark and Questions
- Topic: CAN block on 33fj256MC710 target
- Replies: 4
- Views: 15893
Re: CAN block on 33fj256MC710 target
See post http://www.kerhuel.eu/forum/viewtopic.p ... 1525#p1525 for link to a git repository with ECAN projects from Bryant Mairs.
- Wed Mar 30, 2011 10:25 pm
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Support for dsPIC33xxGSxx series
- Replies: 2
- Views: 10492
Re: Support for dsPIC33xxGSxx series
Hi Andrew, Theses chips are not currently supported. I could just add their definition into the blockset ant let you make your own PWM driver usitn the C function call block. However, an analysis should be done to check which peripheral are identical to others dsPIC, which are differents. idem for t...
- Tue Mar 29, 2011 12:28 pm
- Forum: General Remark and Questions
- Topic: rs232gui data format
- Replies: 8
- Views: 42730
Re: rs232gui data format
Ismaeel, I do not see reasons for this problem. There might then be a problem with your electronics. Could you check the UART signal on a scope, is the signal clean (no capacitance). Check also the timing of UART bits. Are you using external quartz, or the internal RC oscillator (which is not precis...
- Mon Mar 28, 2011 7:49 am
- Forum: bug reports
- Topic: Generated MPLAB projects don't properly include source files
- Replies: 6
- Views: 16302
Re: Generated MPLAB projects don't properly include source f
Is this project published on git, like SLUG ? Where could I find a version that should compile ?
I would like to test on your project so as to find the problem that clearly appears here. (It worked on more simple example I tested so far, even with any change in the directory).
Lubin
I would like to test on your project so as to find the problem that clearly appears here. (It worked on more simple example I tested so far, even with any change in the directory).
Lubin
- Sat Mar 26, 2011 12:00 am
- Forum: General Remark and Questions
- Topic: CAN block on 33fj256MC710 target
- Replies: 4
- Views: 15893
Re: CAN block on 33fj256MC710 target
The slug team provide me with all the sources to do quickly the ECAN module. However, I still haven't done it yet, even if I started few month ago. Anyway, you might use ECAN peripheral using the C call function and the c sources code provided by the slug team (you should fine on the forum a git rep...
- Tue Mar 15, 2011 8:12 am
- Forum: bug reports
- Topic: Infinite sampling-time blocks can't chain together
- Replies: 4
- Views: 12451
Re: Infinite sampling-time blocks can't chain together
Blockset update : C function Call dialog box new parameters. You can now define - One function for block update (The function that was used by default in the older C function call block) - One function for block Init (Call each time block is reseted, at initialisation time and each time the subsyste...