LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I2C Error NavX-MxP

3227e4a4d67a2e24776b.jpegHi Alll. i have a question . when I was using the navx sensor via Myrio-1900 there was a phenomenon where sometimes I read the data and sometimes there was an error -363011 or -363012.  Thanks for.

 

 

 

0 Kudos
Message 1 of 3
(2,585 Views)

According to the MyRIO Error Codes page, those errors both indicate that a No-Ack was sent:

 

−363012 A No Acknowledge (NAK) bit was received from the slave device after the last data transmission.
−363011 A No Acknowledge (NAK) bit was received from the slave device after the last address transmission.

 

Is it possible you have some problem with wiring or timing or similar?

The code you posted (I can of course only consider the image, not the real code) seems reasonable.

 

If you can't identify any problem with the physical wiring or external influences on your system, I'd try adding some delays (perhaps consider "Stall Data Flow" if using LabVIEW >= 2017) either to the loop or between values.

 

Even without that consideration, you might want to add a Wait (ms) node to the loop to prevent running overly quickly.


GCentral
0 Kudos
Message 2 of 3
(2,550 Views)

thank you. i fixed it by adding a capacitor 100uf to Navx (Vcc and GND)

 

 

 

0 Kudos
Message 3 of 3
(2,511 Views)