Export the robot's TCP coordinate data to a CSV file

I would like to export the robot’s TCP coordinate data to a CSV file.
I want to collect TCP coordinate data at 0.04-second intervals while the robot is moving and save it as a CSV file.
I have written the code so far using other references, but I am not sure where to modify it.
Could anyone help me with this?

Thank you.

[24.09.23] csv tcp coordinate.vcmx (122.7 KB)

1 Like

Is there any reason you want the robot simulation’s TCP coordinate data?

You want to use it as training data for your data analysis model.
Can you help me?

Well, one of my collegaue made a rehabilitation robot simulation in Process Simulate with 6 jointed robots. He exported his work into excel. I collected from this forum a python script with which you can import those joint values to those same 6 jointed robots from .csv formatted file. And know I want to export the world coordinate path target points to a .csv. After that I reimport those x,y,z,rx,ry,rz coordinates to 7 jointed robots, because VC is much better when simulating robots paths with 7 joints and we dont wanna waste the work of my collegaue.