def GetSTB(self): """ Returns the value of the internal GPIB status byte register. """ stb = wxctb.new_intp() wxctb.intp_assign(stb, 0) self.device.Ioctl(wxctb.CTB_GPIB_GETRSP,stb) return wxctb.intp_value(stb)
def GetSTB(self): """ Returns the value of the internal GPIB status byte register. """ stb = wxctb.new_intp() wxctb.intp_assign(stb, 0) self.device.Ioctl(wxctb.CTB_GPIB_GETRSP, stb) return wxctb.intp_value(stb)
def GetAvailableBytes(self): """ Returns the available bytes in the input queue of the serial driver. """ n = wxctb.new_intp() wxctb.intp_assign(n, 0) self.device.Ioctl(wxctb.CTB_SER_GETINQUE,n) return wxctb.intp_value(n)
def GetAvailableBytes(self): """ Returns the available bytes in the input queue of the serial driver. """ n = wxctb.new_intp() wxctb.intp_assign(n, 0) self.device.Ioctl(wxctb.CTB_SER_GETINQUE, n) return wxctb.intp_value(n)
def GetEosMode(self): """ Get the internal EOS mode (see SetEosMode). For example: g = wxGPIB() g.Open(\"gpib1\",1) eos = g.GetEosMode() """ mode = wxctb.new_intp() wxctb.intp_assign(mode, 0) self.device.Ioctl(wxctb.CTB_GPIB_GET_EOS_MODE,mode) return wxctb.intp_value(mode)
def GetEosChar(self): """ Get the internal EOS termination character (see SetEosChar). For example: g = wxGPIB() g.Open(\"gpib1\",1) eos = g.GetEosChar() """ eos = wxctb.new_intp() wxctb.intp_assign(eos, 0) self.device.Ioctl(wxctb.CTB_GPIB_GET_EOS_CHAR,eos) return wxctb.intp_value(eos)
def GetEosMode(self): """ Get the internal EOS mode (see SetEosMode). For example: g = wxGPIB() g.Open(\"gpib1\",1) eos = g.GetEosMode() """ mode = wxctb.new_intp() wxctb.intp_assign(mode, 0) self.device.Ioctl(wxctb.CTB_GPIB_GET_EOS_MODE, mode) return wxctb.intp_value(mode)
def GetEosChar(self): """ Get the internal EOS termination character (see SetEosChar). For example: g = wxGPIB() g.Open(\"gpib1\",1) eos = g.GetEosChar() """ eos = wxctb.new_intp() wxctb.intp_assign(eos, 0) self.device.Ioctl(wxctb.CTB_GPIB_GET_EOS_CHAR, eos) return wxctb.intp_value(eos)
def SetEosMode(self,mode): """ Set the EOS mode (handling).m_eosMode may be a combination of bits ORed together. The following bits can be used: 0x04: Terminate read when EOS is detected. 0x08: Set EOI (End or identify line) with EOS on write function 0x10: Compare all 8 bits of EOS byte rather than low 7 bits (all read and write functions). For example: g = wxGPIB() g.Open(\"gpib1\",1) eos = g.GetEosMode(0x04 | 0x08) """ intp = wxctb.new_intp() wxctb.intp_assign(intp, mode) return self.device.Ioctl(wxctb.CTB_GPIB_SET_EOS_MODE,intp)
def SetEosMode(self, mode): """ Set the EOS mode (handling).m_eosMode may be a combination of bits ORed together. The following bits can be used: 0x04: Terminate read when EOS is detected. 0x08: Set EOI (End or identify line) with EOS on write function 0x10: Compare all 8 bits of EOS byte rather than low 7 bits (all read and write functions). For example: g = wxGPIB() g.Open(\"gpib1\",1) eos = g.GetEosMode(0x04 | 0x08) """ intp = wxctb.new_intp() wxctb.intp_assign(intp, mode) return self.device.Ioctl(wxctb.CTB_GPIB_SET_EOS_MODE, intp)
def SetEosChar(self,eos): """ Configure the end-of-string (EOS) termination character. Note! Defining an EOS byte does not cause the driver to automatically send that byte at the end of write I/O operations. The application is responsible for placing the EOS byte at the end of the data strings that it defines. (National Instruments NI-488.2M Function Reference Manual) For example: g = wxGPIB() g.Open(\"gpib1\",1) eos = g.GetEosChar(0x10) """ intp = wxctb.new_intp() wxctb.intp_assign(intp, eos) return self.device.Ioctl(wxctb.CTB_GPIB_SET_EOS_CHAR,intp)
def SetEosChar(self, eos): """ Configure the end-of-string (EOS) termination character. Note! Defining an EOS byte does not cause the driver to automatically send that byte at the end of write I/O operations. The application is responsible for placing the EOS byte at the end of the data strings that it defines. (National Instruments NI-488.2M Function Reference Manual) For example: g = wxGPIB() g.Open(\"gpib1\",1) eos = g.GetEosChar(0x10) """ intp = wxctb.new_intp() wxctb.intp_assign(intp, eos) return self.device.Ioctl(wxctb.CTB_GPIB_SET_EOS_CHAR, intp)