Skip to content

KeysightN774C#

Controls a Keysight N774-C optical power meter (N7742C, N7743C, N7744C or N7745C) from Python. This class inherits from MeasmaticDevice.


property device_model#

The model of the connected optical power meter.

Returns#

Type Description
Any The model as Atv.Framework.Devices.Optical.PhotoDetectors.KeysightN774C.Model (N7742C, N7743C, N7744C or N7745C).

Example#

pm = measmatic.get_device('device-n774c')
print(pm.device_model)

method read_power(channel: int)#

Measures the optical power on the given channel.

Parameters#

Name Description
channel The channel number (1..8).

Returns#

Type Description
float The measured optical power in the unit set with set_unit (dBm or W).

Example#

pm = measmatic.get_device('device-n774c')
power = pm.read_power(1)

method set_output(channel: int, outputMode: Any)#

Sets the mode of the analog output at the front BNC port. Not supported on the N7744C and N7745C.

Parameters#

Name Description
channel The channel number.
outputMode The output mode, of type Atv.Framework.Devices.Optical.PhotoDetectors.KeysightN774C.OutputMode (Off, Linear or Logarithmic).

Example#

pm = measmatic.get_device('device-n774c')
from Atv.Framework.Devices.Optical.PhotoDetectors.KeysightN774C import OutputMode
pm.set_output(1, OutputMode.Logarithmic)

method set_output(channel: int, outputModeString: str)#

Sets the mode of the analog output at the front BNC port by name. Not supported on the N7744C and N7745C.

Parameters#

Name Description
channel The channel number.
outputModeString The output mode name: 'Off', 'Linear' or 'Logarithmic' (case-insensitive).

Example#

pm = measmatic.get_device('device-n774c')
pm.set_output(1, 'Logarithmic')

method set_unit(channel: int, unit: Any)#

Sets the unit in which power values of the given channel are returned (dBm or W).

Parameters#

Name Description
channel The channel number (1..8).
unit The power unit, of type Atv.Framework.Devices.Optical.PhotoDetectors.KeysightN774C.Unit (Dbm or Watt).

Example#

pm = measmatic.get_device('device-n774c')
from Atv.Framework.Devices.Optical.PhotoDetectors.KeysightN774C import Unit
pm.set_unit(1, Unit.Dbm)

method set_unit(channel: int, unitString: str)#

Sets the unit in which power values of the given channel are returned (dBm or W), by name.

Parameters#

Name Description
channel The channel number (1..8).
unitString The unit name: 'Dbm' or 'Watt' (case-insensitive), or 'W' for Watt.

Example#

pm = measmatic.get_device('device-n774c')
pm.set_unit(1, 'Dbm')
pm.set_unit(1, 'W')

method set_wavelength(channel: int, wavelengthInMeter: float)#

Sets the sensor wavelength of the given channel.

Parameters#

Name Description
channel The channel number (1..8).
wavelengthInMeter The wavelength in meters.

Example#

pm = measmatic.get_device('device-n774c')
pm.set_wavelength(1, 1550e-9)