Open Ephys publisher/subscriber

Shay Ohayon's Avatar

Shay Ohayon

23 Aug, 2017 04:42 PM

Hi Chris,

I am changing things in open-ephys to receive messages from multiple sources using a subscriber based protocol.
It would be easier if I can send messages from Mworks using a publisher protocol (i.e., instead of the reponse/request).
Can you please add publisher-style output?
It might be better to rename the existing "open ephys" modules in mworks as generic "0MQ" modules since they can serve many other purposes (i.e., have a publisher module, subscriber module, and a request/response module)

Thank you,


  1. Support Staff 1 Posted by Christopher Sta... on 24 Aug, 2017 08:14 PM

    Christopher Stawarz's Avatar

    Hi Shay,

    I think this is a good use case for MWorks' Python actions (run_python_file and run_python_string). I've attached an example experiment and associated Python scripts that demonstrate how to do ZeroMQ PUB/SUB, where the publisher is MWorks, and the subscriber is an external process. (Note that it makes use of some very new MWorks/Python functions, so you'll need to use a nightly build from this week.)

    If you don't have pyzmq installed, you can get it like so:

    easy_install --user pip  # If pip is not installed
    ~/Library/Python/2.7/bin/pip install --user pyzmq

    To launch the subscriber process:


    If you have any questions, please let me know.


  2. Christopher Stawarz closed this discussion on 06 Sep, 2017 02:38 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

17 May, 2022 02:12 PM
16 May, 2022 03:12 PM
04 May, 2022 06:02 PM
03 May, 2022 01:30 PM
02 May, 2022 10:47 PM