Is anyone doing SPI over the USB2ANY board using Labview? I'm having some issues with the documentation.
I’m trying to use the SPI functions in the USB2ANY API. I have a question about the “SPI_WriteAndRead” function. In the PDF document it shows two arguments, one of data and one with the length. In the Labview example the arguments don’t agree and they’re sending a 0 value to one of the arguments (appears to be a signature insetad of length).
It looks like either the PDF describing the function is wrong or else the labview is done wrong. I went ahead and tried putting a length function and piping the length of the array into the signature argument and it didn’t help.
I have control of the USB2ANY board. I can turn on the LED (I’ve set it to toggle every time I execute the routine.) I know that my SPI configure function is working because the Chip Select and Clock lines go high after the configure command (_SPI_ClockPolarity = 1 etc)
I am not getting any response from my SPI chip. The SPI test GUI will control the chip just fine.