MATLAB - V-REP connecting

Typically: "How do I... ", "How can I... " questions
Post Reply
Balu
Posts: 8
Joined: 21 Mar 2014, 14:46

MATLAB - V-REP connecting

Post by Balu » 21 Mar 2014, 15:34

Hello,
I'm trying to start the communication between MATLAB and V-REP under Windows, but I've stuck at simpleTest so far. I've built the library, but no matter what I do, I always get this result from simpleTest:
Program started
Running Matlab win64
Note: always make sure you use the corresponding remoteApi library
(i.e. 32bit Matlab will not work with 64bit remoteApi, and vice-versa)
Failed connecting to remote API server
Program ended
How can I connect to that server?

coppelia
Site Admin
Posts: 7689
Joined: 14 Dec 2012, 00:25

Re: MATLAB - V-REP connecting

Post by coppelia » 21 Mar 2014, 15:48

Hello,

did you start a server service on the V-REP side? You need to have a server service running, otherwise it will not work.
Have a look at simExtRemoteApiStart.

Or you could connect to the port 19997, where a continuous server service is running as soon as V-REP starts.

Cheers

Balu
Posts: 8
Joined: 21 Mar 2014, 14:46

Re: MATLAB - V-REP connecting

Post by Balu » 21 Mar 2014, 16:36

Ah, I've found it at last, thank you!
The problem was that I actually forgot to run the V-REP simulation before starting simpleTest.
Thanks again!

Post Reply