LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I2c read with Arduino in labVIEW

Solved!
Go to solution

Hello everybody,

I am currently trying to read a sensor (temperature + humidity). I can read the sensor with Arduino and it already works.
Now I am trying to read the sensor with Labview over I2c. I have it connected as in the datasheet, but I get wrong values: ((

Can someone help me please?

Here is datasheet:  https://sensing.honeywell.com/index.php/ci_id/142171/la_id/1/document/1/re_id/0

i2c.png

 

VI: 

VI_block.png

0 Kudos
Message 1 of 5
(9,964 Views)

Crosspost in German LabVIEWForum

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(9,945 Views)
Solution
Accepted by topic author Mido713

1. You can right click on your two indicators and choose Visible Items->Digital Display.  This will eliminate the need for the extra indicators.

2. The way you are parsing the data looks almost completely wrong.  Try this.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 5
(9,938 Views)

Thank u very much 🙂

 

0 Kudos
Message 4 of 5
(9,908 Views)

Temperature is put together incorrectly: First combine the two bytes, then shift two bits to the right. Also divide by 99.28484; the original post states incorrectly a multiplication by 100, but is has to be 165.

 

Jens

Kudos are welcome...
0 Kudos
Message 5 of 5
(9,895 Views)