Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!news2.glorb.com!postnews.google.com!e36g2000prg.googlegroups.com!not-for-mail
From: pratham.delight@gmail.com
Newsgroups: comp.soft-sys.matlab
Subject: Re: Porting Matlab code to tms320dm6437 evm
Date: Sat, 14 Mar 2009 00:47:17 -0700 (PDT)
Organization: http://groups.google.com
Lines: 61
Message-ID: <86b43c11-d47b-472a-a49d-7c50dc2915f5@e36g2000prg.googlegroups.com>
References: <gpbhha$6t4$1@fred.mathworks.com> <gpbs5p$86g$1@fred.mathworks.com>
NNTP-Posting-Host: 121.242.41.2
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1237016837 31400 127.0.0.1 (14 Mar 2009 07:47:17 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 14 Mar 2009 07:47:17 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: e36g2000prg.googlegroups.com; posting-host=121.242.41.2; 
	posting-account=eQ8ObQoAAACmnq4JZakhBBtEh2y5xxMM
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; 
	SV1),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.0 skncoe.com:3128 (squid/2.5.STABLE6)
Xref: news.mathworks.com comp.soft-sys.matlab:524804


On Mar 13, 1:43=A0am, "Arnaud Miege"
<arnaud.mi...@nospam.mathworks.co.uk> wrote:
> "Kent System Kulkarni" <kulkarnipratham...@rocketmail.com> wrote in messa=
genews: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 i=
s
> in my view preferable to option 3, but there is actualy an option 4: sinc=
e
> you have Real-Time Workshop, you can generate embeddable C code directly
> from MATLAB code using Embedded MATLAB. Embedded MATLAB is a subset of th=
e
> MATLAB language that supports code generation for real-time embedded
> systems. Have a look at:
>
> http://www.mathworks.com/products/featured/embeddedmatlab/index.htmlhttp:=
//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- Hide quoted text -
>
> - Show quoted text -

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.