Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing I2C sensor with myRio-1900

Hello, 

I have been working to implement ROHM magnetometer (BM1422GMV). The sensor works on I2C protocol, I have written the code as shown in the figure according to the datasheet but I am unable to read the sensor data. Please help!

BlockDiagramBlockDiagram

Datasheet - BM1422GMV

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

Hey I have made modification to the previous code where into slave address I was putting register address, now the corrected code below contains constant slave address and data to write but still I am unable to solve the issue and don't get any readingcodenew.JPG

0 Kudos
Message 2 of 2
(2,716 Views)