dll - Interprocess communication with Matlab on Windows -


i'm building game in unity3d integrates code in matlab. i'm looking 1-way communication channel unity3d matlab on 1 computer.

the message short string.

the frequency of these messages low.

example:

  • i start game in unity3d.

  • at start, unity3d send out 'message1' matlab

  • 30 seconds later unity3d sends out 'message2' matlab

  • 30 seconds later unity3d sends out 'message3' matlab

i know programming knowledge not advanced enough own. i've been doing ton of research , need advice on focus efforts on. don't need sort of authentication protocol because i'm using 1 computer.

based on description above ipc think should use , why? need direction on focus work on because not advanced.

  • dll share memory between 2 processes

  • tcp sockets

  • udp sockets (what's difference tcp socket in case?)

  • (i can't use named pipes because unity3d not support it.)

what want use matlab engine api. see : http://www.mathworks.com/help/matlab/calling-matlab-engine-from-c-c-and-fortran-programs.html?refresh=true

and there nice detailed demo posted here : http://www.umiacs.umd.edu/~jsp/downloads/matlabengine/matlabengine.pdf i've tested , worked !


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -