Here is how to do SPI with an SBRIO
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.