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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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
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 Hellgren E-mail:

Centre for Computer Systems Architecture WWW :
Halmstad University Phone: ++ 46 35 167236
Box 823 Fax : ++ 46 35 120348
S-30118 Halmstad


Date Subject Author
Read CMEX on DSPs?
Dan Hellgren
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-2018. All Rights Reserved.