I am trying to write a code for JD Humanoid where I can track the data coming from the servo. First I tried to write the following ode with EZ-Script. It serves my initial purpose but I also need a proper timestamp in "ddmmyyyyhhmmssffff" format. Apparently it seems that I can't do it with EZ-Script. So, I am thinking to write a similar code in Python as I can make the required timestamp formatting there. So, can anyone help me with this?
$pos0 = getservo(d0)
ControlCommand("Graphy", AddData, "Servo D0", $pos0)
$pos1 = getservo(d1)
ControlCommand("Graphy", AddData, "Servo D1", $pos1)
ControlCommand("Graphy", AddData, "Servo D4", $pos)
FileWriteLine("c:\temp\mylog.txt", $time + ", servo D0: " + $pos0 + ", servo D1: " + $pos1)