08-28-2017 03:48 PM
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:
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.
Solved! Go to Solution.
08-29-2017 01:01 PM
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
08-29-2017 02:06 PM
Thank you, Nick.
But I found a solution.
Here is a snippet.
08-30-2017 11:24 AM
Awesome, glad to hear it's working!
Nick
09-07-2017 10:51 AM
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'