HP3562A/enum_types.py

Tue, 18 Dec 2007 00:38:33 +0100

author
David Douard <david.douard@logilab.fr>
date
Tue, 18 Dec 2007 00:38:33 +0100
changeset 15
b930440af354
parent 14
07e2cbf140df
child 16
de9122b5680a
permissions
-rw-r--r--

make header_formatter a little bit smarter (interpret bool values when it can)

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

mercurial