comparison rs_fsp7_noisetest.py @ 50:d143ef509fb7

- Print configuration details before starting - Display units
author Daniel O'Connor <doconnor@gsoft.com.au>
date Thu, 31 Jan 2013 13:00:11 +1030
parents 22187590594b
children 03b06d71f0fd
comparison
equal deleted inserted replaced
49:22187590594b 50:d143ef509fb7
160 # Setup parameters 160 # Setup parameters
161 setup(r, freq, options.span, options.sweeps) 161 setup(r, freq, options.span, options.sweeps)
162 162
163 r.write("INIT:CONT OFF") 163 r.write("INIT:CONT OFF")
164 164
165 print "Centre: %.1f Mhz, Span %.1f Mhz, Input %.1f MHz, %d sweeps, ENR %.2f dB" % (freq / 1e6, options.span / 1e6, options.input / 1e6, options.sweeps, enr)
165 while True: 166 while True:
166 off, on, nf = donoisetest(r, enr) 167 off, on, nf = donoisetest(r, enr)
167 print "Off %.3f dB, on %.3f dB, ENR %.2f, NF %.2f" % (off, on, enr, nf) 168 print "Off %.3f dBm/Hz, on %.3f dBm/Hz, NF %.2f dB" % (off, on, nf)
168 print "Press enter to perform a new measurement" 169 print "Press enter to perform a new measurement"
169 sys.stdin.readline() 170 sys.stdin.readline()
170 171