Forums

Matlab Interface

Started by Murat YILDIZ January 10, 2005


Hi,
thanks to all who responded to my last post. I've solved the problem.
But now I have a question not a problem. I wonder if there a Matlab
interface (like the one which is present in Matlab for C6000 TI DSPs)
implementation is? Can I write code for the Real-Time
Workshop/Embedded coder for the VC33 DSK? I'm not a Matlab expert but
if such a system can be implemented for C6000 then it must also be
possible to implement such a system for the VC33 DSPs. Does anybody
know such a work? Would it be too hard to implement such a interface
from scratch?
Many thank in advance to your valuable responces.
Bye...

Murat YILDIZ




Hello Murat,

I'm only known about the interface for the C6000 and C2000 families.

Regards.

Mart Lez
CIATEC
-----Mensaje original-----
De: Murat YILDIZ [mailto:]
Enviado el: Lunes, 10 de Enero de 2005 03:24 p.m.
Para:
Asunto: [c3x] Matlab Interface

Hi,
thanks to all who responded to my last post. I've solved the problem.
But now I have a question not a problem. I wonder if there a Matlab
interface (like the one which is present in Matlab for C6000 TI DSPs)
implementation is? Can I write code for the Real-Time
Workshop/Embedded coder for the VC33 DSK? I'm not a Matlab expert but
if such a system can be implemented for C6000 then it must also be
possible to implement such a system for the VC33 DSPs. Does anybody
know such a work? Would it be too hard to implement such a interface
from scratch?
Many thank in advance to your valuable responces.
Bye...

Murat YILDIZ



Hi..I happen to work on a project which involves interfacing VC33 DSK to
Simulink Real-time Workshop. I've been trying to customize the TLC system target file of RTW (Real-time workshop) so that it could recognize the VC33 DSK as a target environment. I hope I can finally generate codes from simulink models and download them to VC33 DSK and simulate a real-time implementation, output its results to MATLAB and...WOW,interpret them in a more 'human manner' graphical plots, diagram, etc..instead of binary digits??!
If anyone happens to already find a better solution, please share it in this group. Thanks!!

Best regards,
Kiko



Hello Kiko

I tend to write my own simulations as I need them, so I am by no means a MATLAB expert (I dont have a copy of MATLAB).  Never the less, I know there is some kind of documented API, and there is an API for the DSK.  What you need to do is translate one to the other.

You will want to start by looking in the following files

  DRIVER.CPP - Low level code that talks to the host port
  TARGET.CPP- Primitive API level for controlling the DSK and moving blocks of data
  OBJECT.CPP - Somewhat higher level... Boatload, system level reset and other functions

If you have access to a Win98 PC and a copy of Borland C 3.x, the easiest and simplest programs to get started with will be MEMVIEW.CPP and REGVIEW.CPP.  If you dont, well... I hope you know how to program windows (those examples are also given)!

In either case, start with one of the Windows applications and set a breakpoint in the get or put memory functions.  After stepping back out of that you should begin to see how some of that API works.  Next step in and have a look at the reset and boatload functions.  Not too bad... unless you are having to deal with also learning Windows.

Hope this helps,
Keith Larson k...@yahoo.com wrote:
Hi..I happen to work on a project which involves interfacing VC33 DSK to
Simulink Real-time Workshop. I've been trying to customize the TLC system target file of RTW (Real-time workshop) so that it could recognize the VC33 DSK as a target environment. I hope I can finally generate codes from simulink models and download them to VC33 DSK and simulate a real-time implementation, output its results to MATLAB and...WOW,interpret them in a more 'human manner' graphical plots, diagram, etc..instead of binary digits??!
If anyone happens to already find a better solution, please share it in this  group. Thanks!!

Best regards,
Kiko