set_bandwidth()#

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

Set the IF or filter bandwidth and publish it as bandwidth.cmd.

Parameters:
  • bandwidth_hz (float) – Bandwidth 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.