LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI/I2C communication example with NI cDAQ and 9402 module

Solved!
Go to solution

Hi,

 

I am having trouble getting started with NI Compact DAQ and 9402 module. I would like to run SPI and I2C communication, but cannot find any examples or even proof that it could be done. Have only found the drivers for cRIO, but not for cDAQ. Could it be that cDAQ does not support SPI and I2C? What a shame that would be. If you could put me on the right track that would be great.

0 Kudos
Message 1 of 6
(4,122 Views)

As cool as that would be, the 9402 is a cRIO only module: http://www.ni.com/en-us/support/model.ni-9402.html

 

I use the USB-8451 for my SPI/I2C needs which generally works well.  If I were getting one for development, I would go with the NI-8452 instead.  

0 Kudos
Message 2 of 6
(4,081 Views)

Hi, try checking the example finder

 

http://www.ni.com/getting-started/labview-basics/examples

0 Kudos
Message 3 of 6
(4,077 Views)
Solution
Accepted by topic author daista

Hi Daista,

The 9402 module can only be used with cRIOs.

 

The links below would be helpful if you decide to take a crack at implementing SPI/I2C on a cDAQ but this isn't something we can help with as it is outside the scope of support.

SPI Digital Waveform Reference Library

http://www.ni.com/example/31163/en/

Serial Protocol Communication Reference Design for Digital Waveform Devices

http://www.ni.com/example/31200/en/

Jiwhan S.
Technical Support Engineer
National Instruments
0 Kudos
Message 4 of 6
(4,051 Views)

Thank you all for your replies. That is a pity to hear. Does it mean that 9402 is useless with cDAQ? Are there any other modules for cDAQ that would implement digital communication protocols?

 

We consulted with a NI representative before making this purchase and he confirmed our selection of 9402 + cDAQ. This situation makes us to start losing trust in NI tools and support.

 

Best regards,

Dainius

Message 5 of 6
(3,974 Views)

"The 9402 module can only be used with cRIOs."

 

I have a 9402 connected to a cDAQ-9133 while typing this. NI 9402 Datasheet - NI

You just don't have the possibility to use FPGA-related resources with it. I think that's the "crio only" part mentioned by NI elsewhere online. 

0 Kudos
Message 6 of 6
(1,703 Views)