From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Using USB-6001 to implement SPI/I2C

Is possible to use USB-6001 to implement communication with SPI or I2C? I intend to use SPI Digital Waveform Reference Library.

 

If not, what other NI devices has capacity to work with SPI or I2C?

0 Kudos
Message 1 of 6
(3,197 Views)

The USB-6001 doesn't have hardware-timed digital I/O, only software-timed. Implementing a SPI master is probably possible at a very slow rate, but I expect I2C is probably right out.

 

The NI USB-845x products are designed specifically for SPI and I2C; the 8452 is in the same form factor as the 6001. The NI VirtualBench also has a SPI and I2C master API for use with its GPIO connector.

——
Brandon Streiff
ni.com/compactdaq · ni.com/daq
Message 2 of 6
(3,186 Views)

I am so sorry but I am not so much experienced on using SPI/I2C (I could say, not at all :-)).

I have Labview12 and 18 versions installed.

Could you drive me on installing the proper library (-ies) and downloading a very simple communication .vi?

It doesn't matter the communication rate, I have to check/modify parameters of a sensor just at the beginning of the test run (that sensor comes out with SMBUS default config but I need to be PWM output set activated for analog acquisition with NI6001).

Thank you in advance for your kind help.

Have a nice day,

Sergio

0 Kudos
Message 3 of 6
(570 Views)

Hi, did you solve your issue? Could you give me some advice on installing the proper library (-ies) for LabView12 or LabView18 and how to proceed to installi them and where to download some easy-to-use .vi just to communicate at very low rate by using a NI6001?

Thank you and have a nice day,

Sergio

0 Kudos
Message 4 of 6
(565 Views)

Implementing SPI or I2C isn't terribly difficult but it is not a two hour exercise even for a really experienced developer! Expecting to do such a serial protocol with a limited device like the USB-6001 is simply ridiculous unless it is an exercise for study. But with your knowledge it is highly unlikely to succeed and anyone else is almost certainly not going to spend the time to implement something like that just for academic laurels.

 

Unless your time costs really absolutely nothing, you could buy several USB-8452 before the costs are getting higher than investing time in such an inferior project.

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 6
(537 Views)

Thank you for your kindness.

Really appreciates.

Best,

Sergio

0 Kudos
Message 6 of 6
(525 Views)