I2C in LabVIEW

I recently published an Instructable on how to use I2C in LabVIEW using LabVIEW MakerHub LINX, chipKIT WF32, and PmodGYRO as an example.  Digilent sells a both LabVIEW Home Bundle and chipKIT WF32 in the LabVIEW Physical Computing Kit.  In this Instructable, I go over how to read the data sheet to find what you’re looking for and how exactly to code what you find.  This guide also details how to set up pull-up resistors for successful I2C communication.




Once the bytes are received from the sensor, they must be arranged to get a meaningful value.  This includes joining bytes together to form 16 bit values, converting to a two’s complement signed integer, and multiplying by the correct resolution depending on the scale setting by using an enum control for a case structure that gives the correct resolution multiplier.



Be the 1st to vote.

Leave a Reply

Your email address will not be published. Required fields are marked *