Universal Robots Forum

URScript through Python

I am using socket communication and programming it through python language.
I have installed getcontrollertime() URcap.
I am trying to print the values for ex - getcontrollertime(). I can able to do it in teach pendent but I am trying to get it in python by connecting my PC. I am unable to get a value.
Can you please help me out with this?

to log the values of your python daemon you can use the logging library from python.

import logging
logging.warning("My text")

You can then find the log in the GUI/felix-cache-directory of the robot or simulation.

1 Like

Thank you for your response.
So can I able to get the real time clock with the help of python logging. Actually my objective is to get a real time clock data using python.