CoBrite module
Created on Mon Feb 14 13:54:49 2022
@author: Martin.Mihaylov
- class Instruments_Libraries.CoBrite.CoBrite(resource_str, visa_library='@py', **kwargs)[source]
Bases:
BaseInstrument- Parameters:
resource_str (str)
visa_library (str)
- get_actual_power(chan)[source]
Queries the current optical output power reading of a tunable laser port. Value format is in dBm.
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!
- Raises:
ValueError – Error message.
- Return type:
float
- get_configuration(chan)[source]
Query current configuration of Laser in location C-S-D in csv format
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!.
- Raises:
ValueError – Error message.
- Return type:
dict[str, float | str]
- get_freq_thz(chan)[source]
Queries the wavelength setting of a tunable laser port. Value format is in THz.
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!
- Raises:
ValueError – Error message.
- Return type:
float
- get_laser_lim(chan)[source]
Query maximum tuning Parameters of Laser in location C-S-D in csv format.
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!
- Raises:
ValueError – Error message.
- Return type:
dict[str, float]
- get_laser_output(chan)[source]
Query if laser is ON or OFF.
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!
- Raises:
ValueError – Error message.
- Return type:
str
- get_offset(chan)[source]
Queries the frequency offset setting of a tunable laser port. Value format is in GHz.
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!
- Raises:
ValueError – Error message.
- Return type:
float
- get_power(chan)[source]
Queries the optical output power target setting of a tunable laser port. Value format is in dBm.
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!
- Raises:
ValueError – Error message.
- Return type:
float
- get_wavelength(chan)[source]
Queries the wavelength setting of a tunable laser port. Value format is in Nanometer.
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!
- Raises:
ValueError – Error message.
- Return type:
float
- set_configuration(chan, freq, power, offset)[source]
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!
freq (float) – Sets frequency in Thz format. For example freq = 192.2345
power (float) – Sets the power to dBm. For example power = 9.8. min Power = 8.8 max Power = 17.8 Check ask_LaserLim() for more info.
offset (float) – Sets offset Freq in range Ghz.
- Raises:
ValueError – Error message.
- Return type:
None
- set_freq_thz(chan, value)[source]
Sets or queries the wavelength setting of a tunable laser port. Value format is in Tera Hertz.
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!.
value (float) – Sets or queries the wavelength setting of a tunable laser port. Value format is in Tera Hertz.
- Raises:
ValueError – Error message.
- Return type:
None
- set_laser_output(chan, state)[source]
Set if laser is ON or OFF.
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!.
state (float/int) – Set if laser is ON or OFF. Can be integer 0 or 1, but can be a str ON and OFF.
- Raises:
ValueError – Error message.
- Return type:
None
- set_offset(chan, value)[source]
Sets the frequency offset setting of a tunable laser port. Value format is in Giga Hertz.
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!.
value (float) – Sets the frequency offset setting of a tunable laser port. Value format is in Giga Hertz.
- Raises:
ValueError – Error message.
- Return type:
None
- set_power(chan, value)[source]
Sets the optical output power target setting of a tunable laser port. Value format is in dBm.
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!.
value (float) – Sets the optical output power target setting of a tunable laser port. Value format is in dBm.
- Raises:
ValueError – Error message.
- Return type:
None
- set_wavelength(chan, value)[source]
Sets the wavelength setting of a tunable laser port. Value format is in Nanometer.
- Parameters:
chan (int) – Channel number. Can be 1 or 2. CoBrite have only 2 channels!.
value (float) – Sets the wavelength setting of a tunable laser port. Value format is in Nanometer.
- Raises:
ValueError – Error message.
- Return type:
None