Trigger Start | Stop | Reset KRL robot program using python

Hello

I am currently using KUKA.Sim and visual components and have a robot in my simulation with some motion programs selected.

Question:
Is there a way to start, stop, reset the simulation through python script for a particular robot?

Also is there a way to change the selected KRL robot program through the python script without having to go to the Program tab.

Could someone provide me an example please and would the VC solution also work in Kuka.Sim?

Thanks

Hi, as far as I know starting and stopping is a global action for the whole simulation. So stopping and starting a single robot is probably not possible.
I did not test yet, but I assume you should be able to start and stop the simulation also from a Python script and it should work the same for VC and KUKA.Sim.

Thanks mastu for your reply

Could you provide an example python script that does the start stop and reset of simulation please?

I might have to correct myself, apparently i cannot remember my own postings. Apparently it is currently not possible to start/stop simulation from Python level.

Please read this post
Start/reset simulation from python command - Extensions and Python Add-ons - Visual Components - The Simulation Community