## Restarting the simulation from Matlab remote API

Typically: "How do I... ", "How can I... " questions
Rosuar
Posts: 1
Joined: 12 Feb 2021, 02:50

### Restarting the simulation from Matlab remote API

Hello, I'm pretty new with the software and I'm stuck on a problem:

I'm trying to make a simulation of a dynamic system that is affected by gravity, the problem that I have is that if I run the simulation and then start the matlab script, a part of my model falls down so I want to be able to restart the simulation based on the remote commands that I found:

 sim.simxStopSimulation(clientID,sim.simx_opmode_blocking); sim.simxStartSimulation(clientID,sim.simx_opmode_blocking); 

What happens is that the simulation does stop, but won't start again, what am I doing wrong?