* Playback mode is enabled using this function.
*/
public void enablePlaybackMode(String filePathPlaybackWithName){
int status;
IntW playBackStatus = new IntW(1);
IntW playBackObjectHandle = new IntW(1);
status = dynamotionServer.simxGetUIHandle(clientID, "UI", playBackObjectHandle, dynamotionServer.simx_opmode_oneshot_wait);
//System.out.format("enablePlaybackMode() function status %d\n",status);
//int S = dynamotionServer.simxGetUIButtonProperty(clientID, playBackObjectHandle.getValue(), 506, playBackStatus, dynamotionServer.simx_opmode_streaming);
//System.out.format("Playback Button on(8536) status %d\n",playBackStatus.getValue());
//System.out.format("Playback Button %d\n",S);
int J = dynamotionServer.simxSetUIButtonProperty(clientID, playBackObjectHandle.getValue(), 506, 8536 , dynamotionServer.simx_opmode_oneshot_wait);
//System.out.format("Playback Button on status %d\n",playBackStatus.getValue());
//System.out.format("Playback Button working if 0 not working if 1: %d\n",J);
dynamotionServer.simxSetIntegerSignal(clientID,"RemoteAPI_button",506,dynamotionServer.simx_opmode_oneshot_wait);
dynamotionServer.simxSetStringSignal(clientID,"filepath",filePathPlaybackWithName,dynamotionServer.simx_opmode_oneshot_wait);