LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI communication on cRIO 9057

Hello,

I am trying to configure the SPI communication protocol on cRIO 9057 (the digital I/O module) through LabVIEW FPGA and following this guide (Implementing SPI Communication Protocol in LabVIEW FPGA - NI Community). I have some questions:

1) Do I have to set up and then run all 3 of these vi: Example_Host cRIO.vi (for the host configuration), Example_Port Code_cRIO.vi (for the bus implementation) and FPGA_Top_Level_cRIO.vi (for the SPI port implementation)?

2) Do I have to set up and run only the FPGA_Top_Level_cRIO.vi? Because this VI calls the Example_Port Code_cRIO.vi and it allows the user to set up the SPI configuration (as the Example_Host cRIO.vi).

 

Thank you

Christian

0 Kudos
Message 1 of 3
(403 Views)

Personally, I find NI SPI IP Toolkit for LabVIEW is cleaner and easier to use. 

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 3
(351 Views)

@ZYOng , I am having problems using NI SPI IP library on CRIO with a NI9401card. I use it as slave, and I am able to read, but if I try to write it provides strange results. Have you used this library for 2 way communication?

0 Kudos
Message 3 of 3
(111 Views)