Hi,
I have created a program in RoboDK using the API and now want to run a simulation of that program to check if it looks OK. Since the program is a little larger I do not want to watch it in real time and therefore tried to speed up the simulation. I figured it would be nice if the simulation would take 5min (300s), independently from the actual cycle time.
这是我的程序:
估计周期时间1:34:03, therefore my simulation speed should be 18.81 to achieve a simulation time of 300s. When I run the simulation as shown above, it does not really seem to run faster than real time. Can you help me out here?
I have created a program in RoboDK using the API and now want to run a simulation of that program to check if it looks OK. Since the program is a little larger I do not want to watch it in real time and therefore tried to speed up the simulation. I figured it would be nice if the simulation would take 5min (300s), independently from the actual cycle time.
这是我的程序:
Code:
rc=PrintProgram.Update(check_collisions, timeout_sec, mm_step, deg_step)
cycTime=rc[1]
simTime=float(300)
speed=cycTime/simTime
RDK.setSimulationSpeed(speed)
run_mode = 1
RDK.setRunMode(run_mode)
code = 'Print_project'
code_is_fcn_call = False
RDK.RunCode(code,code_is_fcn_call)