I have tried both of your code and i keep getting the same error saying
<b>Complete call chain:</b>
i2clib_writeread.vi
WPI_I2CRead.vi
Lidar Read.vi
Simple Digital Output.vi
ERROR -1 i2clib_write.vi<ERR>
Device or resource busy
<b>Complete call chain:</b>
i2clib_write.vi
WPI_I2CWrite.vi
Lidar Read.vi
Simple Digital Output.vi
ERROR -1 i2clib_writeread.vi<ERR>
Device or resource busy
Has anyone seen this error before. Bellow is my code and a picture of the error log
Error log:
http://imgur.com/II5VMzV
main code:
http://imgur.com/CKZ7Dzk
open code:
http://imgur.com/CKZ7Dzk
read code:
http://imgur.com/UD1j4qk
wiring
Power: 3.3 on-board from the i2c port
Ground: on-board from the i2c port
SDA: on-board from the i2c port
SCL: on-board from the i2c port