set_gain()# InstroSDR.set_gain( gain_db: float, *, direction: Direction = Direction.RX, channel: str = '0', **kwargs: Any, ) → Command[source]# Set the gain and publish it as gain.cmd. Parameters: gain_db (float) – Gain in dB. 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.