Quote:
Originally Posted by RyanN
Can you include your I2C Open code as well (probably stuck in the Begin.vi)?
Your config code looks messed up. Why are you re-opening so many times?
You only need to do one 'open'. The device address is stored after that.
Your config should happen before you start your while loop. Currently, you're trying to do two things at once. Use the Error block to control the order of execution.
Comment what your config code is doing at each point.
Monitor the error outputs. If it can't communicate, it will tell you.
|
Yes, the config code is really messy right now. We used the Arduino example and then made it inside LabVIEW.
All we do inside the begin.vi is open the I2C with the I2C On-board bus and 0x69 address. I'll post the code later on today.
About the error outputs, there's no error at all.
We also tried to clear just the sleep byte at 0x6B inside the begin.vi and then read raw values from the temperature sensor at 0x41 and 0x42 while in timed tasks, but we got no response