Can't call send from JeroMQ library integrated with Matlab.
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Derek Wood
2020 年 4 月 24 日
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!
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Platform and License についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!