HP3562A/enum_types.py

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

mercurial