Git Product home page Git Product logo

zeromq-matlab's Introduction

zeromq-matlab

ZeroMQ mex bindings for MATLAB. This version is known to work with ZeroMQ 3.2.2 on Mac OSX 10.8.3 with MATLAB 2012b and on Ubuntu 12.04 with MATLAB 2013a.

Tested with ZeroMQ 4.0.5 on MATLAB R2015a. TCP needs two different hosts.

Requires ZeroMQ to be installed first (see below)

To build, run "make"

To test, run "make test" if MATLAB can be called from the commandline.

Installing ZeroMQ 3.2.2 on Ubuntu 12.04

Download the tarball from http://www.zeromq.org/intro:get-the-software In the root of the extracted archive, run the following commands:

  1. ./configure
  2. make
  3. sudo make install
  4. sudo ldconfig

zeromq-matlab's People

Contributors

cboots avatar lmillefiori avatar smcgill3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

zeromq-matlab's Issues

Problems with the installation on Ubuntu

I've been having some troubles with the installation on Ubuntu, when I run the make on console, It just says that the mex command is not found.

I tried running mex zmq to no avail either

I hope you can help me.

Thanks a lot

Subscriber using TCP freezes

Thank you for the library!

I wanted to use it as a ZMQ subscriber using TCP (the publisher runs on a different box). Unfortunately, after calling

s1 = zmq( 'subscribe', 'tcp', ip, port )

the program reported error ("Could not connect to socket!"). After calling it again, the program freezed and I had to restart Matlab.

After looking into zmq.cc I found that there is a little mistake at line 166. The line should be

rc=zmq_connect( sockets[socket_cnt], zmq_channel );

instead of

rc=zmq_bind( sockets[socket_cnt], zmq_channel );

After this fix the subscriber works as expected and Matlab code

s2 = zmq( 'subscribe', 'tcp', ip, port)
[recv_data,has_more] = zmq( 'receive', s2);
disp( char(recv_data') );

displays publisher's message correctly.

setup problem on Windows

Hello, I download your codes and make file on my own computer

the make works well,and there are a new file named "zmq.mexw64" in my current folder.

but the matlab always show me the error:
Invalid MEX-file 'C:\Users\Administrator\Desktop\zeromqmatlabmaster\zmq.mexw64':

can you help me?

thanks a lot.

Problems with tcp connection

Hi!
am trying the test_zmq script on Ubuntu 14.04, R2013b. Installation seems fine, connecting with icp works ok. However I can't get the tcp connection to work (using localhost/127.0.0.1 on port 4000).

Setting up the subscribe/publish tcp channels returns no errors, but polling returns no tcp channel to the idx. Doesn't seem to matter whether I have echotcpip toggled on or not. Should I be able to do an echo test on localhost, or should I try an actual remote machine? Mostly I just want to make sure I can use matlab to send/receive remotely via zmq, before trying to set up a connection to our hardware API.

Sorry if this is a silly question, I haven't done anything with zmq before and am trying to figure things out as I go!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.