Open Ephys publisher/subscriber
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,
Shay
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Christopher Sta... on 24 Aug, 2017 08:14 PM
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:
To launch the subscriber process:
If you have any questions, please let me know.
Cheers,
Chris
Christopher Stawarz closed this discussion on 06 Sep, 2017 02:38 PM.