setGPIOAttribute
R2026bDescription
setGPIOAttribute(
configures a GPIO or ATR attribute for the GPIO signals in the GPIO bank
radio,bank,source,attribute,value)bank that are controlled by the radio source
source on the radio associated with the radio object
radio.
Use this function to enable ATR operation for selected GPIO signals, set signal direction, configure manual GPIO output, or define the GPIO output state for idle, receive, transmit, and full‑duplex radio states.
Note
The following actions reset the GPIO configuration:
Loading an application onto the radio. This occurs when you specify the
Preloadname-value argument astrueduring object creation, or the first time you call thetransmitorcapturefunction on an object created withoutPreload=true.Calling the
setupfunction on ausrpSystem object™.Changing properties that select radio antennas, such as
Antennas,TransmitAntennas,ReceiveAntennas,DUTInputAntennas, orDUTOutputAntennas.Changing the
SampleRateproperty to a value derived from a different master clock rate. For more information on how the baseband sample rate is derived, see Baseband Sample Rate in NI USRP Radios.
To preserve the GPIO configuration, perform these actions before you configure GPIO pins.
Examples
Input Arguments
Version History
Introduced in R2026b