Can't call send from JeroMQ library integrated with Matlab.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have some simple code that imports the JeroMQ jar file, and I'm able create a context, a socket, and a message, but when I go to send the message, I get the following error message even though when I tab-complete command. I see send as a valid function.
To use 'send', at least one of the following products must be licensed, installed, and enabled:
Parallel Computing Toolbox
Robotics System Toolbox
Here is the code boiled down to its simplest form:
import org.zeromq.ZMQ
ip = '192.168.1.20'
ZMQ_MSG_PORT='50001'
ctx = zmq.Ctx();
message = zmq.Msg();
cmdsocket = ctx.createSocket(ZMQ.REQ);
cmdsocket.connect(['tcp://' ip ':' ZMQ_MSG_PORT]);
cmdsocket.send("Hello",0);
It seems to me that there is some sort of path issue or something, because I am able to run the connect functions and the socketCreate functions. Any help is VERY MUCH appreciated.
-J
1 comentario
Derek Wood
el 24 de Abr. de 2020
I know I'm late to the party, but for anyone else with this problem, I solved it by using these imports instead:
import org.zeromq.*
import java.lang.*
After this fix, matlab no longer interprets zmq.send() as an overloaded function from control toolbox.
Hope it helps!
Respuestas (0)
Ver también
Categorías
Más información sobre Platform and License en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!