set_center_freq()#

InstroSDR.set_center_freq(
frequency_hz: float,
*,
direction: Direction = Direction.RX,
channel: str = '0',
**kwargs: Any,
) → Command[source]#

Set the RF center frequency and publish it as center_freq.cmd.

Parameters:
  • frequency_hz (float) – Center frequency in Hz.

  • direction (Direction) – Signal path, Direction.RX or Direction.TX.

  • channel (str) – Channel on that path, e.g. "0".

  • **kwargs – Tags added to the published value, on top of the instrument’s default tags.

Returns:

Command – The published command.