|
@@ -134,9 +134,11 @@ class ADUCv2p1:
|
|
return self.bus_pi.write_byte_data(self._addr,115,status)
|
|
return self.bus_pi.write_byte_data(self._addr,115,status)
|
|
|
|
|
|
def get_remote_trigg(self):
|
|
def get_remote_trigg(self):
|
|
- block = self.bus_pi.read_i2c_block_data(self._addr,115,1)
|
|
|
|
- self._addr = block[0]
|
|
|
|
- return block[0]
|
|
|
|
|
|
+ block = self.bus_pi.read_i2c_block_data(self._addr,115,2)
|
|
|
|
+ buff = pack("2B",*block)
|
|
|
|
+ dat = unpack("<H",buff)
|
|
|
|
+ dat=np.uint16(dat)
|
|
|
|
+ return dat[0]
|
|
|
|
|
|
# Sets the number of recorded points, up to a maximum of 256. Sampling frequency is approx. 1MHz.
|
|
# Sets the number of recorded points, up to a maximum of 256. Sampling frequency is approx. 1MHz.
|
|
def set_wf_len(self,wf_len):
|
|
def set_wf_len(self,wf_len):
|