Thanks for the suggestion Greg. The main aim is to input torque( function of time). In this project I'm mainly applying a revolute joint between the two arms and the motion described is AKISPL(Time,0,.world.Spline_1,0). Is this right? The time in the code is making it run only for 1 second...