08-28-2017 11:35 PM
i am using USb 8452 module for i2c communication in between the LDC 1612 module(slave)and USB 8452 (master).
How to configure and get the data?
any idea or suggestions
08-29-2017 03:44 AM
To write data, use the I2C Write. Just put the register address with the data in the data byte array.
For the read, use the I2C Write-Read. The write data will just be the register address and then read 2 bytes.
08-29-2017 08:05 AM
Usually installed with any API is a set of examples that can be found in Help >> Find Examples. These will help you get started. But once you get a basic example on how to read and write data working, you'll want to read up on your devices manual. It will list things like what information is in what memory addresses and will be hardware specific.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-29-2017 11:31 PM
thank you for your reply,
when i am going to write the data, it displays an error, Actually we have to configure the slave(LDC 1612 module) and then only we can read the data from slave...I have little bit confusion in it.
08-30-2017 07:34 AM
when i am going to write the data, it displays an error,
Great what is the error?
Actually we have to configure the slave(LDC 1612 module) and then only we can read the data from slave...I have little bit confusion in it.
Did you read the manual? It could be that memory locations are protected, or are supposed to be read-only. Or maybe there is a protection mode of some kind. This sounds like a hardware specific issue.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-30-2017 07:41 AM
Error -301743 occurred at NI-845x I2C Write.vi:4470001. this is the error occured.
yes, I read that manual. in that one, they told that we have to configure our module for channel one register and configures register for Mux_config and config.How can i write the register data to it?
08-30-2017 07:43 AM
@RevathiSudalaimani wrote:
Error -301743 occurred at NI-845x I2C Write.vi:4470001. this is the error occured.
yes, I read that manual. in that one, they told that we have to configure our module for channel one register and configures register for Mux_config and config.How can i write the register data to it?
Did you not read my reply above? The register you need to write to is just put at the beginning of your data array.