Timer function on old Polyscope 1.8 Control

Hi everyone,

I am pretty new to UR so maybe you guys have an easy fix for my problem, but I feel a bit like banging my head against the wall here.

So what I am trying to do here is basically to measure my cycle time and save this value into a variable.
We have another UR20 with seemingly a newer control. Here it works like a charm but that is most likely due to the fact that that controller has a ‘Timer’ function.

Well the UR20 I am trying to get going now does not.
Is there any way we can get this done without any crazy scripting? Because guess what? I suck at that :smiley:

Take care all

Make a thread with a 1 second Wait. After each Wait, increase a variable by the value of 1. :slight_smile:

Then, at the start of your program, you reset the variable to 0. And then at the end of your program, you write the timer variable to another variable.

ah okay that seems to work somehow.
Now it would be pretty important for me to get the timer value together with decimals. is that possible aswell?

You can just make the Wait smaller. For example 0.1 seconds. :slight_smile:

Then you must divide your second variable by 10 to get your time with 1 decimal.

yes okay thank you I got it done late yesterday but seems to be working fine now. slightly disappointing that the control cannot show decimals in the variables but that is something i can work with.
Thanks a lot I will mark this topic as done :slightly_smiling_face: