04-04-2017 03:02 AM
I want to read humidity level with SHT11, but its must use i2c in arduino. I have been succesfull read humidity level with code in arduino ide (I use this code by Tasasaki http://thirdeye.dip.jp/arduino/Multiple_SHTs.pde ). Now i want to implemented in labview but i dont know how to use i2c in LIFA. can you tell me how to use i2c in LIFA. what is address and whats is bytes to read.
And Can I read multiple SHT in 1 arduino with LIFA like in the code.
Thanks you.
I attach datasheet of SHT11
04-04-2017 05:33 PM
Hi msugi,
There are several examples of using I2C in the Documents section of the LIFA Community.
http://forums.ni.com/t5/LabVIEW-Interface-for-Arduino/ct-p/7008
But I must inform you that LIFA is no longer supported and LINX has replaced it. That being said I2C master is supported in LIFA and LINX but I2C Slave is not.
In the Peripherals > I2C section of MarkerHub you may find some documentation about the I2C with LINX:
https://www.labviewmakerhub.com/doku.php?id=learn:libraries:linx:reference:labview:start
If you want to know more about the inputs about each VI, the best option is Context Help in LV (Ctrl + H).
Regards,
04-04-2017 10:43 PM
Thank you Hector for the information. I'll try to understanding it.
05-19-2017 07:14 PM
Hello msugi,
How did you do your program knowing that the start frames of your sensor are different from the standardized I2C protocol ?