def __set_frequency(self, value): # example in 488 commands # ibsic # ibsre 1 # ibcmd "?@!" # ibwrt "F0050000000\n" # ibcmd "?" self._frequency = value s = str(int(round(10*value))).zfill(10) gpib = visa.Gpib(self.board_n) vpp43.gpib_command(gpib.vi, '?@' + self.address_chr) vpp43.write(gpib.vi, 'F' + s + '\n') vpp43.gpib_command(gpib.vi, '?')
def __set_frequency(self, value): # example in 488 commands # ibsic # ibsre 1 # ibcmd "?@!" # ibwrt "F0050000000\n" # ibcmd "?" self._frequency = value s = str(int(round(10 * value))).zfill(10) gpib = visa.Gpib(self.board_n) vpp43.gpib_command(gpib.vi, '?@' + self.address_chr) vpp43.write(gpib.vi, 'F' + s + '\n') vpp43.gpib_command(gpib.vi, '?')
def __set_amplitude(self, value): self._amplitude = value gpib = visa.Gpib(self.board_n) vpp43.gpib_command(gpib.vi, '?@' + self.address_chr) vpp43.write(gpib.vi, 'A' + str(int(-value)) + '\n') vpp43.gpib_command(gpib.vi, '?')