Creating a TCP Server MEX file
Mostra commenti meno recenti
Has anybody tried to create a mex file running as a tcp server? I'm trying to get rid of the error below and build a MEX file out of it.
I'm getting an error from my code generation report using matlab-coder to generate a mex file:
- Found unsupported global data initialization class for global variable 'interfaceObject'.MATLAB class 'tcpip' found at 'interfaceObject' is unsupported.*
The code is something like this:
function TempStream_Live_D %#codegen
global interfaceObject
IP_to_track = '192.168.194.185';
coder.extrinsic('tcpip');
interfaceObject = tcpip(IP_to_track,2101,'NetworkRole','server');
...
Here's the hyperlink of the example tcpip-server file I edited from: http://www.mathworks.com/matlabcentral/fileexchange/345
Note: Original question posted on stackoverflow. http://stackoverflow.com/questions/13431586/creating-a-tcp-server-mex-file
Risposta accettata
Più risposte (1)
Antoine Steiblen
il 28 Giu 2016
0 voti
I have just run into this problem, any solutions since this post?
2 Commenti
Categorie
Scopri di più su MATLAB Coder in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!