def get_inl_array(): """ Read the INL corrections from the adc and put in an array """ inl = np.zeros((5,17), dtype='float') for chan in range(1,5): inl[chan] = adc5g.get_inl_registers(roach2, zdok, chan) inl[0] = range(0, 257,16) return inl.transpose()
def get_inl_array(): """ Read the INL corrections from the adc and put in an array """ inl = np.zeros((5, 17), dtype='float') for chan in range(1, 5): inl[chan] = adc5g.get_inl_registers(roach2, zdok, chan) inl[0] = range(0, 257, 16) return inl.transpose()
def get_inl_chan(self, chan): """ Returns INL correction coefficients (17 coeff/core) for channel 'chan' """ inl_chan = [] zdok, cores = self.get_channel_core_spi(chan) for core in cores: inl = adc5g.get_inl_registers(self.roach, zdok, core) inl_chan.append(inl) return inl_chan