drs4.ctrl.cw module#

drs4.ctrl.cw.off(*, sg_host: str | None = None, sg_port: int | None = None, timeout: float | None = None) None[source]#

Stop outputting the CW signal.

Parameters:
  • sg_host – Host name or IP address of the SG (e.g. Keysight 8257D). If not specified, environment variable DRS4_CW_SG_ADDR will be used.

  • sg_port – Port number of the SG (e.g. Keysight 8257D). If not specified, environment variable DRS4_CW_SG_PORT will be used.

  • timeout – Timeout of the connection process in seconds.

drs4.ctrl.cw.on(*, freq_range: Literal['inner', 'outer'], signal_sb: Literal['USB', 'LSB'], signal_chan: int, lo_freq: float | None = None, lo_mult: int | None = None, sg_ampl: float | None = None, sg_host: str | None = None, sg_port: int | None = None, timeout: float | None = None) None[source]#

Start outputting the CW signal after setting the SG amplitude and frequency.

Parameters:
  • freq_range – Intermediate frequency range (inner|outer).

  • signal_chan – Signal channel number (0-511).

  • signal_sb – Signal sideband (USB|LSB).

  • lo_freq – LO frequency in GHz. If not specified, environment variable DRS4_LO_FREQ will be used.

  • lo_mult – LO multiplication factor. If not specified, environment variable DRS4_LO_MULT will be used.

  • sg_ampl – Amplitude of the CW signal in dBm. If not specified, environment variable DRS4_CW_SG_AMPL will be used.

  • sg_host – Host name or IP address of the SG (e.g. Keysight 8257D). If not specified, environment variable DRS4_CW_SG_ADDR will be used.

  • sg_port – Port number of the SG (e.g. Keysight 8257D). If not specified, environment variable DRS4_CW_SG_PORT will be used.

  • timeout – Timeout of the connection process in seconds.

drs4.ctrl.cw.status(*, sg_host: str | None = None, sg_port: int | None = None, timeout: float | None = None) None[source]#

Show the status of CW signal in the logger.

Parameters:
  • sg_host – Host name or IP address of the SG (e.g. Keysight 8257D). If not specified, environment variable DRS4_CW_SG_ADDR will be used.

  • sg_port – Port number of the SG (e.g. Keysight 8257D). If not specified, environment variable DRS4_CW_SG_PORT will be used.

  • timeout – Timeout of the connection process in seconds.