def screen_dump(self, fname="_.hp5372a.pbm"): print(self.id + " Taking a screendump into " + fname) self.wr("INTERFACE;PSOURCE,DISPLAY") self.wr("PRINT") x = "" while True: x = x + self.rd() if x[-5:] == "\033*rB\0": break pcl_util.pcl_to_pbm(x, fname)
def screen_dump(self,fname = "_.hp5372a.pbm"): print(self.id + " Taking a screendump into " + fname) self.wr("INTERFACE;PSOURCE,DISPLAY") self.wr("PRINT") x = "" while True: x = x + self.rd() if x[-5:] == "\033*rB\0": break; pcl_util.pcl_to_pbm(x, fname)
def screen_dump(self, fname="_.tds540a.pbm"): print(self.id + " Taking a screendump into " + fname) self.AOK() self.wr("HARDCOPY abort") self.AOK() self.wr("CLEARMenu") self.AOK() self.wr("HARDCOPY:FORMAT THINKJET") self.wr("HARDCOPY:LAYOUT PORTRAIT") self.wr("HARDCOPY:PORT GPIB") self.AOK() self.wr("HARDCOPY start") x = "" while True: y = self.rd() x = x + y if y[-1:] == "\014": break pcl_util.pcl_to_pbm(x, fname)
def screen_dump(self, fname = "_.tds540a.pbm"): print(self.id + " Taking a screendump into " + fname) self.AOK() self.wr("HARDCOPY abort") self.AOK() self.wr("CLEARMenu") self.AOK() self.wr("HARDCOPY:FORMAT THINKJET") self.wr("HARDCOPY:LAYOUT PORTRAIT") self.wr("HARDCOPY:PORT GPIB") self.AOK() self.wr("HARDCOPY start") x = "" while True: y = self.rd() x = x + y if y[-1:] == "\014": break pcl_util.pcl_to_pbm(x, fname)