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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i2c on myRIO-1900

Solved!
Go to solution

I have myRIO-1900 and Devantech SRF08 UltraSonic Ranger (http://coecsl.ece.illinois.edu/ge423/devantechsrf08ultrasonicranger.pdf)
I try to read distance via I2c (expressvi), here is code:
myrio.png
All "write" codes return error (-363011).
How to get data from sensor?
Is address 0 correct?
I tryed connect all adresses 0..127, but no error only for address 0.

0 Kudos
Message 1 of 5
(7,199 Views)

Hi Artem,

 

Error -363011 corresponds to the following message: " A No Acknowledge (NAK) bit was received from the slave device after the last address transmission." 

 

Have you seen the following thread? It seems to walk through the troubleshooting process for this error:

 

Error -363011 occurred at myRIO v1.0 Wrie I2C.vi

 

and provides the following solution:

 

"One of the unused connections in my circuit is called Vi/o(I think. I'm doing this by memory). This is there because the breakout board(by SparkFun) this chip is on separates the supply voltage into Vdd and Vi/o. Once I connected 5VDC to Vi/o as well as Vdd I was able to communicate with the device, including writing and reading to/from registers."

 

Take a look at this thread, try the recommended steps, and let us know if the behavior changes!

 

Nick B.

Applications Engineer

National Instruments

Message 2 of 5
(7,160 Views)
Solution
Accepted by topic author Artem.SPb

Thank you, Nick.
But I found a solution.
Here is a snippet.sonar.png

0 Kudos
Message 3 of 5
(7,154 Views)

Awesome, glad to hear it's working!

 

Nick

0 Kudos
Message 4 of 5
(7,142 Views)

I had similar problem at using I2C LCD module(ACM1602), but solved.

 

by connecting 'True'  into  'Keep bus BUSY'   at low-level function  'Write.vi'

0 Kudos
Message 5 of 5
(7,102 Views)