catalight.equipment.light_sources.nkt_helper_funcs.determine_setpoint

catalight.equipment.light_sources.nkt_helper_funcs.determine_setpoint(calibration, power_requested, center, bandwidth)

Determine the power setpoint (%) needed to reach a certain output power.

Predicts the power output of the NKT over the full range of power setpoints [12% - 100%]. Returns the power setpoint that should produce the power output closest to the user supplied power_requested parameter.

Parameters:
  • calibration (pandas.DataFrame) – Calibration fits for nkt_laser system. Fit parameters for each wavelength. Index is wavelength. Columns are [fit params, relative error, covariance matrix] Each item within the DataFrame is a list itself.

  • power_requested (int or float) – The power setpoint (in mW) the user desires.

  • center (float or int) – The central wavelength of the laser.

  • bandwidth (float or int) – The bandwidth setting for the laser.

Returns:

Closest laser setpoint (%) to achieve the requested power output (mW)/ Automatically rounded to the nearest 0.1%.

Return type:

float