cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

USB 8452 I2C communication as slave error when attempting to read / write for the second time.

Highlighted

USB 8452 I2C communication as slave error when attempting to read / write for the second time.

Hello all,

General description:

I am working on a project where master (actuator)  should receive data from the slave via I2C.

Here: USB 8452 is used as a slave which simulates the sensor data.

 

The actuator has an internal control loop of 200ms. Therefore it is necessary to have every 200ms new and stable values of the actual sensor data. 

The time period between requests, can be longer than 200ms but not shorter.

 

I2C communication error:

The actuator always outputs an error after the first read and write operation (error message: communication error between master and slave). After that the slave doesn't receive any event type (NI 845x Slave Wait for Event.vi) and program doesn't show any error. See attachments for program

 

Replaced actuator by IOWarrior24:

Therefore, in order to double check that slave write function is working properly I replaced the actuator with the IOWarrior24 and data is monitored from through "Simple-I2C software".

 

Read and write for the first time: The master reads the exact data what the program sends.

When attempted to write for the second time the slave receives no event type and the "Data Monitor" in Simple-I2C software shows "Failure while sending. Please check your settings and data". Please see the attached images.

 

When IOWarrior24  is communicated with the real time sensor write and read operation were success without any error.

 

Thank you and regards,

Nikhil.

0 Kudos
Message 1 of 1
(50 Views)