def run(self):
"""<STR_LIT>"""<EOL>print('<STR_LIT>')<EOL>if self.ui.tabWidget.currentIndex() == TabWidget.NORMAL_MODE:<EOL><INDENT>self.data()<EOL>self.check_values()<EOL>if self.without_error == False:<EOL><INDENT>self.display_error_message()<EOL><DEDENT>elif self.without_error == True:<EOL><INDENT>self.is_running = True<EOL>self.hide_error_message()<EOL>self.write_to_file()<EOL>os.chdir('<STR_LIT>')<EOL>self.progress_bar()<EOL>this_dir = os.path.dirname(os.path.realpath(__file__)).rstrip('<STR_LIT>')<EOL>batch_file = os.path.join(this_dir, "<STR_LIT>" + str(self.batch_name_value) + "<STR_LIT>")<EOL>print(batch_file)<EOL>self.p = subprocess.Popen(<EOL>["<STR_LIT>" + batch_file],<EOL>shell=True)<EOL>if self.ui.progressBar.value() == <NUM_LIT:100>:<EOL><INDENT>self.display_the_graphic(self.num_line, self.wavelength, self.data_wanted, self.information)<EOL><DEDENT><DEDENT><DEDENT>
This function executes planarRad using the batch file.