Universal Robots Forum

Reading the current time

Hello all,

Is it possible to execute a part of program code once a day at a specific time (for example in thread). I need to write the value of one variable to the second variable once a day at 4PM. Generally, I have a question whether it is possible to read the current time in an easy way (using only polyscope and Scriptcode).

Thank for help

As far as I know the answer is no.

I think the simplest solution for your problem would be to set up cron job.

Check out this sample.