RobotStudio event

Why the function Start() int PC SDK 5.60 does not work?

hi,everyone!
this is my code:
            NetworkScanner ns = new NetworkScanner();
            ns.Scan();
            ControllerInfo[] ci = ns.GetControllers();
            Controller controller = ControllerFactory.CreateFrom(ci[0]);
            controller.Logon(UserInfo.DefaultUser);
            Console.WriteLine(controller.SystemName);

            Task[] ts = controller.Rapid.GetTasks();
            using (Mastership m = Mastership.Request(controller.Rapid))
            {
                bool bb = controller.AuthenticationSystem.CheckDemandGrant(Grant.ExecuteRapid);
                ts[0].LoadProgramFromFile(controller.FileSystem.RemoteDirectory + "/THIS/THIS.pgf",RapidLoadMode.Replace);
                ts[0].Start();
                Console.ReadKey();
            }
these code works well if i reference them from the PC SDK 5.15. The virtual robot in RobotStudio will run the "THIS.pgf" when i run these code. But, when i reference them from PC SDK 5.60, the virtual controller will load "THIS.pgf", but virtual robot don't move. the value of "bb" is true during my test. image
the pictures is output when i test the code with PC SDK 5.60.
Can someone help me?
Thank you!

Answers

  • I am having this same issue and is described in another post.