Skip to content

Complex gain factor may be applied to wrong Tx channel #920

@rkossler

Description

@rkossler

Issue Description

The new complex gain can be applied to the wrong Tx channel if the user has a subdev spec that is different for Rx and Tx. The underlying issue is that the multi_usrp API function get_radio_control() returns the radio control associated with the Rx channel but this may be the wrong controller for a similarly numbered Tx channel.

Setup Details

UHD 4.10, RFNoC-capable USRPs

Expected Behavior

Gain should change on the desired Tx channel

Actual Behaviour

Gain does not change on the desired Tx channel

Steps to reproduce the problem

The problem can be shown by using 'txrx_complex_gain' and following the 1st usage example from the help for this example. But, add subdev specs for Rx and Tx such as "A:0" for Rx and "B:0" for Tx. This will impement a 1x1 USRP where the Tx and Rx are using different Radio blocks. The function 'usrp->get_radio_control' will return the Rx radio control such that when the example uses this function to set the Tx gain, it will be set on the wrong channel

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions