Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Porting Matlab code to tms320dm6437 evm
Date: Sun, 22 Mar 2009 08:37:43 -0000
Organization: The MathWorks, Inc.
Lines: 46
Message-ID: <gq4tco$t5$1@fred.mathworks.com>
References: <gpbhha$6t4$1@fred.mathworks.com> <gpbs5p$86g$1@fred.mathworks.com> <86b43c11-d47b-472a-a49d-7c50dc2915f5@e36g2000prg.googlegroups.com> <gph9fc$kjc$1@fred.mathworks.com> <gq0jn1$jaf$1@fred.mathworks.com>
NNTP-Posting-Host: 172.16.236.38
X-Trace: fred.mathworks.com 1237711064 933 172.16.236.38 (22 Mar 2009 08:37:44 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 22 Mar 2009 08:37:44 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:526686


>>
> Hi,
> What I'm planning to do is:
> For the inbuilt MATLAB functions like thresholding, which I need, I'll use 
> ready made Simulink blocksets and for inserting my own code in the model, 
> I'll use the Embedded MATLAB block in Simulink. Now, to put your code into 
> this block, it has to be made compatible with the Emedded MATLAB subset. 
> This is achievable to me since I've very few inbuilt functions in my code. 
> I've the model ready in Simulink. However, the problem is it takes 
> infinite time to simulate. I can convert this code to an embeddable code 
> for DM6437 using the Real Time Workshop which creates a CCS project for my 
> code. I can load this project into the board.
> My question is: Is the above stated method recommended and widely used 
> method for dumping a Matlab code on a daVinci board? Should I proceed with 
> this?
> I have only 15 days in hand. So at this stage should I consider re-writing 
> the code in C?

I am not a production code generation expert, and without actually seeing 
the code/model, it's difficult to answer, but it seems like a reasonable 
approach to me. You might also want to consider:

* Real-Time Workshop Embedded Coder 
(http://www.mathworks.co.uk/products/rtwembedded/). For the differences 
betwen RTW and RTW-EC, see this thread 
http://www.mathworks.com/matlabcentral/newsreader/view_thread/246935
* Target Support Package TC2 (for TI C2000 DSP) 
(http://www.mathworks.co.uk/products/tic2000/) - if that corresponds to your 
processor
* Target Support Package TC6 (for TI C6000 DSP) 
(http://www.mathworks.co.uk/products/tic6000/) - if that corresponds to your 
processor
* Embedded IDE Link CC (for TI Code Composer Studio) 
(http://www.mathworks.co.uk/products/ccslink/)

I would recommend the use of The MathWorks Consulting 
(http://www.mathworks.co.uk/services/consulting/jumpstart/) to coach you on 
code generation and help you get up to speed quickly with your project, 
particularly if you only have 15 days. Contact your MathWorks account 
manager who will put you in touch with a consultant.

HTH,

Arnaud