setGPIOSource
R2026bDescription
setGPIOSource(
assigns the radio source radio,bank,source)source that controls each GPIO signal in the
GPIO bank bank on the radio associated with the radio object
radio. Each element of source maps one GPIO
signal in bank to a radio source that can drive that signal.
Use this function to configure which radio paths drive individual GPIO signals before
you enable automatic transmit/receive (ATR) behavior or manual GPIO control. To
configure signal direction or ATR behavior, use the setGPIOAttribute function.
The behavior of GPIO source and attribute settings can vary between radio models depending on the hardware implementation. For details on source-to-pin routing for your device, consult the manufacturer documentation.
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