LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6008 SPI

Solved!
Go to solution

Good afternoon:

 

Can be implemented SPI communication with the NI6008? What channels are used for MISO, MOSI, SCK, SS? Is there any example?

 

Thank.

0 Kudos
Message 1 of 5
(3,289 Views)

No. The USB-6008 has only software timed digital inputs and outputs. The maximum update rate is ~150 Hz with significant timing jitter.

 

Lynn

0 Kudos
Message 2 of 5
(3,271 Views)
Solution
Accepted by topic author CalosGonzalez

Ok, Thank. After publishing query, I found the next post: http://forums.ni.com/t5/Multifunction-DAQ/SPI-device-with-NI-USB-6009/td-p/603919

0 Kudos
Message 3 of 5
(3,258 Views)
I haven't tried this, but I suspect you could make it work, just really really slowly. You would need to generate a sequence like set clock high and MOSI line, set clock low, read MISO line, repeat. You can use whichever digital lines you want for each purpose since you'll have to write all the code yourself. You might be able to find a pure software-timed example somewhere on this forum, I think I saw one once.
0 Kudos
Message 4 of 5
(3,243 Views)

Here's the thread with a purely software-timed SPI implementation: http://forums.ni.com/t5/Digital-I-O/Implementing-I2C-or-SPI-with-Pxi6508-in-Labview/td-p/554383 I've only briefly looked at the code and never ran it, but I don't see any reason that it couldn't be used as a model for a master-only implementation on a USB-6008.

0 Kudos
Message 5 of 5
(3,199 Views)