Note that there are some explanatory texts on larger screens.

plurals
  1. POpnet communication from win64 to win32
    primarykey
    data
    text
    <p>I use the <a href="http://www.mathworks.com/matlabcentral/fileexchange/345-tcpudpip-toolbox-2-0-6" rel="nofollow">pnet tcp/udp toolbox</a>) along with <a href="http://psychtoolbox.org/HomePage" rel="nofollow">psychtoolbox</a> to communicate between two instances of matlab in different machines. One of my machines is a 32 bit win7 running matlab 2010b. The other is a 64 bit win 7 running matlab 2012a. I have a problem in transferring data from one computer to the other.</p> <p><strong>Experiment 1</strong>: Run the udp_send_demo from the 64 bit computer while running the udp_plotter_demo from the 32 bit computer. <em>Expected result</em>: 32 bit computer plots data, waits for keyboard input. If Kb input, close figure and end demo. 64 bit finishes sending and stops demo. <em>Actual result</em>: 64 bit behaves as it should. 32 bit computer plots but hangs and refuses to close the demo. It does not respond to any keyboard input and has to be force closed. </p> <p><strong>Experiment 2</strong>: Run above experiment in reverse with 32 bit sending and 64 bit reading. <em>Expected result</em>: 64 bit plots and waits for Keyboard input. If kb input found, stop demo. <em>Actual result</em> the 64 bit matlab crashes claiming a segmentation violation in the mex file. It displays a stack trace (I am appending a part of it at the end). </p> <p>Playing around with the port numbers makes no difference. Recompiling the 'pnet.c' source file instead of using the precompiled mex makes no difference. <strong>Question</strong>: Has anybody tried something like this? Did you get it to work? Can you suggest things to try to get this to work without having to install 32 bit matlab in my Win64 computer?</p> <p>============</p> <p>Code:</p> <p><strong>SERVER SIDE:</strong> </p> <pre><code>udp_send_demo('sin(0:0.1:6)',clientIPStr,portToListen) </code></pre> <p><strong>CLIENT SIDE:</strong> </p> <pre><code>udp_plotter_demo(portToListen) </code></pre> <p>=============</p> <p><strong>Stack Trace</strong></p> <hr> <h2> Segmentation violation detected at Sat Sep 29 16:41:11 2012</h2> <p>Configuration:</p> <p>Crash Decoding : Disabled</p> <p>Default Encoding: windows-1252</p> <p>MATLAB Root : C:\Program Files\MATLAB\R2012a</p> <p>MATLAB Version : 7.14.0.739 (R2012a)</p> <p>Operating System: Microsoft Windows 7</p> <p>Processor ID : x86 Family 6 Model 58 Stepping 9, GenuineIntel</p> <p>Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode</p> <p>Window System : Version 6.1 (Build 7601: Service Pack 1)</p> <p>Fault Count: 1</p> <p>Abnormal termination: Segmentation violation</p> <p>Register State (from fault): RAX = 0000000000000000 RBX = 0000000000000000</p> <p>RCX = 000000005d0df7d7 RDX = 0000000000000001</p> <p>RSP = 00000000040671b0 RBP = 0000000004067289</p> <p>RSI = 000000000000003d RDI = 000000000000003d</p> <p>R8 = 000000005d0df7d6 R9 = 000050490ee40167</p> <p>R10 = 000000000000003d R11 = 0000000000000000</p> <p>R12 = 0000000000000008 R13 = 000007fefb997678</p> <p>R14 = 0000000000000002 R15 = 0000000000000002</p> <p>RIP = 000007fefb99238a EFL = 00010202</p> <p>CS = 0033 FS = 0053 GS = 002b</p> <p>Stack Trace (from fault):</p> <p>[ 0] 0x000007fefb99238a C:\Users\ephys-data\Desktop\temp\tcp_udp_ip\pnet.mexw64+00009098 ( perror+004298 )</p> <p>[ 1] 0x000007fefb99389b C:\Users\ephys-data\Desktop\temp\tcp_udp_ip\pnet.mexw64+00014491 ( mexFunction+001979 )</p> <p>[ 2] 0x0000000074f10f63 C:\Program Files\MATLAB\R2012a\bin\win64\libmex.dll+00069475 ( mexRunMexFile+000131 )</p> <p>[ 3] 0x0000000074f0fce2 C:\Program Files\MATLAB\R2012a\bin\win64\libmex.dll+00064738 ( inSwapMexfileReader+000226 )</p> <p>[ 4] 0x0000000074f0fe58 C:\Program Files\MATLAB\R2012a\bin\win64\libmex.dll+00065112 ( inSwapMexfileReader+000600 )</p> <p>[ 5] 0x0000000074e4b046 C:\Program Files\MATLAB\R2012a\bin\win64\m_dispatcher.dll+00045126 ( Mfh_file::dispatch_fh+000486 )</p> <p>....more stuff....</p> <p>This error was detected while a MEX-file was running. If the MEX-file is not an official MathWorks function, please examine its source code for errors. Please consult the External Interfaces Guide for information on debugging MEX-files.</p> <p>If this problem is reproducible, please submit a Service Request via:....</p> <p>A technical support engineer might contact you with further information.</p> <p>Thank you for your help.</p> <hr> <p>Thanks</p> <p>-b</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload