Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Porting Matlab code to tms320dm6437 evm
Date: Thu, 12 Mar 2009 20:43:36 -0000
Organization: The MathWorks, Inc.
Lines: 39
Message-ID: <gpbs5p$86g$1@fred.mathworks.com>
References: <gpbhha$6t4$1@fred.mathworks.com>
NNTP-Posting-Host: 172.16.236.176
X-Trace: fred.mathworks.com 1236890617 8400 172.16.236.176 (12 Mar 2009 20:43:37 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 12 Mar 2009 20:43:37 +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:524425



"Kent System Kulkarni" <kulkarniprathamesh@rocketmail.com> wrote in message 
news:gpbhha$6t4$1@fred.mathworks.com...
> Hi,
> I have my Matlab code ready in the form of different self-designed 
> functions. I want to know which is the best way to port my code on the 
> tms320dm6437 evm board. Which is the best option among the following:
> 1. Using Matlab compiler to get C code and port it on my board via CCS.
> 2. Using Embedded Matlab function in Simulink and Real Time Workshop to 
> target my
> board.
> 3. Manually converting all the code (about 1000 lines) to C and port it 
> via CCS.
>
> Please reply at the earliest.
> Thank you in advance.
>
> Sincerely,
> Prathamesh Kulkarni.

Hi,
Option 1 won't work, that's not what the MATLAB compiler does. Option 2 is 
in my view preferable to option 3, but there is actualy an option 4: since 
you have Real-Time Workshop, you can generate embeddable C code directly 
from MATLAB code using Embedded MATLAB. Embedded MATLAB is a subset of the 
MATLAB language that supports code generation for real-time embedded 
systems. Have a look at:

http://www.mathworks.com/products/featured/embeddedmatlab/index.html
http://www.mathworks.com/access/helpdesk/help/toolbox/eml/index.html

It might be that you need to modify your MATLAB code slightly to make it 
Embedded MATLAB compliant.

HTH,

Arnaud