diff rsib.py @ 21:6e7619f2dffd

Remove the test now it's in a separate file.
author Daniel O'Connor <darius@dons.net.au>
date Thu, 11 Aug 2011 21:17:42 +0930
parents 55c8dae6d1db
children 226ea06bc050
line wrap: on
line diff
--- a/rsib.py	Thu Aug 11 17:13:55 2011 +0930
+++ b/rsib.py	Thu Aug 11 21:17:42 2011 +0930
@@ -187,36 +187,3 @@
             return True
         else:
             raise "Unknown SRQ byte sequence - " + str(map(ord, rx))
-        
-def test(r):
-    import numpy
-    from matplotlib import pylab
-    
-    r.write('*IDN?')
-    print "ID is " + r.read(5)
-    r.write("*RST")
-    r.write("INIT:CONT OFF")
-    r.write("SYST:DISP:UPD ON")
-    r.write("FREQ:STAR 85MHz;STOP 125MHz")
-    r.write("DISP:WIND:TRAC:T:RLEV -20dBm")
-    r.write("INIT;*WAI")
-    r.write("*OPC?")
-    print "OPC - " + r.read(10)
-    r.write("CALC:MARK:PEXC 6DB")
-    r.write("CALC:MARK:FUNC:TOI ON")
-    r.write("CALC:MARK:FUNC:TOI:RES?")
-    print "Result " + r.read(10)
-
-    r.write("FORM:DAYA ASC")
-    r.write("CALC:LIM5:NAME 'TEST1'")
-    r.write("CALC:LIM5:COMM 'Upper limit line'")
-    r.write("CALC1:LIM5:TRAC 2")
-    r.write("TRAC1? TRACE1")
-    data = r.read(10)
-    #print "Data - " + dat
-    data = map(float, data.split(','))
-    ary = numpy.array(data)
-    pylab.plot(ary)
-    pylab.show()
-    
-