Hello,
I am seeking some help here, because I am totally new to I2C protocol. I read the basics, and I also went through the chip manual of the AD module for the Raspberry PI.
I am planning to use some Raspberry PI3 with the following module for analogue signal measurements (the module is connected to the RPi via its GPIO pins): http://wiki.52pi.com/index.php/RPI-ADS1115-ADC-Module_SKU:EP-0076#How_to_wire_up
I installed the driver for the Raspbian OS, and all the Python examples run fine, I measure what I expect: https://github.com/adafruit/Adafruit_Python_ADS1x15
I would like to use this AD module via the product "LabVIEW for Raspberry PI compatible compiler - Home Edition" (https://www.tsxperts.com/labviewforraspberrypi/ ). I installed the special image for the RPi, and I can deploy and run fine LabVIEW VIs as *.pyzw files from the RPi linux. There is a subpalette for the I2C functions, I try to use the functions here to create communication VIs for my hobby project:
I have attached my VI as a snippet too, plus some more relevant files, like the chip ADS1115 manual (the important pages are 11., 18-19.).
I tried to follow the procedure what is described in the section "Quickstart guide", at page 11. However, I am not really sure whether I write to the device registers in the proper manner. The data what I read out from the conversion register, does not seem to be correct (maybe the LSB and MSB should be swapped?). So I guess I must do something or several things wrong... I hope someone could help me how to make a proper I2C programming in this particular case. Thanks!!
...Some more screenshots below: