comparison rs_fsp7_example.py @ 25:438a5f1ddcd7

Fix example usage of scpi decoder.
author Daniel O'Connor <darius@dons.net.au>
date Thu, 25 Aug 2011 16:46:34 +0930
parents 9bb8a9f3df6b
children 91b476ebc0f2
comparison
equal deleted inserted replaced
24:6fe43d62c73b 25:438a5f1ddcd7
77 77
78 # Grab trace data 78 # Grab trace data
79 r.write("TRAC1? TRACE1") 79 r.write("TRAC1? TRACE1")
80 data = r.read(10) 80 data = r.read(10)
81 #print "Data - " + dat 81 #print "Data - " + dat
82 #ary = ascdecode(data) 82 #ary = scpi.ascdecode(data)
83 ary = bindecode(data) 83 ary = scpi.bindecode(data)
84 84
85 # Plot data 85 # Plot data
86 pylab.plot(ary) 86 pylab.plot(ary)
87 pylab.show() 87 pylab.show()
88 88