|
From: Philippose R. <sa...@ro...> - 2006-02-23 22:32:58
|
Hi Bass Pumped (Sigh !!), Good evening to you! I have a feeling you might be confusing a "mex" file, and an "S-Function". The udp_send, and udp_plotter matfiles, are matlab functions, which call the "pnet" mex file in order to send data over UDP Sockets...and to plot data which it receives on the UDP Socket. These functions cannot be directly used in Simulink, because simulink requires an "S-function". A mex-file and a compiled S-Function both end up in the form of a DLL in Windows, but the internal structure of an S-Function is much more extensive than a mex-file. A mex-file can be used at the Matlab command line, and in ".m" files executed within the matlab environment, but they cannot be used straight off within a Simulink environment. Well, I agree its a little confusing because Matlab calls both "mex" files in some documentaion, and the compiling is done using the same set of steps. I dont know if I am making some mistake in understanding what you are implying or not....do correct me if I am wrong :-)! Hope to hear from you! Regards, Philippose __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |