public static void ofn_branch(String num, long waittime, String filepath, String downloadpath, String []paras, Scanner scanner){
		String line="", result = "";
		int item=0;
		System.out.println("Please choose the OFN rotate direction you want to test: 1=clockwise, 2=counterclockwise, 0=return:");
		line=scanner.nextLine();
		
		while(!(line.equals("0"))){
			while ((!(line.equals("1")))&&(!(line.equals("2")))&&(!(line.equals("0")))){
				System.out.println("Error input! ");
				System.out.println("Please choose the OFN rotate direction you want to test: 1=clockwise, 2=counterclockwise, 0=return:");
				line=scanner.nextLine();
			}
			
			if (line.equals("0")){
				break;
			}
			item = Integer.parseInt(line);
			
			switch(item){
			case 1:
				OFN_Clockwise.serialcomm(num,waittime);
				OFN_Clockwise.fileprocess(downloadpath, filepath, paras);
				break;
			case 2:
				OFN_CounterClockwise.serialcomm(num,waittime);
				OFN_CounterClockwise.fileprocess(downloadpath, filepath, paras);
				break;
			}
			
			System.out.println("Please choose the OFN rotate direction you want to test: 1=clockwise, 2=counterclockwise, 0=return:");
			line=scanner.nextLine();
		}
		
	}