Spectrum Analyzers
This module provides support for controlling spectrum analyzers with Python.
Spectrum analyzers can be imported by
>>> import hardware
>>> lia = hardware.spectrum_analyzers.ANDO_AQ6317B('GPIB0:...')
-
class
hardware.spectrum_analyzers.
ANDO_AQ6317B
(visa_search_term)[source]
Hardware wrapper for ANDO AQ6317B Optical Spectrum Analyzer
Parameters: | visa_search_term (str) – The address that is passed to
visa.ResourceManager().open_resource() |
-
acquire
(channel='B')
Returns the measured spectrum from a single reading of the instrument.
Aliases to acquire
Returns: | tuple of arrays – The first array contains the wavelengths in nanometers.
The second array contains the optical power in dBm. |
-
get_spectrum
(channel='B')[source]
Returns the measured spectrum from a single reading of the instrument.
Aliases to acquire
Returns: | tuple of arrays – The first array contains the wavelengths in nanometers.
The second array contains the optical power in dBm. |
-
identify
()[source]
Returns: | str – The response from an *IDN? GPIB query. |
-
set_timeout
(milliseconds)[source]
Sets the timeout of the instrument in milliseconds.
Parameters: | milliseconds (float) – The timeout in milliseconds |
-
class
hardware.spectrum_analyzers.
Rohde_Schwarz_FSEA_20
(visa_search_term)[source]
Hardware wrapper for Rohde & Schwarz FSEA 20 RF Spectrum Analyzer
Parameters: | visa_search_term (str) – The address that is passed to
visa.ResourceManager().open_resource() |
-
acquire
()[source]
Returns a tuple of the frequencies (Hz) and powers of the trace.
For the resolution bandwidth, use the rbw
property.