HP3562A/enum_types.py

Sun, 20 Jan 2008 17:09:31 +0100

author
David Douard <david.douard@logilab.fr>
date
Sun, 20 Jan 2008 17:09:31 +0100
changeset 26
e8f3c9276f3f
parent 17
fb8aa055f6e4
permissions
-rw-r--r--

add a 'receiving a plot' led

14
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
17
fb8aa055f6e4 docstrings added
David Douard <david.douard@logilab.fr>
parents: 16
diff changeset
2 """
fb8aa055f6e4 docstrings added
David Douard <david.douard@logilab.fr>
parents: 16
diff changeset
3 Constants used for HP3562A data block interpretation.
fb8aa055f6e4 docstrings added
David Douard <david.douard@logilab.fr>
parents: 16
diff changeset
4 """
14
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
5
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
6 EDSP = {0: "No data",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
7 1: "Frequency response",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
8 2: "Power spectrum 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
9 3: "Power spectrum 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
10 4: "Coherence",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
11 5: "Cross spectrum",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
12 6: "Input time 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
13 7: "Input time 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
14 8: "Input linear spectrum 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
15 9: "Input linear spectrum 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
16 10: "Impulse response",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
17 11: "Cross correlation",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
18 12: "Auto correlation 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
19 13: "Auto correlation 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
20 14: "Histogram 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
21 15: "Histogram 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
22 16: "Cumulative density function 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
23 17: "Cumulative density function 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
24 18: "Probability density function 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
25 19: "Probability density function 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
26 20: "Average linear spectrum 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
27 21: "Average linear spectrum 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
28 22: "Average time record 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
29 23: "Average time record 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
30 24: "Synthesis pole-zeros",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
31 25: "Synthesis pole-residue",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
32 26: "Synthesis polynomial",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
33 27: "Synthesis constant",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
34 28: "Windowed time record 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
35 29: "Windowed time record 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
36 30: "Windowed linear spectrum 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
37 31: "Windowed linear spectrum 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
38 32: "Filtered time record 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
39 33: "Filtered time record 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
40 34: "Filtered linear spectrum 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
41 35: "Filtered linear spectrum 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
42 36: "Time capture buffer",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
43 37: "Captured linear spectrum",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
44 38: "Captured time record",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
45 39: "Throughput time record 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
46 40: "Throughput time record 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
47 41: "Curve fit",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
48 42: "Weighted function",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
49 43: "Not used",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
50 44: "Orbits",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
51 45: "Demodulation polar",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
52 46: "Preview demod record 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
53 47: "Preview demod record 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
54 48: "Preview demod linear spectrum 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
55 49: "Preview demod linear spectrum 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
56 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
57
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
58 ECH = {0: "Channel 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
59 1: "Channel 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
60 2: "Channel 1&2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
61 3: "No channel",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
62 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
63
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
64 EOVR = ECH
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
65
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
66 EDOM = {0: 'Time',
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
67 1: 'Frequency',
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
68 2: 'Voltage (amplitude)',
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
69 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
70
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
71 EVLT = {0: "Peak",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
72 1: "RMS",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
73 2: "Volt (indicates peak only)",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
74 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
75
16
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
76 EAMP = {0: u"Volts",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
77 1: u"Volts²",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
78 2: u"PSD (V²/Hz)",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
79 3: u"ESD (V²s/Hz)",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
80 4: u"PSD¹² (V/Hz¹²)",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
81 5: u"No unit",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
82 6: u"Unit volts",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
83 7: u"Unit volts²",
14
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
84 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
85
16
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
86 EXAXIS= {0: u"No units",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
87 1: u"Hertz",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
88 2: u"RPM",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
89 3: u"Orders",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
90 4: u"Seconds",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
91 5: u"Revs",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
92 6: u"Degrees",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
93 7: u"dB",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
94 8: u"dBV",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
95 9: u"Volts",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
96 10: u"V\u221AHz",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
97 11: u"Hz/s",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
98 12: u"V/EU",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
99 13: u"Vrms",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
100 14: u"V²/Hz",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
101 15: u"%",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
102 16: u"Points",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
103 17: u"Records",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
104 18: u"Ohms",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
105 19: u"Hertz/octave",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
106 20: u"Pulse/Rev",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
107 21: u"Decades",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
108 22: u"Minutes",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
109 23: u"V²s/Hz",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
110 24: u"Octave",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
111 25: u"Seconds/Decade",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
112 26: u"Seconds/Octave",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
113 27: u"Hz/Point",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
114 28: u"Points/Sweep",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
115 29: u"Points/Decade",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
116 30: u"Points/Octave",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
117 31: u"V/Vrms",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
118 32: u"V²",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
119 33: u"EU referenced to chan 1",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
120 34: u"EU referenced to chan 2",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
121 35: u"EU value",
14
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
122 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
123
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
124 EMEAS = {0: "Linear resolution",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
125 1: "Log resolution",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
126 2: "Swept sine",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
127 3: "Time capture",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
128 4: "Linear resolution throughput",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
129 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
130
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
131 EDEMOD = {45: "AM",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
132 46: "FM",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
133 47: "PM",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
134 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
135
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
136 EAVG = {0: "No data",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
137 1: "Not averaged",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
138 2: "Averaged",}
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
139
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
140 EWIN = {0: "N/A",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
141 1: "Hann",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
142 2: "Flat top",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
143 3: "Uniforme",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
144 4: "Exponential",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
145 5: "Force",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
146 6: "Force chan 1/expon chan 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
147 7: "Expon chan 1/force chan 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
148 8: "User",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
149 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
150
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
151 EMTYP = {0: "Frequency responce",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
152 1: "Cross correlation",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
153 2: "Power spectrum",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
154 3: "Auto correlation",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
155 4: "Histogram",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
156 5: "No measurement",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
157 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
158
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
159 EWINTYP = { 11: "Hanning",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
160 12: "Flat top",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
161 13: "Uniform",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
162 14: "User window",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
163 15: "Force/Exponential",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
164 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
165
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
166 EFEXPW = { 0: "Force",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
167 1: "Exponential",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
168 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
169
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
170 EAVGTYP = { 6: "Stable",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
171 7: "Exponential",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
172 8: "Peak",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
173 9: "Continuous peak",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
174 10: "Averaging off",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
175 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
176
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
177 ETRGTYP = { 18: "Free run",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
178 19: "Channel 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
179 20: "Channel 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
180 21: "External",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
181 22: "Source trigger",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
182 23: "HP-IB trigger",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
183 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
184
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
185 ETRGSLP = { 16: "Positive",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
186 17: "Negative",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
187 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
188
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
189 EPRVTYP = { 0: "Manual preview",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
190 1: "Timed preview",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
191 2: "Preview off",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
192 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
193
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
194 ESMPTYP = { 24: "Internal sample",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
195 25: "External sample",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
196 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
197
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
198 ERNGUNT = EXAXIS
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
199
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
200 ERNGTYP = { 26: "Auto range on",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
201 27: "Auto range off",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
202 28: "Auto range set",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
203 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
204
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
205 EINCPL = { 29: "AC",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
206 30: "DC",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
207 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
208
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
209 ESRCTYP = { 31: "Source off",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
210 32: "Random noise",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
211 33: "Burst random",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
212 34: "Periodic chirp",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
213 35: "Burst chirp",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
214 36: "Swept sine",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
215 37: "Fixed sine",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
216 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
217
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
218 ESWPDIR = { 41: "Up",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
219 42: "Sweep hold",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
220 43: "Manual sweep",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
221 44: "Down",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
222 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
223
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
224 ESWPMOD = { 39: "Linear sweep",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
225 40: "Log sweep",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
226 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
227
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
228 EEXTSMPFREQUNT = EXAXIS
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
229
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
230 EBNDUNT = EXAXIS
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
231
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
232 ESWPRATEUNT = EXAXIS
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
233
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
234 EAUGAINREFCH = { 0: "Channel 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
235 1: "Channel 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
236 2: "Not used",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
237 3: "No channel",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
238 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
239 EDEMODCH = { 0: "Channel 1",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
240 1: "Channel 2",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
241 2: "Both channels",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
242 3: "No channel",
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
243 }
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
244
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
245 ESRCLVLUNT = EXAXIS
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
246
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
247 ESRCDCOFFST = EXAXIS
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
248
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
249 ETRGLVLUNT = EXAXIS
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
250
07e2cbf140df several improvements; add an internal state reader
David Douard <david.douard@logilab.fr>
parents:
diff changeset
251 ECPTLGHUNT = EXAXIS
16
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
252
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
253 EYCOORD = { 1: "Real",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
254 2: "Imaginary",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
255 3: "Linear magnitude",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
256 4: "Log magnitude",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
257 5: "dB",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
258 6: "Nyquist",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
259 7: "Not used",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
260 8: "Phase",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
261 9: "Nichols",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
262 10: "dBm",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
263 }
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
264
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
265 EDISPSMP = { 0: "Not sampled", # #displayed elements = total elements
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
266 1: "Half sampled", # #displayed elements = total elements/2
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
267 2: "Sampled", # #displayed elements < total elements
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
268 }
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
269 ESCAL = { 0: "X and Y auto scale",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
270 1: "X fixed, Y auto scale",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
271 2: "X auto scale, Y fixed",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
272 3: "X and Y fixed",
de9122b5680a Several improvements (code refactoring) + add stuff to decode binary coordinate data block ("DCBN" command)
David Douard <david.douard@logilab.fr>
parents: 14
diff changeset
273 }

mercurial