I would try again and make sure you remove/comment out where you write the torque to the log file. I was able to run your program and make a valid angle log using the following code:
If you still want to log the $CUR_TORQUE, $TORQUE or $MAX_TORQUE Variables you need to use the correct DATA types. These system variables are stored as SHORT data types and your GET_VAR instructions were trying to write into REAL variables. SHORT data needs to be assigned to BYTE or INTEGER variables. After changing your data types and a couple of CNV instructions I was able to make a valid log containing both Angle and CUR_TORQUE values:
Thank you very much for your precise answer , but in the obtained file some values are saved as * as in the attached file from you .
So do you have any idea how to extract the value correctly?
And do you have any idea which variables I should use to extract or save the speed of the motors or encoders and the speed of the joints ?