01-18-2014 03:37 AM
can somebody help on how to create an SPI protocol block diagram in which it communicate from labview to FPGA??
Solved! Go to Solution.
01-18-2014 05:11 AM
Can you give us more details about the hardware side? (from what and to what kind of equipment you send the data?)
01-18-2014 09:17 AM
01-19-2014 10:48 AM
tnx a lot
01-19-2014 05:55 PM
i will send data from labview to fpga..is it possible using spi protocol made in labview??
01-19-2014 06:11 PM
Start here: http://digital.ni.com/public.nsf/allkb/7A82E998C9225188862575BE0011C369
If you do not have sufficient hardware, you may want to consider the USB-8451.
01-20-2014 05:11 AM
ahhm sir actually i am working with image compression with algorithm from the fpga...i want to transfer the data from fpga to labview can you help me on how can i transfer data through spi in labview?
01-20-2014 09:09 AM - edited 01-20-2014 09:27 AM
The links in the previous post provide code for using NI digital devices to read and write over an SPI bus. What exactly are you trying to do? What hardware do you have to connect the computer to the SPI bus? LabVIEW alone isn't enough, you also need the hardware. If you don't have any, the 8451 mentioned above might be a good choice.
Is the FPGA already designed and working? Do you have a definition of the format used to transfer data from the FPGA to another SPI device?
EDIT: sorry the links provided focus more on writing to the bus than reading. If you search a bit you should find suggestions on how to handle reading from the SPI bus, but you will need to write a parsing routine for the digital waveform. If you can get to the point where you can read but not interpret the waveform, and you provide a detailed description of how the waveform should be interpreted, then you could post looking for help with that specifically.
01-20-2014 09:37 AM
Also, this thread has sample code for software-timed SPI communication http://forums.ni.com/t5/Digital-I-O/Implementing-I2C-or-SPI-with-Pxi6508-in-Labview/td-p/554383
01-21-2014 02:04 AM
ahhm sir what ports in the fpga is the spi based in labview will pass??