
smondal
Australia
Asked
— Edited

Hi 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? Thanks.
ControlCommand("Graphy", RemoveAllSeries)
:loop
$pos0 = getservo(d0)
ControlCommand("Graphy", AddData, "Servo D0", $pos0)
$pos1 = getservo(d1)
ControlCommand("Graphy", AddData, "Servo D1", $pos1)
controlCommand("Camera", "CameraMovementTrackEnable")
ControlCommand("Graphy", AddData, "Servo D4", $pos)
FileWriteLine("c:\temp\mylog.txt", $time + ", servo D0: " + $pos0 + ", servo D1: " + $pos1)
sleep(10)
goto(loop)
Related Hardware JD Humanoid
Related Control
Graphy
Thanks a lot. Now I can extract the data just as I wanted!