Skip to content

Commit

Permalink
fix peak fifo (#95)
Browse files Browse the repository at this point in the history
* fix peak fifo

* remove print
  • Loading branch information
minjungkh authored Nov 14, 2016
1 parent cce0bcb commit 927dbb6
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions ldk/drivers/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ def __init__(self, client, verbose=False):
self.wfm_size = 4096
self.max_current = 40 # mA
self.sampling = Sampling(self.wfm_size, 125e6)

self.fifo_start_acquisition(1000)

self.avg_on = True

self.spectrum = np.zeros(self.wfm_size, dtype=np.float32)
Expand All @@ -39,8 +36,6 @@ def __init__(self, client, verbose=False):

self.noise_floor = np.zeros(self.wfm_size, dtype=np.float32)

# self.set_offset(0, 0)

self.set_address_range(0, 0)

self.set_demod()
Expand Down Expand Up @@ -204,24 +199,9 @@ def set_averaging(self, avg_status): pass
# === Peak data stream

def get_peak_values(self):
@command(classname='Spectrum')
def store_peak_fifo_data(self):
return self.client.recv_uint32()

self.peak_stream_length = store_peak_fifo_data(self)

@command(classname='Spectrum')
def get_peak_fifo_data(self):
return self.client.recv_vector(dtype='uint32')
data = get_peak_fifo_data(self)
return data

return get_peak_fifo_data(self)

@command()
def get_peak_fifo_length(self):
return self.client.recv_uint32()

@command()
def fifo_start_acquisition(self, acq_period): pass

@command()
def fifo_stop_acquisition(self): pass

0 comments on commit 927dbb6

Please sign in to comment.