set_antenna()#

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

Set the antenna port and publish it as antenna.cmd.

Parameters:
  • antenna (str) – Port name, one of the driver’s list_antennas.

  • 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.