Page 1 of 1

[Matlab][VREP][Synchronous simulation]

Posted: 11 Sep 2021, 21:27
by victorcv_s
Hi. I'm codding a "Pionner_p3dx" with a synchronous code in MATLAB, but seems that Coppelia isn't follow the code. My code controls 40 steps of 0.05s (50ms) each, and should pass 2 seconds of total simulation time, but pass about 60-120 seconds. why? Seems like it cannot read the "vrep.simxSynchronousTrigger(clientID);". There's another command that do this?

>> command 'A'
>> simulation step ONLY 50ms
>> command 'A'
>> simulation step ONLY 50ms
and so on...

Re: [Matlab][VREP][Synchronous simulation]

Posted: 13 Sep 2021, 07:22
by coppelia
Hello,

can you show us your simplified Matlab code?
Did you also have a look at the python example in programming/remoteApiBindings/python/python/synchronousImageTransmission.py? (the Matlab code would be quite similar)

Cheers

Re: [Matlab][VREP][Synchronous simulation]

Posted: 13 Sep 2021, 09:08
by victorcv_s
Hello,

I solve it. After searching a lot, I discovered that I should set on 'remoteApiConnections.txt' from 'C:\Program Files\V-REP3\V-REP_PRO_EDU' the same port i'm using at MATLAB.

Sorry, I'm not a professional and all I know about Coppelia/V-REP was in a class about it with ~30min.