Power Detector
- class tlkcore.tmydev.DevPD.PD(*parent)
- getVoltageValue(freq)
Get measured voltage (mV) from the power detector
- getPowerValue(freq)
Get measured power(dBm) from the power detector
- Parameters:
freq (float) – frequency with unit: GHz
- Returns:
RetDatafloat: Power value with unit: dBm
- Return type:
Examples
>>> sn = "PD-24070101" >>> value = service.getPowerValue(sn, 28).RetData >>> print(value) -17.4
- setCaliConfig(config: dict)
Set PD calibration config for specific frequency config with dict format
- Parameters:
config (dict[str, dict[str, float]]) –
- str (key named “xxGHz”), and value still
- dict:
lowPower (str): Minimum power value with unit: dBm
lowVolt (str): Minimum voltage value with unit: mV
highPower (str): MAX power value with unit: dBm
highVolt (str): MAX voltage value with unit: mV
- Return type:
Examples
sn = "PD-24070101" cal_config = { "20GHz": { "lowPower": -36, "lowVolt": 40.46, "highPower": -5, "highVolt": 936.36 }, "30GHz": { "lowPower": -36, "lowVolt": 83.81, "highPower": -5, "highVolt": 979.71 } } service.setCaliConfig(sn, cal_config)
- getDFUSupport()
Check if the device supports Device Firmware Upgrade (DFU).
- getDevTypeName()
Retrieve current name of device
- Returns:
Name of device
Examples
>>> service.getDevTypeName(sn) 'RIS'
- queryFWVer()
Query FW version of the device.
Examples
>>> fw_version = service.queryFWVer(sn).RetData >>> print(f"FW Version: {fw_version}") v1.0.0
- queryHWVer()
Query the hardware version of the device.
Examples
- Query the hardware version of the device
>>> hw_version = service.queryHWVer(sn).RetData >>> print(f"Hardware Version: {hw_version}")
- querySN()
Query the serial number of the device.