Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Porting Matlab code to tms320dm6437 evm
Date: Sat, 14 Mar 2009 22:01:15 -0000
Organization: The MathWorks, Inc.
Lines: 40
Message-ID: <gph9fc$kjc$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>
NNTP-Posting-Host: 172.16.236.186
X-Trace: fred.mathworks.com 1237068076 21100 172.16.236.186 (14 Mar 2009 22:01:16 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 14 Mar 2009 22:01:16 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
Xref: news.mathworks.com comp.soft-sys.matlab:524917



<pratham.delight@gmail.com> wrote in message 
news:86b43c11-d47b-472a-a49d-7c50dc2915f5@e36g2000prg.googlegroups.com...

Hi,
Thank you for your apt reply. My doubt about the fourth option is
whether the C code generated by the Real Time Workshop will be
embeddable in the dm6437 or whether I'll have to port it into the
processor via the Code Composer Studio. Also, as far as I know, I wont
be able to use a few Matlab functions in the Embedded Matlab code.
However, for these functions, there are redy-made blocks in Simulink.
So should I prefer using the second option?

Thank You.
Sincerely,
Prathamesh Kulkarni.

---------------

Hi,

The C code generated by Real-Time Workshop and Real-Time Workshop Embedded 
Coder is ISO-ANSI C code, so should be embeddable on any real-time target, 
provided the correct wrapper is wrriten for it. In your case, I would 
recommend using Embedded IDE Link CC 
(http://www.mathworks.com/products/ccslink/), which will allow to port the C 
code generated to Code Composer Studio, which will make it easier to target 
your specific processor. Whether you generate the code directly from MATLAB 
or from Simulink is difficult to answer without looking at the actual code 
(+it's not something I am very familiar with). If you know that there are 
MATLAB functions in your code that are not compliant with Embedded MATLAB, 
and that it would be difficult/time-consuming to modify the code to make it 
compliant with Embedded MATLAB, then maybe you should consider Simulink. I 
guess it's what environment you are feeling more at ease with.

HTH,

Arnaud