08-06-2015 06:57 PM
08-06-2015 10:28 PM
Why would a picture of the device ever be more useful than the user manual for the device?
SDA/SCL. That suggests I2C communication. Now, go find the manual and figure out what messages to send. Without those, the picture is entirely useless.
08-07-2015 04:15 AM
hello
I find the manual of the device and i connected i2c with myrio but my problem in the config in labview ...
for example : how to create the register config tike this picture ?
thank you
09-03-2015 11:50 AM
hello all
can anyone help me ?
09-04-2015
07:58 AM
- last edited on
07-15-2024
09:24 AM
by
Content Cleaner
Hello Azou_LabVIEW,
The “register/data” in the screenshot you provided is a 2D array of elements that will be written to the I2C interface. If you need to know how to create arrays in LabVIEW, please refer to the article below for details.
Tutorial: Arrays and Clusters
Once you have created an empty 2D array, you can build a set of instructions\messages you want to send to your I2C slave. At this point, you will have to refer to the user manual (as natasftw suggested) of the I2C slave you are using to determine what type of commands\instructions\messages your slave accepts\expects. Typically, each slave has a unique set of commands it accepts. Once you determine the commands your want to send to your device, you can create a “register/data” array that sends your custom commands to the I2C slave.
Best Regards,
j_bou
09-04-2015 08:21 AM
thank you j_bou for your help ..
but i know how to create array and all of these.
but my probleme is register of sensor.how and where i find it ?
help me please..
thanks
09-08-2015 10:56 AM
Hello Azou_LabVIEW,
As mentioned above, you will find the register mapping of your sensors in the user manual of each device. For example, I used a search engine and found the user manual for the gy-521.
MPU-6000 and MPU-6050 Product Specification Revision 3.3:
http://www.4tronix.co.uk/arduino/specs/mpu6050.pdf
Page 6 details that the register mapping of the device can be found the document below.
MPU-6000 and MPU-6050 Register Map and Descriptions Revision 4.0:
https://www.olimex.com/Products/Modules/Sensors/MOD-MPU6050/resources/RM-MPU-60xxA_rev_4.pdf:
The above document will allow you to determine which registers you need to read\write to.
For the RFID-522, you can follow the same procedure of finding the user manual which should also detail the register mapping of the device.
Regards,
j_bou
09-08-2015 01:49 PM
thank you j_bou
i will try....
thanks
09-10-2015 07:59 PM - edited 09-10-2015 08:01 PM
hello all
how i can use these value and how select only the necessary form all in this list ..x_y_z
i tried with it in labview but did not work.
what does it mean [15:8] ?
thank you
09-11-2015 08:57 AM
Hello Azou_LabVIEW,
What exactly did you try doing in LabVIEW (a screenshot of you code would be helpful)? How did it not work? Did you receive an error? Did you read an unexpected value back from the device?
If you take a look at page 30 in the manual of the device (linked below), it explains that the accelerometer measurements are 16 bit values. My guess is that the ACCEL_XOUT[7:0] register contains the least significant 8 bits and the ACCEL_XOUT[15:8] register contains the most significant 8 bits of the X-axis measurement. Together they can be combined to retieve the 16 bit X-axis accelerometer measurement.
MPU-6000 and MPU-6050 Register Map and Descriptions Revision 4.0:
https://www.olimex.com/Products/Modules/Sensors/MOD-MPU6050/resources/RM-MPU-60xxA_rev_4.pdf
Keep in mind that this is just a guess on my part. If you would like an exact answer, I would recommend contacting the manufacture of the device you are using. Once you have determined exactly how to communicate with your I2C slave, you can use LabVIEW and your myRIO to exchange information.