LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to change the data format of basic exampe for NI-8451 I2C

In the example basic I2C VI. It is setup to have a 7bit slave address and 7bit register addressing.
Can the I2C configuration property node be modified so to output different data formats..i.e 6 bit address/data  format  and would the clock output change to match the formatting screem?
 
 
0 Kudos
Message 1 of 4
(2,832 Views)
Hey C@TI

I'm sorry to say, but the only address sizes that are available for I2C is 7 bit and 10bit. If you were to give it a 6 bit address/data it would stuff bits until it matched either format, which you selected through that property node you mentioned. As for the issue about the clock output, it is not dependent on the size of the address.

Regards,
Can Wong
0 Kudos
Message 2 of 4
(2,811 Views)
Can,
Thanks for your reply.
I'm new to LabView, I modified the Script Write I2C. It does not the desired effort.(no change). Could take a look at it? See attachment.
Regards,
Chuck
0 Kudos
Message 3 of 4
(2,796 Views)
Hey C@TI
I took a look at that pdf, but wasn't really sure what you wanted to do. Could you explain to me exactly what you want to do, send, receive. If you could help me understand your VI better I can try to help make it work.
It would also be helpful if I knew what version of LabVIEW you are using, what drivers you have, and what the operating system is your PC running on.

Regards
Can Wong
0 Kudos
Message 4 of 4
(2,789 Views)