Skip to content

Commit

Permalink
Finished eye diagram problem
Browse files Browse the repository at this point in the history
  • Loading branch information
keithw committed Oct 20, 2011
1 parent ad3a25f commit a9f94d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/au_sendreceive.py
Expand Up @@ -66,7 +66,7 @@ def __call__( self, samples ):
sample_id += 1

if silent_count < 512:
print "Could not find silence before preamble"
print "Could not find silence before preamble -- too much noise?"
return []

print 'found carrier'
Expand Down
6 changes: 4 additions & 2 deletions response/PS5_eyedgm.py
Expand Up @@ -2,7 +2,7 @@
import au_sendreceive
import numpy
import matplotlib
matplotlib.use('macosx')
#matplotlib.use('macosx')
import matplotlib.pyplot as p
import PS5_tests

Expand Down Expand Up @@ -77,10 +77,12 @@ def plot_eye_diagram(channel,plot_label, samples_per_bit):
# channel2 = PS5_tests.channel(channelid='2')
auchan = au_sendreceive.channel()

p.ion()

# plot the eye diagram for the three virtual channels
# plot_eye_diagram(channel0,'0',samples_per_bit=50)
# plot_eye_diagram(channel1,'1',samples_per_bit=50)
# plot_eye_diagram(channel2,'2',samples_per_bit=50)
plot_eye_diagram(auchan,'audio',samples_per_bit=4)
plot_eye_diagram(auchan,'audio',samples_per_bit=50)

p.show()

0 comments on commit a9f94d1

Please sign in to comment.