[Matlab][VREP][Synchronous simulation]

Typically: "How do I... ", "How can I... " questions
Post Reply
victorcv_s
Posts: 8
Joined: 09 Sep 2021, 23:12

[Matlab][VREP][Synchronous simulation]

Post 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...

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

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

Post 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

victorcv_s
Posts: 8
Joined: 09 Sep 2021, 23:12

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

Post 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.

Post Reply