Last change
on this file since 17501 was 14254, checked in by neise, 12 years ago |
evolving
|
-
Property svn:executable
set to
*
|
File size:
733 bytes
|
Line | |
---|
1 | #!/usr/bin/python -tti
|
---|
2 | from factdimserver import *
|
---|
3 | import numpy as np
|
---|
4 | import sys
|
---|
5 |
|
---|
6 | cali = feedback.calibration()
|
---|
7 | avg = np.array(cali[0:320])
|
---|
8 | rms = np.array(cali[416:416+320])
|
---|
9 | r = np.array(cali[2*416:2*416+320])
|
---|
10 |
|
---|
11 | bias = bias_control
|
---|
12 |
|
---|
13 | I = np.array(bias.current()[0:320], dtype=float)
|
---|
14 | II = I/4096. * 5000
|
---|
15 | V = np.array(bias.voltage()[0:320])
|
---|
16 | if len(sys.argv) > 1:
|
---|
17 | i = int(sys.argv[1])
|
---|
18 | else: i=0
|
---|
19 | print 'I:', I[i], 'dac\t', II[i], 'uA'
|
---|
20 | print 'V:', V[i]
|
---|
21 | print ''
|
---|
22 | print 'GUI offset:', V[i]/r[i]*1e6
|
---|
23 | print 'GUI feedback:', II[0] - V[0]/r[0]*1e6
|
---|
24 |
|
---|
25 | GUII = II-V/r*1e6
|
---|
26 |
|
---|
27 | print 'median', np.median(GUII)
|
---|
28 | print 'mean', GUII.mean()
|
---|
29 | print 'rms', ((GUII- GUII.mean())**2).sum()
|
---|
30 | print 'std', GUII.std()
|
---|
31 | print 'max', GUII.max()
|
---|
32 | print 'min', GUII.min()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.