11-05-2014 06:13 AM
Hi
I try to connect two different sensor to myrio :gyro and compass. I am using the sensors from the Myrio kit and each sensor is working perfectly using the attached VI.
when I try to combine this VI and read both of them together get measurement from the gyro but not from the compass.
Does anyone have experience with reading several different sensors from the same I2C?
Thanks
Eviatar
11-06-2014 05:16 PM
Eviatar,
Can you post the VI you are having issues with and explain what you mean by not reading them together? Is it throwing an error at any point or simply returning 0?
Best,
11-07-2014 01:21 AM
Hi
You can try to take the two attached VI and combine them together and you will immediately see what I am talking about. I am not getting any error but the value coming out of the magnetometer remain fix at all time. Is generally there is a limit on the number of components connected to the I2C?
Thanks
Eviatar
11-09-2014 07:16 PM
There's more than one way to put the two VIs together. Unless they do it the same way you did, they are unlikely to see what you're seeing.
Are both devices listening for the same master or are you working with a diferent master? Are you using the same mode for both VIs? Did you send a stop command when talking to the compass befor sending a start command to the gyro?
11-10-2014 05:54 AM
Hi
I try to use this VI and still I got only the Gyro measurement.
I am willing to try every other solution as long as I can get both of the sensors measurements.
Thank you
Eviatar
11-10-2014 10:39 AM
Eviatar,
It looks like in your combined VI you configure your Gyroscope but not your Compass. I would suggest trying to insert your Compass configuration right after you configure your Gyroscope. The attached image is what you should insert into your combain.vi before you attempt to Write/Read to your compass.