02-07-2020 03:10 AM - edited 02-07-2020 03:19 AM
Hi 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.
02-07-2020 07:09 AM
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.
02-09-2020 09:30 PM
thank you. i fixed it by adding a capacitor 100uf to Navx (Vcc and GND)