RobotStudio event

how to get force values while robot moves

Hello! I need help with the programming of a ForceControl force sensor. I need the sensor to measure the force exerted by the robot as it moves from position A to position B. It would be best if it could provide me with the values every 0.5 seconds so that I can create a graph with the data