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)

# -*- coding: utf-8 -*-

EDSP = {0: "No data",
        1: "Frequency response",
        2: "Power spectrum 1",
        3: "Power spectrum 2",
        4: "Coherence",
        5: "Cross spectrum",
        6: "Input time 1",
        7: "Input time 2",
        8: "Input linear spectrum 1",
        9: "Input linear spectrum 2",
        10: "Impulse response",
        11: "Cross correlation",
        12: "Auto correlation 1",
        13: "Auto correlation 2",
        14: "Histogram 1",
        15: "Histogram 2",
        16: "Cumulative density function 1",
        17: "Cumulative density function 2",
        18: "Probability density function 1",
        19: "Probability density function 2",
        20: "Average linear spectrum 1",
        21: "Average linear spectrum 2",
        22: "Average time record 1",
        23: "Average time record 2",
        24: "Synthesis pole-zeros",
        25: "Synthesis pole-residue",
        26: "Synthesis polynomial",
        27: "Synthesis constant",
        28: "Windowed time record 1",
        29: "Windowed time record 2",
        30: "Windowed linear spectrum 1",
        31: "Windowed linear spectrum 2",
        32: "Filtered time record 1",
        33: "Filtered time record 2",
        34: "Filtered linear spectrum 1",
        35: "Filtered linear spectrum 2",
        36: "Time capture buffer",
        37: "Captured linear spectrum",
        38: "Captured time record",
        39: "Throughput time record 1",
        40: "Throughput time record 2",
        41: "Curve fit",
        42: "Weighted function",
        43: "Not used",
        44: "Orbits",
        45: "Demodulation polar",
        46: "Preview demod record 1",
        47: "Preview demod record 2",
        48: "Preview demod linear spectrum 1",
        49: "Preview demod linear spectrum 2",
        }

ECH = {0: "Channel 1",
       1: "Channel 2",
       2: "Channel 1&2",
       3: "No channel",
       }

EOVR = ECH

EDOM = {0: 'Time',
        1: 'Frequency',
        2: 'Voltage (amplitude)',
        }

EVLT = {0: "Peak",
        1: "RMS",
        2: "Volt (indicates peak only)",
        }

EAMP = {0: "Volts",
        1: "Volts squared",
        2: "PSD (V²/Hz)",
        3: "ESD (V²s/Hz)",
        4: "PSD¹² (V/Hz¹²)",
        5: "No unit",
        6: "Unit volts",
        7: "Unit volts²",
        }
        
EXAXIS= {0: "No units",
         1: "Hertz",
         2: "RPM",
         3: "Orders",
         4: "Seconds",
         5: "Revs",
         6: "Degrees",
         7: "dB",
         8: "dBV",
         9: "Volts",
         10: "V Hz¹²",
         11: "Hz/s",
         12: "V/EU",
         13: "Vrms",
         14: "V²/Hz",
         15: "%",
         16: "Points",
         17: "Records",
         18: "Ohms",
         19: "Hertz/octave",
         20: "Pulse/Rev",
         21: "Decades",
         22: "Minutes",
         23: "V²s/Hz",
         24: "Octave",
         25: "Seconds/Decade",
         26: "Seconds/Octave",
         27: "Hz/Point",
         28: "Points/Sweep",
         29: "Points/Decade",
         30: "Points/Octave",
         31: "V/Vrms",
         32: "V²",
         33: "EU referenced to chan 1",
         34: "EU referenced to chan 2",
         35: "EU value",
         }

EMEAS = {0: "Linear resolution",
         1: "Log resolution",
         2: "Swept sine",
         3: "Time capture",
         4: "Linear resolution throughput",
         }

EDEMOD = {45: "AM",
          46: "FM",
          47: "PM",
          }

EAVG = {0: "No data",
        1: "Not averaged",
        2: "Averaged",}

EWIN = {0: "N/A",
        1: "Hann",
        2: "Flat top",
        3: "Uniforme",
        4: "Exponential",
        5: "Force",
        6: "Force chan 1/expon chan 2",
        7: "Expon chan 1/force chan 2",
        8: "User",
        }

EMTYP = {0: "Frequency responce",
         1: "Cross correlation",
         2: "Power spectrum",
         3: "Auto correlation",
         4: "Histogram",
         5: "No measurement",
         }

EWINTYP = { 11: "Hanning",
            12: "Flat top",
            13: "Uniform",
            14: "User window",
            15: "Force/Exponential",
            }

EFEXPW = { 0: "Force",
           1: "Exponential",
           }

EAVGTYP = { 6: "Stable",
            7: "Exponential",
            8: "Peak",
            9: "Continuous peak",
            10: "Averaging off",
            }

ETRGTYP = { 18: "Free run",
            19: "Channel 1",
            20: "Channel 2",
            21: "External",
            22: "Source trigger",
            23: "HP-IB trigger",
            }

ETRGSLP = { 16: "Positive",
            17: "Negative",
            }

EPRVTYP = { 0: "Manual preview",
            1: "Timed preview",
            2: "Preview off",
            }

ESMPTYP = { 24: "Internal sample",
            25: "External sample",
            }

ERNGUNT = EXAXIS

ERNGTYP = { 26: "Auto range on",
            27: "Auto range off",
            28: "Auto range set",
            }

EINCPL = { 29: "AC",
           30: "DC",
           }

ESRCTYP = { 31: "Source off",
            32: "Random noise",
            33: "Burst random",
            34: "Periodic chirp",
            35: "Burst chirp",
            36: "Swept sine",
            37: "Fixed sine",
            }

ESWPDIR = { 41: "Up",
            42: "Sweep hold",
            43: "Manual sweep",
            44: "Down",
            }

ESWPMOD = { 39: "Linear sweep",
            40: "Log sweep",
            }

EEXTSMPFREQUNT = EXAXIS

EBNDUNT = EXAXIS

ESWPRATEUNT = EXAXIS

EAUGAINREFCH = { 0: "Channel 1",
                 1: "Channel 2",
                 2: "Not used",
                 3: "No channel",
                 }
EDEMODCH = {  0: "Channel 1",
              1: "Channel 2",
              2: "Both channels",
              3: "No channel",
              }

ESRCLVLUNT = EXAXIS

ESRCDCOFFST = EXAXIS

ETRGLVLUNT = EXAXIS

ECPTLGHUNT = EXAXIS

mercurial