DSPRelated.com
Forums

newbie : how to read value in DSK from host PC?

Started by kritisen April 5, 2005


hi

i am a final year student from IIT Kharagpur, India.

for my final year project i have to implement a real time algorithm
on a DSP kit. the output of this algorithm is a single real number &
i need to tap this value from the DSK.

i am using the 6711 DSK. i have implemented the algo by using
Simulink in MATLAB. after drawing out the circuit in Simulink i used
Real Time Workshop to extract the C code. then i built the C code in
CCS and downloaded the .out file onto the DSK.

on running the DSK, the algorithm is being executed properly.... (i
checked by suitably lighting a LED). however with different input
signals, i need to know what the result of the calculation exactly
is...

please suggest a method by which i can do so... the completion of my
final year project is hanging on this work.

thanks in advance
kriti sen sharma
Dept of E&ECE
IIT Kharagpur




-----Ursprgliche Nachricht-----
>Von: kritisen [mailto:kritisen@krit...]
>Gesendet: Dienstag, 5. April 2005 13:05
>An: c6x@c6x@...
>Betreff: [c6x] newbie : how to read value in DSK from host PC?
>
>hi
>
>i am a final year student from IIT Kharagpur, India.
>
>for my final year project i have to implement a real time algorithm on a
DSP kit. the output of this algorithm
>is a single real number & i need to tap this value from the DSK.
>
>i am using the 6711 DSK. i have implemented the algo by using Simulink in
MATLAB. after drawing out the circuit >in Simulink i used Real Time Workshop
to extract the C code. then i built the C code in CCS and downloaded the
>.out file onto the DSK.
>
>on running the DSK, the algorithm is being executed properly.... (i checked
by suitably lighting a LED). however >with different input signals, i need
to know what the result of the calculation exactly is...
>
>please suggest a method by which i can do so... the completion of my final
year project is hanging on this work.
>
>thanks in advance
>kriti sen sharma
>Dept of E&ECE
>IIT Kharagpur
>

Hi!

If you want to use Matlab:
You'll need the "Link to Code Composer Studio"-Toolbox for Matlab. With this
toolbox you can read and write variables from/to the DSK or any memory
location via RTDX (and many other things). A demo of this toolbox came with
my 6416 DSK, the documentation is very good, I think there is also an
example for exactly what you want to do in the toolbox help!
Hope that also works with the 6711.

Otherwise:
Works also via RTDX, you'll have to write an excel or C application, but
I've never tried that. Andi




I think you could try to use RTDX to write the values to a file?

Robert

www.gldsp.com

> -----Original Message-----
> From: kritisen [mailto:kritisen@krit...]
> Sent: Tuesday, April 05, 2005 6:05 AM
> To: c6x@c6x@...
> Subject: [c6x] newbie : how to read value in DSK from host PC? >
>
> hi
>
> i am a final year student from IIT Kharagpur, India.
>
> for my final year project i have to implement a real time algorithm
> on a DSP kit. the output of this algorithm is a single real number &
> i need to tap this value from the DSK.
>
> i am using the 6711 DSK. i have implemented the algo by using
> Simulink in MATLAB. after drawing out the circuit in Simulink i used
> Real Time Workshop to extract the C code. then i built the C code in
> CCS and downloaded the .out file onto the DSK.
>
> on running the DSK, the algorithm is being executed properly.... (i
> checked by suitably lighting a LED). however with different input
> signals, i need to know what the result of the calculation exactly
> is...
>
> please suggest a method by which i can do so... the completion of my
> final year project is hanging on this work.
>
> thanks in advance
> kriti sen sharma
> Dept of E&ECE
> IIT Kharagpur
>

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 4/5/2005



And in case you are looking for some book/reading material on how to
use RTDX, I suggest you buy the book-- Digital Signal Processing and
Applications" by proff.Rulph Chassaing.Its got a whole host of other
useful stuff as well...

--Bhooshan

