Search found 12 matches
- Thu May 15, 2008 12:50 pm
- Forum: Advanced Simulink & RTW Questions
- Topic: How much RAM area can a program use?
- Replies: 12
- Views: 29123
Re: How much RAM area can a program use?
Hi Mariano, Sorry for my not positing the model file. But all of the C source code is posted in my perevious writing. First, if you are using the C-function call block in your model, then your functions should have the following prototypes: uint16_T ReadHistory(uint16_T index) void WriteHistory(uint...
- Wed May 14, 2008 1:42 am
- Forum: Advanced Simulink & RTW Questions
- Topic: How much RAM area can a program use?
- Replies: 12
- Views: 29123
Re: How much RAM area can a program use?
Hi Mariano, Thanks for your comment. My final C-code looks like this: extern volatile unsigned int HISTORY[]; /* Data history reading */ unsigned int ReadHistory(unsigned int index) { if (index < 1) index = 1; return(HISTORY[index-1]); /* 1-base indexing */ } /* Data history logging */ void WriteHis...
- Tue May 13, 2008 4:03 am
- Forum: Advanced Simulink & RTW Questions
- Topic: How much RAM area can a program use?
- Replies: 12
- Views: 29123
Re: How much RAM area can a program use?
So your general advise is to use inline parameters always? or just for this application? This is Masaki. My way of understanding is this: - When you have a plenty of ROM area, chech inline parameters. - When you don't have enough ROM area, don't check inline parameters. In my application, the progr...
- Wed Apr 30, 2008 7:04 am
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Data Logging to LabVIEW
- Replies: 2
- Views: 14618
Re: Data Logging to LabVIEW
Hi Lubin, Anyway, I attach old labview files. I provide it "in its actual state". I have not installed labview on my computer right now. Based on your LabVIEW program, I have made my interfacing program. At the same time, I've tried to figure our your French home page, where you wrote about the prot...
- Sat Mar 29, 2008 3:27 am
- Forum: Advanced Simulink & RTW Questions
- Topic: How much RAM area can a program use?
- Replies: 12
- Views: 29123
Re: How much RAM area can a program use?
Thanks Lubin, I understand your techniques. As for the first one (checking inline parameters), it increased the memory usage performance by 50%. In other words, I can take 450 history length compared to 300 before. For the second one (introducing C functions), I still cannot make it happen. My C pro...
- Fri Mar 21, 2008 11:54 am
- Forum: Advanced Simulink & RTW Questions
- Topic: How much RAM area can a program use?
- Replies: 12
- Views: 29123
How much RAM area can a program use?
Hi Lubin, My project is to build a sensor filtering and logging program. In order to make a longing period longer, I would like to use as much RAM area as possible. My implementation in Simulink program is to use Data Store Memory block in which I declear an UINT16 array of size 300. When I increase...
- Wed Mar 12, 2008 3:12 am
- Forum: Request for new functions / Peripheral / Chip support
- Topic: Data Logging to LabVIEW
- Replies: 2
- Views: 14618
Data Logging to LabVIEW
TX_Labview_MATLAB block is a powerful tool to data logging. But, thinking about the software integration, I would also like to data log to LabVIEW. So my questions here are: 1) Is there any LabVIEW code which can interface to the TX_Labview_MATLAB block? 2) If there isn't such code left, is it possi...
- Thu Feb 28, 2008 1:13 am
- Forum: bug reports
- Topic: Output Compare block - Behaviour at edges values for OC1max
- Replies: 4
- Views: 14349
Re: Output Compare block - Behaviour at edges values for OC1max
I understand the situation. As my CPU is dsPIC30F3013 at Fcy=30MHz, it's supposed to handle PWM signal generation by interrupts. As a result, it can only generate edges at every 500ns at its fastest speed. If I switch my CPU to dsPIC30F4012 with motor control pins, does your software support hardwar...
- Tue Feb 26, 2008 12:32 pm
- Forum: bug reports
- Topic: Output Compare block - Behaviour at edges values for OC1max
- Replies: 4
- Views: 14349
Output Compare block - Behaviour at edges values for OC1max
I'm working on Output Compare block to make a PWM output and came across a strange phenomena. What I did was to connect a potentiometer to AN0 and a oscilloscope to OC1. The potentiometer is hooked to +5V and GND. I set MaxChannel of OC block to 1e-4, 2e-5,1e-5 to get 10kHz, 50kHz, 100kHz PWM signal...
- Tue Feb 26, 2008 1:39 am
- Forum: bug reports
- Topic: Slow Compilation Time
- Replies: 2
- Views: 11112
Re: Slow Compilation Time
Thanks for your reply. I understand this is partly RTW problems. I'll also try to upgrade my PC. Another trick you can make is just to speed up parameter tuning process. When a user changes a parameter on a model, i.e. a gain or constant, your program automatically detects the correspoinding memory ...
- Sun Feb 24, 2008 9:48 am
- Forum: bug reports
- Topic: Slow Compilation Time
- Replies: 2
- Views: 11112
Slow Compilation Time
Hi Lubin, After I get RTW embedded coder, the toolkit starts to work. As its name shows, the prototyping speeds gets really fast!! On the other hand, the compilation speed seems to be so slow. It takes about 70 seconds with your exercise program "Sinus PWM". What is more intersting is that the incre...
- Mon Jan 21, 2008 8:29 am
- Forum: Requirement, Installation & Configuration
- Topic: RTW vs. RTW embedded coder
- Replies: 1
- Views: 11041
RTW vs. RTW embedded coder
Hi Lubin, I have downloaded your software of install_dsPIC_R2006b.m dated 2007/12/09. After installing it, I had tried to compile Servo_sinus.mdl, then came accross an error. The following is translation from Japanese error message: Block diagram 'Servo Sinus' Real-Time Workship target build error. ...