07-22-2024 03:53 AM
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
07-24-2024 09:02 PM
Personally, I find NI SPI IP Toolkit for LabVIEW is cleaner and easier to use.
03-27-2025 10:12 AM
@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?