LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usb-8451

Solved!
Go to solution

I wasn't sure if you were having one or two problems (pullups and address)

 

0x69 is b1101001, which has the lowest bit set, so I wasn't sure if that could be one of the issues. If it was an issue, it would be the lowest bit that is "wrong", hence 0x34. However, as you found it was actually the pull-ups and not the address.

 

FYI, 0x34 could be 6 or 7 bits... b110100 or b0110100 (MSB could be a zero).

 

Glad it was just the pull-ups.

0 Kudos
Message 11 of 13
(1,896 Views)

Thank you for the information. I have similar problem, i get the error message 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.

 

the diffrance is that i'm using NI-8452 that include pull up ressitor and i make sure to enable them by enabling 'Use Internal I2C Pullup Resistor'  filed in 'NI-845x Device' poprty node.

I set I/O voltage level to 3.3,

 

I double check the adress, i have 7 bit adress defined in user manual of my device, 64 dec or 1000000 binary

 

as specificed in my device user manual, i provide it Vdd of 5v from NI-8452 pin 40 and also GND in pin 7.

offcourse SDA in pin 5 and SCL in pin 9.

 

I think i might have a problem with pull up referance voltage becuse the sensor specified it need to be 5v but NI-8452 use up to 3.3V.

 

 

sensor i2c flow mass sfm3000.JPG 

 

but the low limit for high signal is 2.5v so it should work

sensor i2c flow mass sfm3000 voltage thingy.JPG

 

 

my digarm

write digram.JPG

another option i tried is using I2c script blocks

write digram with script mode.JPG

 

Thank You

Or Hirshfeld

אור הירשפלד

אור הירשפלד
Or Hirshfeld
Application Engineer
Certified LabVIEW Developer
SK- Electronika
+972-545844555
Or.Hirshfeld@SK-Advanced.com
il.linkedin.com/in/orhirshfeld
Download All
0 Kudos
Message 12 of 13
(1,769 Views)

I re-wired the sensor to the i2c and it's working now. Smiley Very Happy

אור הירשפלד
Or Hirshfeld
Application Engineer
Certified LabVIEW Developer
SK- Electronika
+972-545844555
Or.Hirshfeld@SK-Advanced.com
il.linkedin.com/in/orhirshfeld
0 Kudos
Message 13 of 13
(1,749 Views)