lightlab.equipment.lab_instruments.Tektronix_RSA6120B_RFSA module

Summary

Classes:

Tektronix_RSA6120B_RFSA TEKTRONIX RSA6120B, RF spectrum analyzer

Reference

class Tektronix_RSA6120B_RFSA(name='The RF spectrum analyzer', address=None, **kwargs)[source]

Bases: lightlab.equipment.visa_bases.visa_driver.VISAInstrumentDriver, lightlab.equipment.abstract_drivers.configurable.Configurable

TEKTRONIX RSA6120B, RF spectrum analyzer

Manual

Usage: TODO

Fairly simple class for getting RF spectra. The RSA6120 has a lot of advanced functionality, like spectrograms, which could be implemented later.

instrument_category

alias of lightlab.laboratory.instruments.interfaces.RFSpectrumAnalyzer

startup()[source]
getMeasurements()[source]
Returns:tokens of currently active measurements
Return type:(list[str])
setMeasurement(measType='SPEC', append=False)[source]

Turns on a measurement type

If append is False, turns off all measurements except for the one specified

See manual for other measurement types.

run(doRun=True)[source]

Continuous run

After transferring spectra remotely, the acquisition stops going continuously. Call this when you want to run the display live. Useful for debugging when you are in lab.

sgramInit(freqReso=None, freqRange=None)[source]
sgramTransfer(duration=1.0, nLines=100)[source]

Transfers data that has already been taken. Typical usage:

self.sgramInit()
... << some activity >>
self.run(False)
self.spectrogram()

Currently only supports free running mode, so time is approximate. The accuracy of timing and consistency of timing between lines is not guaranteed.

spectrum(freqReso=None, freqRange=None, typAvg='none', nAvg=None)[source]

Acquires and transfers a spectrum.

Unspecified or None parameters will take on values used in previous calls, with the exception of typAvg – you must explicitly ask to average each time.

Parameters:
  • freqReso (float, None) – frequency resolution (typical = 1e3 to 10e6)
  • freqRange (array-like[float], None) – 2-element frequency range
  • typAvg (str) – type of averaging (of [‘none’, ‘average’, ‘maxhold’, ‘minhold’, ‘avglog’])
  • nAvg (int, None) – number of averages, if averaging
Returns:

power spectrum in dBm vs. Hz

Return type:

(lightlab.util.data.Spectrum)