RobotStudio event

Measure traveltime and simulate moves between targets automaticlly

I´m trying to create an add-In to RobotStudio in C#, there I´m trying to simulate the robot to move between all targets and at the same time measure the time it takes for the robot to moves betweeen each pair of target. Does some one know how to do it? Or, if it possible to solve it in another way. The result need to be the time it takes to go from one target to all other targets, for each targets.

Comments

  • You can set a clock in the RAPID code that can do the trick for you. Set an output high every time it reaches a target which then triggers an interrupt and a trap routine to store the current value of the clock. 
  • But I´m just using c# in the add-in, not RAPID. I have tried out the Stopwatch method in C# but it doesn´t measure the correct time because it include the time to execute the commands and not only the robotmoves.

    Does anyone know how to simulate a robotpath and measure the time between every target, automatic in C# add-in? I´ve tried the method MoveTo() but it doesn´t work..I create a RsMoveInstruction for every target and use MoveTo() for each moveinstuction but it doesn´t work. I can create a path automatic but need help to fix the problem to move the robot and measure the time.