Module GPIBWrap :: Class HP_3582A
[hide private]
[frames] | no frames]

Class HP_3582A

source code

object --+    
         |    
  GPIBInst --+
             |
            HP_3582A

HP 3582A Spectrum Analyzer Object.

Instance Methods [hide private]
 
__init__(self, a, g)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
check_open(self)
Check the device is open.
source code
 
set_input_mode(self, c)
Set which channels to use.
source code
 
coupling(self, c, m)
Set the coupling mode for channel c to mode m.
source code
 
set_sensitivity(self, c, v)
Set the sensitivity of channel c to v volts rms.
source code
 
set_sensitivity_db(self, c, v)
Set the sensitivity of channel c to v volts rms in dB wrt 1V.
source code
 
set_frequency(self, m, span, freq)
Set the frequency axis of the spectrum.
source code
 
display(self, c, ym)
Select which channel(s) to display (c) and the Y scaling mode (ym).
source code
 
set_amp_ref_level_db(self, r)
Set the display full scale point to be r dB below input full scale.
source code
 
get_amp_ref_level_db(self)
Get the display full scale point in dB.
source code
 
window(self, w)
Set the window function to w.
source code
 
start_measurement(self, a, c, m)
Start a measurement.
source code
 
read_annotation(self)
Read the display annotation.
source code
 
parse_channel_annotation(self, ann, c)
Return the annotation for channel c.
source code
 
parse_average_annotation(self, ann)
Return information on averaging from annotation ann.
source code
 
parse_bandwidth_annotation(self, ann)
Return bandwidth information from annotation ann.
source code
 
get_spectrum(self)
Read a spectrum.
source code

Inherited from GPIBInst: reset_bus, set_display_status, set_dump_gpib, set_obj, set_print_error, set_print_gpib

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, a, g)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

check_open(self)

source code 

Check the device is open. Return True if it is.

set_input_mode(self, c)

source code 

Set which channels to use. c may be: 'a', 'cha', 'b', 'chb', 'ch1', 'ch2', 'both', 'chboth'

coupling(self, c, m)

source code 

Set the coupling mode for channel c to mode m. c may be: 'a', 'cha', 'b', 'chb', 'ch1', 'ch2', 'both', 'chboth' m may be: 'ac':1, 'dc'

set_sensitivity(self, c, v)

source code 

Set the sensitivity of channel c to v volts rms. c may be: 'a', 'cha', 'b', 'chb', 'ch1', 'ch2', 'both', 'chboth' v is a voltage in the range 0.0 (30mV lowest range) to 30.0.

set_sensitivity_db(self, c, v)

source code 

Set the sensitivity of channel c to v volts rms in dB wrt 1V. c may be: 'a', 'cha', 'b', 'chb', 'ch1', 'ch2', 'both', 'chboth' v is dBV in the range -50.0 to 30.0.

set_frequency(self, m, span, freq)

source code 

Set the frequency axis of the spectrum. The use of span and freq depends on mode m. 'full': 0->25kHz [span] and [freq] ignored. 'zero_start: 0->[span], [freq] ignored. 'set_start': [freq]->[freq]+[span] 'set_center: [freq]-[span]/2 -> [freq]+[span]/2

display(self, c, ym)

source code 

Select which channel(s) to display (c) and the Y scaling mode (ym). c may be: 'a', 'cha', 'b', 'chb', 'ch1', 'ch2', 'both', 'chboth' ym may be: 'linear', '10dB', '2dB' (per division).

set_amp_ref_level_db(self, r)

source code 

Set the display full scale point to be r dB below input full scale. r will be forced to be a multiple of 10dB.

window(self, w)

source code 

Set the window function to w. w may be: 'flattop', 'hanning', 'uniform'.

start_measurement(self, a, c, m)

source code 

Start a measurement. The averaging mode is a: 'off', 'rms'. The number of spectra to average is c. This will be made a power of 2 internally. The maximum time to wait for completion is m seconds (rounded up to a multiple of 5). N.B. Call this BEFORE get_spectrum().

parse_channel_annotation(self, ann, c)

source code 

Return the annotation for channel c. ann is the result of read_annotation(). c may be: 'a', 'cha', 'b', 'chb', 'ch1', 'ch2'

get_spectrum(self)

source code 

Read a spectrum. This returns a tuple: (frq,cha,chb,samps,aok,bok). frq is a NumPy array of frequencies. cha is a NumPy array of channel A amplitudes at the frq frequencies. chb is a NumPy array of channel B amplitudes at the frq frequencies. samps in the number of values in the arrays. aok is True if channel A was measured. bok is True if channel B was measured.