On Apr 6, 2005 6:02 AM, robert <r_obert@r_ob...> wrote:
>
>
> I think you could try to use RTDX to write the values to a file?
>
> Robert
>
> www.gldsp.com
>
> > -----Original Message-----
> > From: kritisen [mailto:kritisen@krit...]
> > Sent: Tuesday, April 05, 2005 6:05 AM
> > To: c6x@c6x@...
> > Subject: [c6x] newbie : how to read value in DSK from host PC?
> >
> >
> >
> >
> > hi
> >
> > i am a final year student from IIT Kharagpur, India.
> >
> > for my final year project i have to implement a real time algorithm
> > on a DSP kit. the output of this algorithm is a single real number &
> > i need to tap this value from the DSK.
> >
> > i am using the 6711 DSK. i have implemented the algo by using
> > Simulink in MATLAB. after drawing out the circuit in Simulink i used
> > Real Time Workshop to extract the C code. then i built the C code in
> > CCS and downloaded the .out file onto the DSK.
> >
> > on running the DSK, the algorithm is being executed properly.... (i
> > checked by suitably lighting a LED). however with different input
> > signals, i need to know what the result of the calculation exactly
> > is...
> >
> > please suggest a method by which i can do so... the completion of my
> > final year project is hanging on this work.
> >



The toolbox is an addon to matlab - like the signal processing or communication toolbox - that provides functions to communicate with an installed CCS version. I think you can obtain the full or student version of the toolbox at mathworks, but there was also a trial-version included in my dsk-package(but only for 30 or 40 days of use). Not sure if it comes also with other dsk versions.

Andi

kriti sensharma <k...@yahoo.co.uk> schrieb am 06.04.05 11:58:47:

*** to ur reply :
 
i'll see if i get the toolbox. is it like a plugin to MATLAB that came with the CCS kit?
 
****
 
in my algo, a signal is input through the line in of the DSK. then some processing is done & a single real no. output is generated. i want to tap the value of the result.
now here is the way by which i have impplemented the algo using simulink & CCS
 audio i/p ---------> audio o/p
          &nbbsp;    |
               |
               |
               |
               |
                ---> T second window ---> processor ----> cumulative sum ---> output y
 -hence my output is in y. the processor part keeps working all the time..
 -by the T second window i ensure that the calculation gets done for different signals for exactly T seconds i.e. otherwise input to the procesor is zero.
 -so i need to tap the value of y any time after T seconds... how can i do it?
kriti
 
================

Andreas Falter <a...@dialup.fh-aachen.de> wrote:
-----Ursprgliche Nachricht-----
>Von: kritisen [mailto:k...@yahoo.co.uk]
>Gesendet: Dienstag, 5. April 20055 13:05
>An: c...@yahoogroups.com
>Betreff: [c6x] newbie : how to read value in DSK from host PC?
>
>hi
>
>i am a final year student from IIT Kharagpur, India.
>
>for my final year project i have to implement a real time algorithm on a
DSP kit. the output of this algorithm
>is a single real number & i need to tap this value from the DSK.
>
>i am using the 6711 DSK. i have implemented the algo by using Simulink in
MATLAB. after drawing out the circuit >in Simulink i used Real Time Workshop
to extract the C code. then i built the C code in CCS and downloaded the
>.out file onto the DSK.
>
>on running the DSK, the algorithm is being executed properly.... (i checked
by suitably lighting a LED). however >with different input signals, i need
to know what the result of the calculation exactly is...
>
>please suggest a method by which i can do so... the completion of my final
year project is hanging on this work.
>
>thanks in advance
>kriti sen sharma
>Dept of E&ECE
>IIT KharagpurHi!

If you want to use Matlab:
You'll need the "Link to Code Composer Studio"-Toolbox for Matlab. With this
toolbox you can read and write variables from/to the DSK or any memory
location via RTDX (and many other thin ). A demo of this toolbox came with
my 6416 DSK, the documentation is very good, I think there is also an
example for exactly what you want to do in the toolbox help!
Hope that also works with the 6711.

Otherwise:
Works also via RTDX, you'll have to write an excel or C application, but
I've never tried that.Andi<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/c6x/

<*> To unsubscribe from this group, send an email to:
c...@yahoogroups.com

<*

Send instant messages to your online friends http://uk.messenger.yahoo.com