howto use mex to compile S-functions to use with Real-Time Windows Target

howto use mex to compile S-functions to use with Real-Time Windows Target

Post by Abdul Safs » Thu, 13 Jan 2005 18:13:16


Hi all,

In the previous versions of matlab (6p1 and 6p5) I was able to insert
my own s-functions using the mex utility.. (generating a .dll file
and using it directly in the real time simulation and access
hardware). But the in matlab7 rtwin uses openwatcom compiler which is
not supported by the mex utility.. (when you try to setup mex using
mex -setup, openwatcom compiler is not included in the supported
compilers list)

Can I use the sfunctions compiled with lcc or microsoft visual c.net
with the new rtwin? is there a way to use openwat with mex utility?
how about the sfunctions that access the hardware directly.. how
should I compile and link than with the new rtwin..

all commands and ideas would be appreciated.

thanks

Abdul
 
 
 

howto use mex to compile S-functions to use with Real-Time Windows Target

Post by Abdul Safs » Sat, 15 Jan 2005 02:43:42

My mistake..
you can compile (via mex) s-functions using some other compiler and
use it with real-time windows target and even access hardware by
using these s-functions..

should have tried it before sending it here..