01-28-2015 05:25 AM
Hi guys,
I want to receive data from digital compass via Arduino Duemilanove Atmega328 using labview. I found the example attached below, but it doen't work for me. It gives me error 5003. Please does anyone has a solution for this problem.
Thanks
01-28-2015 08:24 PM
Are you sure it's caused by these functions? What happens when you do a simply digital write pin program (most of the time you would test it with the LED pin but I don't really know anything about that board).
01-28-2015 10:15 PM
Thanks for replaying Nathan_B
I have tested it with LED program, it works perfectly and other programs too. But I'm stuck with the I2C protocol, precisely the I2C Read function, cause the error comes from this part. Please if you have any idea just share with me.
Or if you can provide me the same program using LINX, I'll be very grateful.
Thank you very much
01-28-2015 10:22 PM
Are you absolutely sure that the I2C write function works? Have you tried
any other I2C devices?
01-28-2015 10:28 PM
No I didn't try any I2C devices. I'm not sure 100% that I2C write function works, however the HMC5883 INIT block contains the I2C write function and it doesn't show any error, even the LED TX blink when runing the program.