The Run() method gets invoked and “Simulation started” also gets printed when i press the Web button which means the Simulation should be running, right? However in VC, i can’t see the Simulation starting. If i start it manually in VC, it stops after 10 seconds, so simulation time of the method works.
Am i looking for a different method? I couldn’t find anything that works.
In what environment are you running this code (VC, VC + KUKA OLP, Kuka.Sim, OEM app)? I tested the method and it works in vanilla VC. However if I have KUKA OLP enabled and try to simulate Kuka robot with KRL Executor it does not work. I don’t know what method would work also with Kuka.
I’m using VC 4.6 Professional.
I’m running the code in my Initialize() of the IPlugin, could that be the problems cause? The Initialize should run on the main thread, right? As an alternative, I am thinking of putting everything in a IActionItem.