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????