LaserAgilent8164B¶
-
class
LaserAgilent8164B
(gpib_num=None, gpib_dev_num=None, power_unit='W', output_mode='high')[source]¶ Bases:
agilentlightwave._agilent_lightwave_connection.AgilentLightwaveConnection
,agilentlightwave._laser.LaserTunable
Controls the laser module in the Agilent 8164B.
Parameters: - gpib_num (int) – The GPIB bus number the laser is on.
- gpib_dev_num (int) – The device number the laser in on the bus.
- power_unit (str) – Either ‘W’ or ‘dBm’ depending on what units the Agilent 8164B should use for the laser power.
- output_mode (str) – ‘HIGH’ -> The High Power output is regulated. ‘LOWS’ -> The Low SSE output is regulated. ‘BHR’ -> Both outputs are active but only the High Power output is Regulated. ‘BLR’ -> Both outputs are active but only the Low SSE output is Regulated.
Methods Summary
dbm_to_watts
(power_dbm)Converts [dBm] to [W]. get_on_or_off
()Checks if the laser is on or off. get_power_W
()Gets the power of the laser in [W]. get_power_dbm
()get_power_mW
()get_power_nW
()get_power_pW
()get_power_uW
()get_unit
()Gets the units the laser is operating in. get_velocity_nm_s
()get_wavelength_m
()Gets the wavelength in [m] of the laser. get_wavelength_mm
()get_wavelength_nm
()get_wavelength_power_scan_manual
(…[, …])Performs a wavelength sweep. get_wavelength_um
()last_operation_completed
()set_power_W
(power_W)Sets the power of the laser in [W]. set_power_dbm
(power_dbm)set_power_mW
(power_mW)set_power_uW
(power_uW)set_unit
(unit)Sets the units the laser should operate in. set_velocity_nm_s
(sweep_speed_nm_per_sec)set_wavelength_m
(wavelength_m)Sets the wavelength in [m] of the laser. set_wavelength_nm
(wavelength)set_wavelength_um
(wavelength)turn_off
()Turns the laser off. turn_on
()Turns the laser on. wait_for_last_operation_completed
()watts_to_dbm
(power_W)Converts [W] to [dBm]. wavelength_sweep
(start_wavelength_nm, …[, …])wavelength_sweep_interp
(start_wavelength_nm, …)wavelength_sweep_manual_interp
(…[, …])Methods Documentation
-
static
dbm_to_watts
(power_dbm)¶ Converts [dBm] to [W].
Parameters: power_dbm (int, float) – Power in [dBm]. Returns: Power in [W]. Return type: float
-
get_on_or_off
()[source]¶ Checks if the laser is on or off.
Returns: True if the laser is off, False if the laser is on. Return type: bool
-
get_power_W
()[source]¶ Gets the power of the laser in [W].
Returns: The power of the laser in [W]. Return type: float
-
get_power_dbm
()¶
-
get_power_mW
()¶
-
get_power_nW
()¶
-
get_power_pW
()¶
-
get_power_uW
()¶
-
get_unit
()[source]¶ Gets the units the laser is operating in.
The units affect in what units the laser power is displayed on the screen.
Returns: The units the laser is oeprating in. Return type: str
-
get_wavelength_m
()[source]¶ Gets the wavelength in [m] of the laser.
Returns: The wavelength in metres the laser is set to. Return type: float
-
get_wavelength_mm
()¶
-
get_wavelength_nm
()¶
-
get_wavelength_power_scan_manual
(start_wavelength_nm, stop_wavelength_nm, step_wavelength_nm, power_meters=None, delay_wavelength_changes_s=1.0, filename=None)¶ Performs a wavelength sweep.
Manually changes the laser power and the measures. Does not use the in-built sweep function like Thach’s sweep does.
Parameters: - start_wavelength_nm (int, float) – The minimum wavelength value to start the sweep.
- stop_wavelength_nm (int, float) – The maximum wavelength value to stop the sweep.
- step_wavelength_nm (int, float) – The wavelength stepsize.
- power_meters (PowerMeter,list,None) – The constructed power meter object that should be read as the wavelength is swept. If a list of PowerMeter is given, all power meters in the list will be read. None if no power meter should be read.
- power_meter_units (str) – ‘W’ if the power should be read and returned in Watts, or ‘dBm’ if the power should be read and returned in ‘dBm’.
- delay_wavelength_changes_s (int, float) – The delay in seconds between laser wavelength changes.
- filename (None,str) – The name of the file to save the wavelength and power data to. The data is not saved to a file if None.
Returns: - The first item is a float list of the wavelengths swept. Subsequent
items in the list are power meter readings given in the same order as in power_meters.
Return type: list
-
get_wavelength_um
()¶
-
set_power_W
(power_W)[source]¶ Sets the power of the laser in [W].
Parameters: power_W (int, float) – power in [W] to set the laser to. Returns: The power of the laser. Return type: float
-
set_power_dbm
(power_dbm)¶
-
set_power_mW
(power_mW)¶
-
set_power_uW
(power_uW)¶
-
set_unit
(unit)[source]¶ Sets the units the laser should operate in.
This will affect in what units the laser power is displayed on the screen.
Parameters: unit (str) – Either ‘dBm’ or ‘W’. Returns: The units the laser is oeprating in. Return type: str
-
set_wavelength_m
(wavelength_m)[source]¶ Sets the wavelength in [m] of the laser.
Parameters: wavelength_m (int, float) – The wavelength in metres to set the laser to. Returns: The wavelength in metres the laser was set to. Return type: float
-
set_wavelength_nm
(wavelength)¶
-
set_wavelength_um
(wavelength)¶
-
turn_off
()[source]¶ Turns the laser off.
Returns: - True if the laser is off, False if the laser is on.
- (Should be False.)
Return type: bool
-
turn_on
()[source]¶ Turns the laser on.
Returns: - True if the laser is on, False if the laser is off.
- (Should be True.)
Return type: bool
-
static
watts_to_dbm
(power_W)¶ Converts [W] to [dBm].
Parameters: power_W (int, float) – Power in [W]. Returns: Power in [dBm]. Return type: float
-
wavelength_sweep
(start_wavelength_nm, stop_wavelength_nm, step_wavelength_nm, max_power_mW, sweep_speed_nm_per_sec=5.0, power_metre_slot=1, int_time_ms=20.0, filename=None, preserve_settings=True)[source]¶
-
wavelength_sweep_interp
(start_wavelength_nm, stop_wavelength_nm, step_wavelength_nm, max_power_W, sweep_speed_nm_per_sec=5.0, filename=None)[source]¶
-
wavelength_sweep_manual_interp
(start_wavelength_nm, stop_wavelength_nm, step_wavelength_nm, power_meters, delay_wavelength_changes_s=1.0, filename=None)¶