12-23-2022 03:08 AM
Hi Team,
I am using SbRIO-9603 board and designed a custom board for SPI communication. I am using NI Linux Real-Time (64-bit) and programming mode is LabVIEW FPGA mode.
Custom board has SPI interface to be communicated to HMS M40 (EIP) module.
I have M40 "C" code library for SPI interface.
I am new to importing and use .dll files and configure VIs and controls. I have few questions.
1. Does sbRIO-9603 board have SPI interface?
2. Could you please guide in the above issue?
3. What steps do I need to follow?
Thanks & Regards,
Kiran
12-23-2022 03:42 AM - edited 12-23-2022 03:44 AM
sbRIO boards have AFAIK no SPI out of the box. But they have an FPGA that you can program to do anything, including using 4 of the digital pins as an SPI interface. NI even has an SPI reference library or two that you can download and integrate into your FPGA design. However the API on the real time side has to be implemented by you and won’t let your existing C code just plug into. Instead you probably want to use that C code as a reference to reimplement the necessary protocol handling directly in LabVIEW on top of your FPGA interface.
12-23-2022 05:24 AM
Thank you Rolf,
Would you advise me to use the SPI-Digital-Waveform-Library?
Best Regards,
Kiran
12-23-2022
06:51 AM
- last edited on
03-20-2025
02:25 PM
by
Content Cleaner
@Kiran1975 wrote:
Would you advise me to use the SPI-Digital-Waveform-Library?
No! That library is meant to emulate SPI by streaming digital signals through a high speed digital interface using NI-HSDIO as driver. It might be possible to convert that to the NI-DAQmx interface that is supported on the sbRIO-9603 but I would expect that to be a significant development effort (and maybe require the use of an actual digital C series module on the RMC bus). More efficient might be to use the SPI/I2C FPGA reference design library. It won't be plug and play either as you will at least have to implement your devices SPI protocol on top of this, but might also have to tinker a little with the FPGA side of things too.