lightlab.equipment.lab_instruments.Apex_AP2440A_OSA module¶
Summary¶
Classes:
Apex_AP2440A_OSA |
Class for the OSA |
Functions:
check_socket |
Data:
WIDEST_WLRANGE |
list() -> new empty list list(iterable) -> new list initialized from iterable’s items |
Reference¶
-
class
Apex_AP2440A_OSA(name='The OSA', address=None, **kwargs)[source]¶ Bases:
lightlab.equipment.visa_bases.visa_driver.VISAInstrumentDriverClass for the OSA
Basic functionality includes setting/getting wavelength range and sweeping Other functionality is for controlling TLS: on/off, wavelength (not implemented)
The primary function is spectrum, which returns a Spectrum object
Usage: Instrument: OpticalSpectrumAnalyzer
Initializes a fake VISA connection to the OSA.
-
instrument_category¶ alias of
lightlab.laboratory.instruments.interfaces.OpticalSpectrumAnalyzer
-
MAGIC_TIMEOUT= 30¶
-
write(writeStr, expected_talker=None)[source]¶ The APEX does not deal with write; you have to query to clear the buffer
-
instrID()[source]¶ Overloads the super function because the OSA does not respond to *IDN? Instead sends a simple command and waits for a confirmed return
-
wlRange¶
-
triggerAcquire()[source]¶ Performs a sweep and reads the data Returns an array of dBm values as doubles :rtype: array
-
transferData()[source]¶ Performs a sweep and reads the data
Gets the data of the sweep from the spectrum analyzer
Returns: wavelength in nm, power in dBm Return type: (ndarray, ndarray)
-
spectrum(average_count=1)[source]¶ Take a new sweep and return the new data. This is the primary user function of this class
-
tlsEnable¶
-
tlsWl¶
-