LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI Implementation in LabVIEW FPGA

Hi everyone,

I am using LabVIEW FPGA module version 2019 with sbRIO 9631 board.

I am trying to get data from Pmod Gyro (L3G4200D) sensor using SPI protocol but I am facing a really trying problem is that the write/read VI always return 255 value.

 

Using multiport SPI example with little customization to fit my application and host APIs and make my own host.vi to fit the application.

 

The register addresses for x,y and z rates are available in sensor datasheet which are from 40 to 45 in decimal and also some configuration registers' addresses are used as shown in the project attached

 
project is attached below. 

please any one can tell me where the problem is ?

Thanks in advance.

0 Kudos
Message 1 of 2
(749 Views)

I noticed that sometimes the execution holds into configure.vi waiting for SPI_cmd to return to idle from FPGA 

Also sometimes holds into write/read.vi as shown in attached pics

0 Kudos
Message 2 of 2
(744 Views)