title: Connecting I2C Device to Labview using NI-845x
body: <p>I'm trying to connect a mass flow sensor, SFM-3000 by sensorion, to labview on PC using USB device, NI-8452, which provide I2C interface.</p>
  
  <p>I followed the user manual of the sensor and used I2C example by labview but I cannot establish communication between them</p>
  
  <p>I get the error message:</p>
  
  <blockquote>
    <p>Error -301744 occurred at NI-845x I2C Run Script.vi:6110001, 
    Possible reason(s):
    NI-845x: The I2C master lost arbitration and failed to seize the bus during transmission of an address+direction byte.</p>
  </blockquote>
  
  <p>I'm using NI-8452 that include pull up resistor and I make sure to enable them by enabling 'Use Internal I2C Pullup Resistor'  filled in 'NI-845x Device' property node.
  I set I/O voltage level to 3.3,</p>
  
  <p>I double check the address, I have 7 bit address defined in user manual of my device, 64 dec or 1000000 binary.</p>
  
  <p>As specified in my device user manual, I provide it Vdd of 5v from NI-8452 pin 40 and also GND in pin 7.
  Off-course SDA in pin 5 and SCL in pin 9.</p>
  
  <p>I think I might have a problem with pull up reference voltage because the sensor specified it need to be 5v but NI-8452 use up to 3.3V.</p>
  
  <p><img src="https://i.stack.imgur.com/7hqBC.png" alt="wiring"></p>
  
  <p>but the low limit for high signal is 2.5v so it should work</p>
  
  <p><img src="https://i.stack.imgur.com/BWj1i.jpg" alt="high and low level"></p>
  
  <p>My diagram:</p>
  
  <p><img src="https://i.stack.imgur.com/f5fn6.jpg" alt="I2c over NI-845x"></p>
  
  <p>another option i tried is using I2c script blocks</p>
  
  <p><img src="https://i.stack.imgur.com/YqnwE.jpg" alt="I2c script blocks"></p>
  
  <p>I tried similar solution also for pressure sensor, hdi0611arz8p5 by First-Sensor, but also got the same error.</p>