LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I2C with NI9403 on CRIO 9035

Hello, 

 

I have previously been able to use the NI SPI&I2C API to communicate over I2C with a MyRio 1900 to communicate with a SHT25 Humidity Sensor. However, I need to transfer the code to a CRIO 9035/NI 9403 using Labview 2018. When I transferred the code and started moving it over to the new target device (CRIO 9035) I noticed that when I go to set the ports for SCL and SDA in the FPGA VI to suitable pins on the NI9403 that I get an error message basically stating that I have connected two terminals of a different type. I am not that familiar with the CRIO, but I have looked up the forum to see if there were any solutions to this, which I couldn't see. The error only appears when I go to configure the IO type, but other than changing the pins from input to output, which was not successful I am at a loss as to what else I could do. I would be grateful for any advice on this matter, I have attached the LabView code for further information. 

0 Kudos
Message 1 of 2
(2,477 Views)

Hello GeraC,

I have two thoughts on this:

First at all, the NI 9403 does not seem to be fully supported by NI I2C&SPI API, at least it is not explicitly mentioned in it's package description:

VI_Package_Manager_2018-12-11_09-58-33.png

 

Apart from that, I wonder if you already had found this posting: Using I2C or SPI communication with cRIO and NI 9403 Module [...] (it's the last posting in this thread that I am linking). Basically geashby describes the changes he/she made to use the 9403 with FPGA for SPI communication. I2C should be very similar. Is this something you could test out?


Ingo – LabVIEW 2013, 2014, 2015, 2016, 2017, 2018, NXG 2.0, 2.1, 3.0
CLADMSD
0 Kudos
Message 2 of 2
(2,434 Views)