Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI API NI9401

Hi, 

 

I'm using a cRio and attempting to use the SPI API from here https://www.ni.com/en/support/downloads/tools-network/download.spi-and-i2c-driver-api.html . I have a scope hooked up and I can see the write completing successfully. SCLK and MISO lines and chip select all look good. However when I go to read the SCLK line stays idle the so data is not returned on the MOSI line. If I write another byte the slave returns data while data is being writing but the API doesn't look for data that time and misses it. How do I get the SCLK line to continue for the data read? 

0 Kudos
Message 1 of 1
(940 Views)