niUSRP Configure GPIO Pins VI
- Updated2024-10-14
- 3 minute(s) read
Configures the X410 GPIO signal properties such as direction (I/O), voltage level, and master for multiple pins on a selected 'bank' and a 12-bit binary 'mask' to indicate which pins to configure. Please see the GPIO API for more help, https://files.ettus.com/manual/page_x400_gpio_api.html

Inputs/Outputs
bank
—
the string name of which bank's pins to configure (GPIO0/GPIO1)
channel list
—
channel list specifies the channel(s) to configure.
session handle
—
session handle out passes a reference to your instrument session to the next VI.
mask
—
12-bit binary bitmask to signify which pins on the selected bank to configure (1 means configure, 0 means do not change). The port mapping should be set to DIO mapping so the 0 bit of mask will correspond to the 0 pin on the GPIO, the 1 bit will correspond to the 1 pin, and so on.
direction
—
unsigned integer for the direction of the pins being configured (1 is output, 0 is input)
voltage level
—
Voltage level not currently supported by UHD. Need to change voltage through MPM call. Unsigned integer for the voltage level to set the pins being configured
error in (no error)
—
error in can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.
master
—
string for what master drives the pins being configured
session handle out
—
session handle out passes a reference to your instrument session to the next VI.
error out
—
error out passes error or warning information out of a VI to be used by other VIs. Right-click the error out indicator on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error. |
bank
—
session handle
—
mask
—
voltage level
—
error in (no error)
—
session handle out
—
error out
—