Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Difference between Cycle Time and Simulation Time

#8
(01-26-2022, 06:29 AM)john_17s Wrote:
(01-21-2022, 04:09 PM)Jeremy Wrote:Did you select a program?
It just means the station item provided, in this case a program, is not valid.
If you don't have a program in your station it won't work.

Yes, I select a Python Program.
To help you better understand the cases, I've been attached my program.

Since the program you selected is not a robot program. The Cycle Time Display Script does not work (You would be measuring the execution time of the python program, not the robot cycle).

What your Python program is doing is sending movement commands to the Robot, not creating a robot program.

b我elieve you have 2 options:


1) Set the simulation speed to 1 and add a tic() at the beginning of the python program and a toc() at the end. You can display the difference. (Less work but less accurate)

2) Create a method in yoursimulator classthat creates a RoboDK robot program with the functions that have been sent to the robot. (More work but more realistic)


Messages In This Thread
RE: Difference between Cycle Time and Simulation Time - byAlex- 01-26-2022, 10:29 PM



Users browsing this thread:
1 Guest(s)