The Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: CMEX on DSPs?
Replies: 1   Last Post: Jun 11, 1997 7:30 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Dan Hellgren

Posts: 7
Registered: 12/7/04
CMEX on DSPs?
Posted: Jun 11, 1997 4:58 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

How do I run my C-file S-function on my TEXAS DSP (‘C40)?

If I understand it correctly, to use a C-program inside SIMULINK a
MEX-file S-function must be used. Since I am using RTW I figure that I
wont be using CMEX? ( and I could not even if I wanted since it does not
support the TEXAS compiler).
What I am trying to do is the following: A SIMULINK model will run
inside my TMS320C40 DSP. In the SIMULINK model there should be one
S-function (C-code) that reads data from a dual-port memory, and one
s-function that writes data to the dual-port memory. On my PC I will
have a SIMULINK program that feeds the DSP with data (trough the
dual-port memory) and displays the model output.
When I insert my S-function (with my C-program dpramwri.c) and press
‘Generate and Build nonreal-time’ MATLAB states ‘Undefined function
dpramwri’. When I do the same with one of DSPACE S-functions as
ds1102ad.c it works fine. But if I remove ds1102ad.mex I get the same
error message as with my own file. My conclusion is that I need a file
dpramwri.mex but why?? Does not RTW only use the .c to make an
executable??? And how do I make this .MEX , when CMEX does not support
my TEXAS compiler????

Grateful for any help
Dan

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

Dan Hellgren E-mail: Dan.Hellgren@cca.hh.se

Centre for Computer Systems Architecture WWW : http://www.hh.se/cca
Halmstad University Phone: ++ 46 35 167236
Box 823 Fax : ++ 46 35 120348
S-30118 Halmstad
Sweden

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




Date Subject Author
6/11/97
Read CMEX on DSPs?
Dan Hellgren
6/11/97
Read Re: CMEX on DSPs?
Jeff Faneuff

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2017. All Rights Reserved.