def gen_data_sheet(self, datafile, para_meter, scale=<NUM_LIT>, steady_time=<NUM_LIT>):
filename = os.path.splitext(os.path.split(datafile)[<NUM_LIT:1>])[<NUM_LIT:0>][:-<NUM_LIT:5>]<EOL>para_meter['<STR_LIT:filename>'] = filename<EOL>source_data = np.loadtxt(datafile, dtype=int, delimiter='<STR_LIT:U+002C>')[:, :<NUM_LIT:3>]<EOL>is_bw = '<STR_LIT>'in para_meter['<STR_LIT:title>'].lower()<EOL>file_data = process_rt_data(source_data, is_bw)<EOL>pic_path = generate_rt_pic(file_data, para_meter, scale)<EOL>pic_path_steady = generate_steady_rt_pic(file_data, para_meter, scale, steady_time)<EOL>if para_meter['<STR_LIT>'] in self.sheetname_dict.keys():<EOL><INDENT>self.sheetname_dict[para_meter['<STR_LIT>']] =self.sheetname_dict[para_meter['<STR_LIT>']] + <NUM_LIT:1><EOL>chart_sheet = self.workbook.get_worksheet_by_name(para_meter['<STR_LIT>'])<EOL><DEDENT>else:<EOL><INDENT>self.sheetname_dict[para_meter['<STR_LIT>']] = <NUM_LIT:1><EOL>chart_sheet = self.workbook.add_worksheet(para_meter['<STR_LIT>'])<EOL><DEDENT>chart_sheet.insert_image('<STR_LIT>' %<EOL>(<NUM_LIT:5> + (self.sheetname_dict[para_meter['<STR_LIT>']] - <NUM_LIT:1>) * <NUM_LIT:30>),<EOL>pic_path)<EOL>chart_sheet.insert_image('<STR_LIT>' %<EOL>(<NUM_LIT:5> + (self.sheetname_dict[para_meter['<STR_LIT>']] - <NUM_LIT:1>) * <NUM_LIT:30>),<EOL>pic_path_steady)<EOL>self.__insert_value(chart_sheet, file_data,<EOL><NUM_LIT:5> + (self.sheetname_dict[para_meter['<STR_LIT>']] - <NUM_LIT:1>) * <NUM_LIT:30>,<EOL>steady_time)<EOL>self.pic_list.append(pic_path)<EOL>self.pic_list.append(pic_path_steady)<EOL>
datafile, sheetname, x_axis_name, y_axis_name, title,
Function:
    Turn realtime bw data into picture, and save into specific sheet
Input:
    sheetname: If already exists, new chart will be added continuely.
               Otherwise, it would create new sheet;
    x_axis_name: x_axis name;
    y_axis_name: y_axis name;
    title: picure name;
    scale； size of picture.