HP8560A
- class tam.HP8560A(gpib_controller, gpib_id)[source]
- property ident
Returns the instrument ID string.
- Raises:
socket.timeout If the instrument is unavailable
- measure_next_pwr()[source]
Measure the power and freq. of the next highest peak.
This assumes that the measure_pwr method has already been called.
>>> sa.vavg = 5 >>> sa.fspan = 0.1 >>> sa.ref_level = 10.0 >>> sa.measure_pwr(250.0) (2.732128, 250.000166) >>> sa.measure_next_pwr() (1.986321, 250.050134)
Note that if the analyzer cannot find another peak the cal to
measure_next_pwr
will return the power and frequency values for the first peak.- Returns:
A tuple of two floats with the power of next highest peak being first and the second being the frequency of the peak.
- measure_pwr(freq)[source]
Measure the power at a specified frequency.
This assumes that the relevant spectrum analyzer configuration has already been set. This would include: ref. level, freq. span, vavg, detector mode. For exaample:
>>> sa.vavg = 5 >>> sa.fspan = 0.1 >>> sa.ref_level = 10.0 >>> sa.measure_pwr(250.0) (2.732128, 250.000166)
- Parameters:
freq (float) – The centre frequency to make the measurement (in MHz).
- Returns:
A tuple of two floats with the measured power being first and the frequency of the marker being the second.