04-19-2018 03:17 PM
I am working on a project where I am using a NI USB-8451 to communicate with 3 different SPI devices on a common SPI buss. Each has it's own unique Configuration, write and read protocols. Each device uses a separate CS (Chip Select) line to select it per normal SPI protocol. My question is what is the best way to send and receive data to the 3 devices?
Thanks to anyone that has an insight as to the best way to approach this.
John Freeman
Solved! Go to Solution.
04-20-2018 04:24 PM - last edited on 01-08-2024 01:07 PM by migration-bot
Have you tried your code out and is it working properly? While I don't have an immediate answer, you could check out these resources that might have insight:
Understanding the SPI Bus with NI LabVIEW
Also check out the Multiport SPI example in the NI Example Finder
I hope this is helpful!
04-23-2018 02:29 PM
Francine,
Thanks for your response. I had already found ad downloaded both of those. I will check the Multiport SPI example
John Freeman
04-27-2018 09:19 AM
I was able to get my original idea to work. I now have 5 separate SPI devices defined and am currently communicating with two, the LTC-6804 and the ADS1018. This seems to work very well. The good thing is that different devices need unique Clock Phase settings which are easily configured. For example the LTC-6804 clocks data on the rising edge of the Clock while the ADS1018 needs data clocked on falling edge. This is done using NI-845x SPI Configuration Property Node as shown in the Open SPI_device. example attached.
John Freeman